LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2006, 03:28 PM   #1
treed
Member
 
Registered: Sep 2003
Posts: 45

Rep: Reputation: 15
Multiple version of perl on the same machine


I currently have perl version 5.8.4 installed on my debian system Sarge 3.1. I want to maintain the 5.8.4 version and install another version of perl preferably version 5.8.8. I think this is possible by just picking an install path and setting up an environment variable to point to the alternative location or a aliases.

But I am not sure so some guidance would be extremely helpful at this point.

Thanks

Tameika
 
Old 09-28-2006, 04:54 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I've only recently started exploring the Debian way of doing things so I can't tell you how to make a parallel installation of Perl using "the Debian way".

I'd guess that if you tried dpkg, apt, or aptitude, you'd just upgrade the current installation instead of getting the parallel installation.

The only way I can think of the get the parallel installation, is to install from source tarball. In the ./configure phase of installation, be careful to specify installation options that won't overwrite the current installation: such as --prefix= , --libdir=, --bindir-, etc. The default installation locations in the tarball (and the .deb) would just overwrite the current installation. By specifying options to alternate locations, you get the parallel installation.

Since I don't know your level of experience with tarball installations, I'll assume little experience, just to be safe.
Select a location to unpack the tarball, such as /usr/local.
Unpack the tarball: tar -xvf <tarball name>. That will leave a folder with the package name in /usr/local.
Cd to that folder, then run '/configure --help' for a list of configuration options. Look for the options that allow you to specify installation locations of parts of the package. You would probably set them all to /usr/local/<some folder name> to keep them from overwriting current installation.

Construct the command line, with the appropriate options to ./configure. Then run make and make install. You should have a parallel installation.

It would be a good idea to backup your system before you start. If you break things, restore the backup to get back to square one, then try again.
 
Old 10-01-2006, 04:51 PM   #3
treed
Member
 
Registered: Sep 2003
Posts: 45

Original Poster
Rep: Reputation: 15
Perl Error

Thank you for those instructions, however when I try to do a make test after the LD_LIBRARY_PATH is set to the build directory it errors out on me. Any ideas on how to correct this?


Failed 1 test script out of 930, 99.89% okay.
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
### ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
### setenv LD_LIBRARY_PATH `pwd`:$LD_LIBRARY_PATH; cd t; ./perl harness
### LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd t; ./perl harness
### export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=1.43 s=0.45 cu=182.08 cs=16.77 scripts=930 tests=116705
make[2]: *** [_test_tty] Error 1
make[2]: Leaving directory `/usr/local/perl-5.8.8'
make[1]: *** [_test] Error 2
make[1]: Leaving directory `/usr/local/perl-5.8.8'
make: *** [test] Error 2
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl + how to get ip address of local machine alix123 Programming 5 07-10-2006 06:03 AM
multiple distros on one machine smgregory Linux - Newbie 9 03-31-2006 07:56 PM
Control multiple machine from one machine with help of network spinner_0 Linux - Networking 4 10-27-2005 07:20 AM
multiple mailserver on one machine? Ikik Linux - General 0 01-27-2004 11:00 PM
Multiple machine installs SamuelB Linux - General 3 08-20-2003 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration