LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how can I downgrade Perl version on redhat 9.0 ? (https://www.linuxquestions.org/questions/linux-software-2/how-can-i-downgrade-perl-version-on-redhat-9-0-a-88613/)

rainvory 09-02-2003 08:07 PM

how can I downgrade Perl version on redhat 9.0 ?
 
I am quite new user of Linux ( version of my system is redhat 9.0)
During using some software for my study, I found it required lower version of Perl like 5.6.x.

How can I easily downgrade the version without breaking system?
Is it ok just to install the lower version after removing higher version Perl I used forcibly (by 'rm '??)?? Is there some tool to install or remove program in this case?

Please give me some advice to downgrade perl version to v.5.6.X.


Thank you in advnace!!!!

darthtux 09-06-2003 10:20 PM

rpm -e perl

If other programs depend on it, it will give you and error.

chee_l_s 03-04-2004 08:50 PM

Hi, I also needed to downgrade my perl 5.8 to perl 5.6.1, in order to use qmail-scanner with qmail.

If perl 5.8 is really in used by other programs, then what can we do to replace it?

Please help. thanks.

linushelp 05-01-2017 09:04 PM

downgrade perl
 
hi,

Do anyone know how to downgrade perl version in Red Hat 6 ? or can we install another perl version into the same OS ?

Thank you,
LinuxHelp

notKlaatu 05-01-2017 09:38 PM

linushelp, the thread you're posting in is over 13 years old :) It's probably worth starting a new thread for your question.

Before you do start a new thread, confirm that you are using Red Hat 6 rather than Red Hat Enterprise Linux (RHEL) 6. They are VERY different.

sundialsvcs 05-02-2017 01:38 PM

You can install multiple versions of Perl, and this is commonly done.

I strongly recommend that you leave alone the standard "system-wide" installation since system management tools might well depend on it.

Create a directory, say somewhere in /usr/local/bin, and install the Perl executable into it. Then, in similar fashion, set up a location for the CPAN library materials. Your "old" Perl should only reference this alternate library location: it should not reference the system-wide location at all. Install CPAN materials for this Perl while running this Perl.

This is analogous to "installing Perl as a non-root user," say in a public web-hosting service. There's a lot of material on that particular topic.

linushelp 05-02-2017 08:27 PM

Hi sundialsvcs,

I am still new in Linux system, May you show me the installation step by step how to do it ?

Thank you,
linushelp

sundialsvcs 05-02-2017 08:43 PM

Quote:

Originally Posted by linushelp (Post 5705390)
Hi sundialsvcs,

I am still new in Linux system, May you show me the installation step by step how to do it ?

Thank you,
linushelp

Unfortunately, as earnestly as I might – out of the goodness of my ever lovin' heart – wish to help you "from afar," I really can't.

However: do some Google-searching on the topic of "perl as a non-root user," and then consider how you might do this "in the operating system (if any ...) that you know best." The fundamental principles are actually quite similar from one environment to another. A few things to look for would be these:
  • Command path: When a program "issues the perl command," our locally-installed version must be the one that gets picked.
  • Environment variables: Perl(5) uses the PERL5LIB environment variable to specify its library-search path. You must maintain a separate library and always ensure that "your Perl" will always find what it's looking for in this library.
As earnestly-sympathetic as I may be to your plight, and even though I am thoroughly familiar with Perl, I can't give you what you ask, therefor I must now send you on a search. Please spend the next couple of days doing some serious fact-finding, and then, please, circle back here with "lots more questions."

You might also find it fruitful to ask at http://www.perlmonks.org. This is a Perl-specific website.

linushelp 05-02-2017 10:09 PM

hi

Here what I done
# sh Configure -Dprefix=$HOME/perl-5.22.3
#make
#make test
#make install

So what is the next ?

Thank you,


All times are GMT -5. The time now is 07:45 AM.