LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2007, 04:55 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
perl: (2)No such file or directory: exec of ...


Hi!

I have installed a programm written in perl called socialcalc. The programm works locally when I do
Code:
perl bin/socialcalc.pl
but I don't get anything when I try to reach it from internet. The page is just blank with no reaction.
The webserver is a FC6 with apache2. I don't get any security message, only some error message in error_log:
Quote:
[Tue Nov 13 11:39:48 2007] [error] [client 111.111.111.111] (2)No such file or directory: exec of '/var/www/cgi-bin/myProgramm/bin/socialcalccgi.pl' failed
[Tue Nov 13 11:39:48 2007] [error] [client 111.111.111.111] Premature end of script headers: socialcalccgi.pl
It can't file eventhough the file is definitly here. On the webpage I don't get any 404 Not Found error message anyway.
I also disabled SELinux, but it didn't make any difference.
I also have to say that I have a very similar programm (wikicalc, also in perl) running on the same webserver, and I have no problem.
I also installed the programm on another server, and got the same result with the same error message.

So what could be the problem?
thanks.
 
Old 11-13-2007, 05:21 AM   #2
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Ok, I got it to work!
The perl scipt begann like this
Code:
#!/usr/bin/perl
I changed the first line into this
Code:
#!/usr/bin/perl -w
and with this little "-w" it now works! I don't understand why though. In the manpages it say that -w is for warnings.
Does anyone understand any of this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc: installation problem, cannot exec `as': No such file or directory ERROR jaisol Slackware 8 08-05-2006 12:01 PM
exec: No such file or directory GUIPenguin Linux - General 1 03-31-2006 07:56 AM
exec cmd=perl... work but exec cgi doenst crions Slackware 5 12-09-2005 12:17 PM
gcc: installation problem, cannot exec `cc1': No such file or directory natsirc Linux - General 3 11-11-2004 09:26 AM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Linux - Newbie 1 06-01-2004 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration