Newbie question


I am totally new to Perl & Linux. The reason is that I've found a very promising program using Perl. So I installed a Linux box and installed the program.
The problem is that its shell scripts calls Perl scripts like this:


On my system it doesnt work and I have to type:


I don't want to change the scripts because I'm sure I'm missing something.

Can you melp?
Who is Participating?
jhurstConnect With a Mentor Commented:
Well, thank you.

I post this answer so you can give them to me.

Please do post what you find though, we will all learn something.
While you do not specify the exact message that you receive when you run this I wold be certain that it is one of two things:

a) the is not executable
b) the first line of the script: #!/usr/loca/bin/perl or whatever does not contain the correct address of the perl interpretter.
ornicarAuthor Commented:
Sorry to reject your answer but I still have problems with this. It doesn't come from the scripts because its a proofed application.
I installed Perl 5.6 and the error disappears.
Then the prog. told me then that was not found and I have to run h2ph, which I did. Now it goes further with a syntax error in The message is:

syntax error at /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/sys/ line 15, near ") ("
syntax error at /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/sys/ line 35, near "}"
Compilation failed in require at /usr/local/lib/perl5/5.6.1/ line 18.
Compilation failed in require at /usr/local/lib/perl5/5.6.1/ line 100.
Compilation failed in require at ./ line 16.
[root@daisy ftplocator]# vi /usr/local/lib/perl5/site_perl/5.6.1/i686-linux/sys/

Sure there is something wrong with my installation, not the scripts.

The box is a P II 400Mhz. Why i686 as folder?

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Your suggestion that it is a prooved application does not prove much.  b) would fit with this if perl was mnot on the same location on the two machines.  This fits with the new install too since you could now have perl where it needs to be according to the first line of the script.

Are you sure that this script will run with per 5.6?

What was the original error that you were getting before the 5.6 installation?
I agree with jhurst completely.

what is a prooven script...matts form mail??? :)

perl is probably not in the same place

do you have usr/local/bin/perl

or do you have usr/bin/perl or what

since perl is standard in linux, it is unlikely you could have messed up the install.

ornicarAuthor Commented:
You are surely right. My Linux is still missing something: By checking the file where the error is, it mention something about _cplusplus variable, and the empty brackets looks like I have an empty environment variable.
I'll try next week-end to install C++ and tell you what happend.
Anyway, the points are yours, jhurst.
Force Accepted

Community Support Moderator @Experts Exchange
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.