- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: /usr/bin/perl linked to /opt/perl/bin/perl
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
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
тАО08-10-2006 12:49 AM
тАО08-10-2006 12:49 AM
/usr/bin/perl linked to /opt/perl/bin/perl
I'm trying to find out why on my HP-UX 11i machine, the /usr/bin/perl has a symbolic link to /opt/perl/bin/perl.
I see only that on one of my machine, and all the other machines do not have the symbolic link.
It seems like the link has been created when the HP-UX has been installed (As per the swagent.log dates I find), but I'm looking for some more installation logs that could tell me really at which point the link has been created.
Many Thanks !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 12:54 AM
тАО08-10-2006 12:54 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
The latest (5.8.8) Perl depot from HP-UX specifies '/opt/perl' as the installation directory for Perl. However, for convenience, and conformance, a symbolic link is created from '/usr/bin/perl' as noted, during Perl's installation.
Formerly, one had to create one's own symbolic link from '/usr/bin/perl'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 01:01 AM
тАО08-10-2006 01:01 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
do you mean that is has been created by someone, or by the perl installation ??
If it has been created by the perl installation, is there a log file / script where I can see it created the link ?
Many thanks, we're on the good way !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 01:02 AM
тАО08-10-2006 01:02 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
UNIX (or HP-UX) file system hierarchy is the answer.
users applications installation directory will be under /opt/application_name
and to maintain the PATH for the executables, the applications(or users) will create the symbolic link in /usr/bin/
understanding the unix file system hierarchy is interesting. try that sometime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 01:08 AM
тАО08-10-2006 01:08 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
and u cant find that in the log file(i think)
u can refer the perl installation guides.
check the owener of the /usr/bin/perl
it is bin. not root or somebody.
so that link is created while installing perl
Sekar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 01:16 AM
тАО08-10-2006 01:16 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
Summary answer:
1) Convenience.
2) Version control of what perl is used.
The average system may have many releases of perl. It may be possible to consolidate using soft links and run fewer versions of perl.
This can be done by an install process. I often did it manually with the ln -s command.
Doing it this way negates the need to edit a pile of scripts.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 04:38 AM
тАО08-10-2006 04:38 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
Since SD-UX installed the Perl, you need only look in the configure script. See, in this case:
# /var/adm/sw/products/Perl5-64/pfiles/configure
# /var/adm/sw/products/Perl5-32/pfiles/configure
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 09:24 AM
тАО08-10-2006 09:24 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
Java typically works the same way /usr/bin/jre typically is a link to /opt/javeX.X/jre/bin or something.
The use of the link in /usr/bin could be a transitional support link. Older software with hard codes can find the perl binary with out a programming change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 09:37 AM
тАО08-10-2006 09:37 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
e.g.
#!/usr/bin/perl
or better still
#!/usr/bin/perl -w
Remember, UNIX has no notion of file extensions so "myfile.pl" only gets executed as a perl script either if the "shbang" line is correct or if the script is invoked as an argument to perl.
e.g. "perl myfile.pl"
If this symbolic link were not in place then you would need to modify your Perl scripts each time the Perl directory were moved. Using the symbolic link means that you make one change (to the link) when Perl is installed elsewhere and nothing else has to change. Thus, whether or not the Perl install routines creates this link, it's a good idea to have it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 07:35 PM
тАО08-10-2006 07:35 PM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
lrwxr-xr-x 1 root sys 18 Mar 29 09:44 /usr/bin/perl -> /opt/perl/bin/perl
#ll -d /opt/perl*
lrwxr-xr-x 1 root sys 12 Mar 29 09:44 /opt/perl -> /opt/perl_32
dr-xr-xr-x 7 root root 1024 Mar 29 09:39 /opt/perl_32
dr-xr-xr-x 7 root root 1024 Mar 29 09:44 /opt/perl_64
/usr/bin/perl -v
This is perl, v5.8.7 built for PA-RISC1.1-thread-multi
(with 8 registered patches, see perl -V for more detail)
Copyright 1987-2005, Larry Wall
rgs
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2006 12:24 AM
тАО08-11-2006 12:24 AM
Re: /usr/bin/perl linked to /opt/perl/bin/perl
I think I can work with that, now.
Many thanks.