- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: PERL Installation
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2007 09:47 PM
тАО06-12-2007 09:47 PM
PERL Installation
but there was already a lower version of perl present(Perl5.005_03).
The old version is present in usr/bin/perl
and the newer version is installed in usr/local/bin/perl.
when i gave 'which perl' command then it gave the path of the older version.
when i gave 'perl -v' it gave the older version.
what should i do for the newer version to be used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2007 10:20 PM
тАО06-12-2007 10:20 PM
Re: PERL Installation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 12:19 AM
тАО06-13-2007 12:19 AM
Re: PERL Installation
Did you logout and back in after the installation? 'which' is not sensitive to path changes that occur during a session.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 12:42 AM
тАО06-13-2007 12:42 AM
Re: PERL Installation
and make sure it looks like the following:
PATH=/usr/local/bin/:$PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 05:11 PM
тАО06-13-2007 05:11 PM
Re: PERL Installation
the older version of the perl, the name is perl. for the newly installed one the name is perl5.9.4. so when i give which perl command then its showing the older path and when i give which perl5.9.4 then its showing the newer path.
how can i make sure that when i try to execute a perl program the newer version will take it up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 06:01 PM
тАО06-13-2007 06:01 PM
Re: PERL Installation
2. Create a soft link from perl5.9.4 to perl in the same directory (/usr/local/bin isn't it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 08:46 PM
тАО06-13-2007 08:46 PM
Re: PERL Installation
this is the output i got when i gave echo $PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 09:40 PM
тАО06-13-2007 09:40 PM
Re: PERL Installation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 10:48 PM
тАО06-13-2007 10:48 PM
Re: PERL Installation
For it to be installed in '/usr/bin/', you had some pre-packaged version of Perl. Given that it was 5.005_03 (i.e. 10 or so years old).
Coupled with that, you've installed a development release of Perl? If this is a production server, what was that thought process?
In any case, to do this all properly, your best practice would be to rename the old perl binaries in '/usr/bin'. RENAME.. Not remove. This way you can always go back if you need too.
A list will look something like this:
/usr/bin/a2p
/usr/bin/c2ph
/usr/bin/cpan
/usr/bin/dprofpp
/usr/bin/enc2xs
/usr/bin/find2perl
/usr/bin/h2ph
/usr/bin/h2xs
/usr/bin/instmodsh
/usr/bin/libnetcfg
/usr/bin/perl
/usr/bin/perl5.8.3
/usr/bin/perlbug
/usr/bin/perlcc
/usr/bin/perldoc
/usr/bin/perlivp
/usr/bin/piconv
/usr/bin/pl2pm
/usr/bin/pod2html
/usr/bin/pod2latex
/usr/bin/pod2man
/usr/bin/pod2text
/usr/bin/pod2usage
/usr/bin/podchecker
/usr/bin/podselect
/usr/bin/prove
/usr/bin/psed
/usr/bin/pstruct
/usr/bin/s2p
/usr/bin/splain
/usr/bin/xsubpp
This is from a much newer release (5.8.4), so some of thsoe won't exist.
From there, soft-link the new binaries from '/usr/local/bin' into '/usr/bin'.
This way, you won't muck up your path order (of which for security reasons you probably don't want to do), and will also retain old '.pl' scripts which are #!'d to '/usr/bin/perl'.
If you've only installed this version of perl as a 'test', then you should just directly reference it in all of your tests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 10:50 PM
тАО06-13-2007 10:50 PM
Re: PERL Installation
You may be lucky, and they'll just work, but...
/usr/local/bin/perl -MCPAN -eshell
This is your friend *nod*.