HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Re: Perl, out with the old, in with the new?
 
Operating System - HP-UX
        1840126
        Members
    
    
        4479
        Online
    
    
        110161
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            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
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- 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
 
03-08-2001 02:49 PM
03-08-2001 02:49 PM
			
				
					
					
						I have a D class server with HP-UX 11.0 and when I do a perl -v I get: 
#perl -v
This is perl, version 4.0
$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
Patch level: 36
Copyright (c) 1989, 1990, 1991, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 4.0 source kit.
Now, I have a DEPOT file with Perl 5.6.0 and when I install it I still get Perl 4.0 with the perl -v command.
How do I get rid of the 4.0 and have the 5.6.0 version work? The install goes fine, no errors.
Help please. I need a web server that uses this newer version of perl (Apache is already installed on this server).
Thanks!
John
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
#perl -v
This is perl, version 4.0
$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
Patch level: 36
Copyright (c) 1989, 1990, 1991, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 4.0 source kit.
Now, I have a DEPOT file with Perl 5.6.0 and when I install it I still get Perl 4.0 with the perl -v command.
How do I get rid of the 4.0 and have the 5.6.0 version work? The install goes fine, no errors.
Help please. I need a web server that uses this newer version of perl (Apache is already installed on this server).
Thanks!
John
Solved! Go to Solution.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-08-2001 03:45 PM
03-08-2001 03:45 PM
Solution
			
				
					
					
						The perl version 4 is installed in /usr/contrib/bin I think.  The perl version 5.6 that you just installed is installed in /opt/perl5/bin.
There are 2 things that you can do:
1a) rename (mv) /usr/contrib/bin/perl to /usr/contrib/bin/perl.old
1b) link /usr/contrib/bin/perl to /opt/perl5/bin/perl (ln -s /opt/perl5/bin/perl /usr/contrib/bin/perl -- I think I got the order right on the link, I'm not at work so I can't double check).
2) Modify your path so that /opt/perl5/bin appears before /usr/contrib/bin
Either should work for you.
Good luck.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
There are 2 things that you can do:
1a) rename (mv) /usr/contrib/bin/perl to /usr/contrib/bin/perl.old
1b) link /usr/contrib/bin/perl to /opt/perl5/bin/perl (ln -s /opt/perl5/bin/perl /usr/contrib/bin/perl -- I think I got the order right on the link, I'm not at work so I can't double check).
2) Modify your path so that /opt/perl5/bin appears before /usr/contrib/bin
Either should work for you.
Good luck.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-08-2001 04:06 PM
03-08-2001 04:06 PM
			
				
					
						
							Re: Perl, out with the old, in with the new?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Patrick
I went with option 1 since I wasn't sure how to change the order of my path.
It works perfectly and the syntax was exactly right.
Thanks a lot!
John
		
		
	
	
	
I went with option 1 since I wasn't sure how to change the order of my path.
It works perfectly and the syntax was exactly right.
Thanks a lot!
John
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
03-08-2001 07:43 PM
03-08-2001 07:43 PM
			
				
					
						
							Re: Perl, out with the old, in with the new?
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Perl 4 is supplied just for the q4 program and a few references in SAM. To adjust the $PATH value, edit /etc/PATH. /etc/profile sets $PATH using this file. Well written shell (and perl) scripts will have the path in the first line:
#!/opt/perl5/bin/perl
	
Bill Hassell, sysadmin
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
#!/opt/perl5/bin/perl
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP