I would like to be able to install multiple versions of Perl but I need to have them by architecture as well.
I know that I can use perlbrew to get installs by version: 5.10.1, 5.12.3, 5.16.0, etc. I couldn't find a way to also have installs by architecture, Solaris-sparc, Solaris-x86, Linux-i686, Linux-x86_64, etc.
Doing a hand install I can do this
It's no big deal doing hand installs but perlbrew makes some things easier regarding management and such.
EDIT: As brought out the in comments I am using a common home directory NFS mounted across various platforms.
You can use the --as
option to perlbrew install
to give an install a different name (to avoid clashes with the same version), and you can pass any Configure
-D
, -U
, or -A
options to perlbrew
and it will pass them through. But I also fail to see how a perl for a different arch is useful in the context of perlbrew.
Here is an example of installing 32bit perl on an actual 64bit machine using perlbrew:
perlbrew install perl-5.8.8 --as perl-5.8.8-i386-linux-thread-multi -Dcc='cc -m32' -Dplibpth='/lib64 /usr/lib64 /usr/lib/ /usr/lib/x86_64-linux-gnu/' -Darchname=i386-linux-thread-multi -Dusethreads
Flags passed to Configure
through -D
will vary based on environment and specific needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With