[Chicago-talk] Installing another Perl on same box

Steven Lembark lembark at wrkhors.com
Tue May 2 12:14:03 PDT 2006


Jay Strauss wrote:
 > Hi,
 >
 > I need to install a non-threaded version of Perl in addition to the 
distro
 > provided threaded version (Debian Sarge).
 >
 > I've read the INSTALL that comes with my Perl source (5.8.4).  And it 
seems
 > like I can make it so that the non-threaded can use all the pure Perl 
modules
 > already installed.
 >
 > So I did
 >
 > sh Configure -Dprefix=/opt/perl -des
 > make && make test

I've found it useful to use another level of indirection
it the prefix in the past:

   ./Configure -Dprefix=/opt/perl5/5.8-nothr -d -e -s ...

(also to add compiler optimization, '-O3 -march=i686 -mtune=X -pipe'
has been helpful).

After that you can:

   cd /opt/perl5/;
   ln -fs 5.8-nothr/* .;

   cd /opt/bin;
   ln -fs ../perl5/bin/* .;

at this point you can use "#!/opt/bin/perl" and
switch to non-threaded or a later version of perl
by installing it into /opt/perl5/FooBar then:

   cd /opt/perl5;
   rm *;
   ln -fs FooBar/* .;

and go along with life.

-- 
Steven Lembark                                         85-09 90th Street
Workhorse Computing                                  Woodhaven, NY 11421
lembark at wrkhors.com                                      +1 888 359 3508


More information about the Chicago-talk mailing list