LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-18-2003, 01:01 AM   #1
axlotl
LQ Newbie
 
Registered: Sep 2003
Location: NYC
Distribution: mandrake 9.2
Posts: 29

Rep: Reputation: 15
upgrading perl


OK, let's stipulate I am a programming noob.

I am trying to learn perl. My Mandrake distro (9.2) installed 5.8.1, but for various reasons I want to install and configure my own perl, which would be 5.8.2. I can't remove 5.8.1 obviously; half the userland shit relies on it and something as simple as rpm -e perl (just to cut to the chase) returns a few pages of dependency problems.

So I tried just installing perl 5.8.2, and there was no problem. but
#perl -v
still returns 5.8.1, which didn't really surprise me.

The question is: how can I walk a new perl installation over an old one, destroying all the old configuration, but leaving all the dependencies (of other programs on perl) in place? There's obviously the problem that perl resides currently in a directory named afer its version, so there's 1,000 PATH's out there going: "/usr/lib/perl5/5.8.1/*"


Or is everyone just going to tell me to go read a few books first?
 
Old 12-18-2003, 02:53 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Chances are good, if you installed perl, it installed in /usr/local/bin/ the perl you're running in to is probably in /usr/bin

which perl

locate perl | grep bin

You could try /usr/local/bin/perl -v first to see.

Once you've made sure it installed in /usr/local/bin/perl, you can
mv /usr/bin/perl /usr/bin/perl.old
ln -s /usr/local/bin/perl /usr/bin

Then you can rpm -e perl if you want.

Anyway, hope that's a couple of starting points for you.
 
Old 12-18-2003, 03:06 AM   #3
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
hello
i am not a programer but i install perl for some other software with these following steps may you solve you problem

The basic steps to build and install perl5 on a Unix system
with all the defaults are:

rm -f config.sh Policy.sh
sh Configure -de
make
make test
make install

Regards
 
Old 12-19-2003, 01:45 AM   #4
axlotl
LQ Newbie
 
Registered: Sep 2003
Location: NYC
Distribution: mandrake 9.2
Posts: 29

Original Poster
Rep: Reputation: 15
Technoslave is close, I think. mo's just lessin' README's. Doesn't anyone ever upgrade perl? Do I have to grep the whole filesystem for 5.8.1? All those config.scripts pointing there? wipe it out, install new ver, grep and replace....


There's no way this is what everyone does when they upgrade perl.

At least I hope not!

Maybe reinstall the OS ultra vanilla, install perl like I want, and take it from there? But when A new version comes out with some feature I *totally* need?

I can already install a whole new kernel easier than this! Hell, I just did this morning (but who didn't? _)
 
Old 12-19-2003, 01:48 AM   #5
axlotl
LQ Newbie
 
Registered: Sep 2003
Location: NYC
Distribution: mandrake 9.2
Posts: 29

Original Poster
Rep: Reputation: 15
Man, it turned my little guy into a guy!

I think I'm begining to hate php.
 
Old 12-19-2003, 07:52 AM   #6
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
What func are you wanting in 5.8.2 that you can't do in 5.8.1?
 
Old 12-23-2003, 01:35 AM   #7
axlotl
LQ Newbie
 
Registered: Sep 2003
Location: NYC
Distribution: mandrake 9.2
Posts: 29

Original Poster
Rep: Reputation: 15
The answer to BigNate is: "none; I just don't like the install; I want to pass some arguments of my own." I have figured out how to deal with my specific problems anyway. Nevertheless, the question remains unanswered: how does one upgrade perl? The day may come when it becomes strictly necessary. Reinstalling the OS to fix problems is for windows users, god (or someone) bless their little souls.

P.S. sorry to bump this up from oblivion; I was visiting kin in the mountainous outbacks of southern Arizona, where people actually connect at 56k, and my family wouldn't stand for me wasting precious holiday time cursing at a laptop.
 
Old 12-23-2003, 02:38 AM   #8
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Um, I told you how to upgrade perl...Don't complain just because you don't like the answer :-D

If you mean via RPM, if you can find a 5.8.2 rpm, then you'd just issue rpm -Uvh perl-5.8.2.rpm, etc.

To expand a little more.

Once you've ./configure; make; make install perl the 1st time. Assuming Larry doesn't change the layout of where perl is placed, you can always redo the same thing with a new version of perl and it will just overwrite the old version ( at least until version 6 comes out )

Last edited by Technoslave; 12-23-2003 at 02:41 AM.
 
Old 12-23-2003, 08:50 AM   #9
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Have you tried using "perl -MCPAN -eshell" to configure and customize your existing install to suit your needs?
 
  


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
Error compiling perl-DBD-MySQL after upgrading to MySQL 4.1 pitaro920 Linux - Software 1 01-16-2006 05:28 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 06:37 PM
Yum error: .conflict between perl and perl-NDBM_File zepplin611 Red Hat 3 10-20-2004 11:22 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 09:09 PM
chrooting apache v2 (php, ssl, perl support) ; perl configuration markus1982 Linux - Security 3 01-26-2003 07:15 PM

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

All times are GMT -5. The time now is 06:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration