LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-07-2003, 04:27 AM   #1
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Rep: Reputation: 30
Removing Perl


Hey :-)

I installed the latest version of perl tonight (from source) but I don't know how to remove perl without stuffing up ALL of the dependencies...

Basically, what i want to do is get all the dependencies to use the new version.

How would i go about doing this?
 
Old 12-07-2003, 09:56 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what did you do to install this new version?

if you already have it installed, you should NEVER just install a new one, you should UPGRADE instead:

rpm -Uvh perl.rpm this will then list and extra dependencies.
 
Old 12-07-2003, 11:11 AM   #3
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
I built it from source (couldn't find an RPM for it)...

I've removed the newer version, LOL not really worth stuffing the system

Last edited by AMMullan; 12-07-2003 at 11:36 AM.
 
Old 12-07-2003, 11:32 AM   #4
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
Would a Mandrak RPM work for a Redhat system?

As this is the only RPM that i've found
 
Old 12-07-2003, 01:02 PM   #5
tallfred
LQ Newbie
 
Registered: Dec 2003
Location: Chicago, USA
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
Both should be fine

Don't worry about uninstalling the old perl. The library names & module paths should include the version, so they should coexist just fine (e.g. /usr/lib/perl5/vendor_perl/5.8.0/Date/Parse.pm). Unfortnately, this also means you need to reinstall all the modules for the new version to use them. (You didn't explicitly say which versions you had, so they may be compatible.)

As for running the new perl, my RedHat 9 has perl installed in /usr/bin. This is the customary place for distribution installed binaries. Your installation from source probably went to /usr/local/bin, which frequently is listed later in the $PATH environment variable, so everyone runs the distro version. Nonetheless, most scripts encode the path of /usr/bin/perl in the first line anyway. On most systems /usr/bin/perl is a link (soft or hard) to the actual perl (e.g. /usr/bin/perl5.8.0 on redhat 9). Using ls -li /usr/bin/perl* will show they have the same i-node and thus refer to the same file contents.

To change the /usr/bin/perl link first delete it with rm. Then "ln -s /usr/local/bin/perl5.10.0 /usr/bin/perl", but you need to be root first. To restore the old hard link it would be "ln /usr/bin/perl5.8.0 /usr/bin/perl". Just remember that the arguement order for ln is the same as cp.

I suspect the symbolic link may break the security of suid perl scripts, but have not tested it.
 
Old 12-07-2003, 01:28 PM   #6
AMMullan
Member
 
Registered: Sep 2003
Location: United Kingdom
Distribution: Ubuntu, Arch
Posts: 438

Original Poster
Rep: Reputation: 30
Thanks Tallfred

Firstly, I am running v5.8.0 (standard RH9 build) and am upgrading to 5.8.2.

So when I install what would I use (not a newbie, just never upgraded Perl and am a bit nervous LOL). In the INSTALL it says sh Configure -de, make, make test, make install so should I specify a path (it installs to /usr/local/lib/perl5 as a default)...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
Removing files wihtout removing containing Direcotry caps_phisto Linux - General 2 10-07-2004 08:16 AM
removing accents with perl weird_guy Programming 6 03-12-2004 06:45 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 06:15 PM

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

All times are GMT -5. The time now is 08:55 PM.

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