- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: "perl: cannot execute"
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
Forums
Discussions
Discussions
Discussions
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
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
01-01-2001 11:20 PM
01-01-2001 11:20 PM
"perl: cannot execute"
Any one know what would be possible cause of the problem. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 04:31 AM
01-02-2001 04:31 AM
Re: "perl: cannot execute"
1.
Check again the first line in your script
#!/usr/bin/perl
Check /usr/bin/perl is exist and executable.
2.
Try start it in a different shell ( csh ) and may be found the mistake.
Saa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 05:22 AM
01-02-2001 05:22 AM
Re: "perl: cannot execute"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 05:31 AM
01-02-2001 05:31 AM
Re: "perl: cannot execute"
Were you always executing the scripts as the same user?, there is a kernel parameter: maxuprc - maximum processes per user - you may have reached...
Increase its value and try again...
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 05:24 PM
01-02-2001 05:24 PM
Re: "perl: cannot execute"
I did check the processes run by the user by "ps -ef |grep user_id", less than 10 processes were shown under this user id. and maxuprc was set to 256.
I even could not start "perl" as well even I logged in as "root", but I could other program, such as sam, sar.
Any suggestion what may go wrong?
Another question: how to log the number of processes which was run by a particular user?
thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 09:43 PM
01-02-2001 09:43 PM
Re: "perl: cannot execute"
Your script is not running the perl interpreter from the correct path. Please check that your perl executable resides in the path specified in the first line of your script.
If your script calls the perl interpreter from /usr/bin, then your script would reflect in its first line: #!/usr/bin/perl
To resolve this problem, either modify the path in your perl script to where your perl interpreter resides eg. change #!/usr/bin/perl to #!/usr/local/bin/perl, or copy/soft-link your perl interpreter to where it should reside
eg. ln -s /usr/local/bin/perl /usr/bin/perl
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 09:54 PM
01-02-2001 09:54 PM
Re: "perl: cannot execute"
To count the number of processes run by a specific user, run the following command to minus off the single line count for the heading: # expr `ps -fu $userid|wc -l` - 1
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 11:21 PM
01-02-2001 11:21 PM
Re: "perl: cannot execute"
Could you check which program you start when typing 'perl -v'.
At the prompt, type 'which perl'
It could show that you have a file called 'perl' in your PATH, especially if your PATH includes the current directory (.)
What happens if you type '/usr/bin /perl -v' or '/usr/local/bin/perl -v' (depending of your installation directory) ?
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 01:23 AM
01-03-2001 01:23 AM
Re: "perl: cannot execute"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 01:49 AM
01-03-2001 01:49 AM
Re: "perl: cannot execute"
As the modification date of your perl executable been changed recently?
What is the output of 'what /usr/bin/perl' ?
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 01:56 AM
01-03-2001 01:56 AM
Re: "perl: cannot execute"
Should read "Has the modification...."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 02:22 AM
01-03-2001 02:22 AM
Re: "perl: cannot execute"
If you are not able to run perl from the perl -v from the directory containing the executable, Please check your PATH settings. Your current directory should be in your PATH settings.
Try either:
$ PATH=$PATH:.
$ perl -v
Or:
$ ./perl -v
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2001 05:19 AM
01-03-2001 05:19 AM
Re: "perl: cannot execute"
I did tried "./perl -v" as well at the directory where perl executable is installed.
As I mentioned in my first message, without changing anything, just killing the three processes, I can start "./perl -v" or "perl -v" and any perl script.
Really hope to get a clue what may go wrong.
thank you for those who has give me suggestion