Install Perl 32-bit

Asked by Jeffery Ashmore

I currently have Perl 5, version 22, subversion 1 64-bit installed on my Ubuntu 16.04 server. I need to install the 32-bit version in order to install an application. How do I keep both 64-bit and 32-bit Perl installed and how to I enable the 32-bit only?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Do you need the 32bit variant of the perl executable, or just the 32bit libraries?

You might try with the library first:
sudo apt-get install libperl5.22:i386

and only if that is not sufficient, you could continue with the 32bit variant of other perl packages (if that is possible at all).

(disclaimer: have never tried that myself)

Revision history for this message
Jeffery Ashmore (jashmore) said :
#2

Manfred, thank you for your speedy reply. Do you know the name of the 32bit variant of the other perl packages or where I do go to view this is information?

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

You get the 32bit variant if you add ":i386" to the package name.

Revision history for this message
Jeffery Ashmore (jashmore) said :
#4

Manfred, again thanks. I was already aware of the adding ":i386" to the package name. What I do not know are the names of the Perl 32-bit packages. Can you point me in the right direction to obtain the Perl package names?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

I suggest that you run the command

dpkg -l | grep perl

This will list all packages with the string "perl" in its name or description, than you currently have installed.
This can serve as a candidate list for the 32bit packages.

(Warning: there is a known bug #1574351 that prevents installing different architecture versions of some perl packages without additional tricks.)

Can you help with this problem?

Provide an answer of your own, or ask Jeffery Ashmore for more information if necessary.

To post a message you must log in.