Click to See Complete Forum and Search --> : general question


gabriel07
10-22-2001, 05:44 PM
in my redhat 7.0 i dont have a file /usr/local/bin/perl/ and i am trying to run a .pl file could this be somewhere else or do i have to install it and if so where can i get it from

-g

bwkaz
10-22-2001, 06:01 PM
IF you have Perl installed, the perl executable will be in /usr/bin.

If you don't have it, look at the RedHat CD's for the Perl .rpm's, or see if you can find the source code on Google or something (I'm not even sure if it's available, but I would think so).

If you install it with a package manager, it goes into /usr/bin, where if you build it from source, it (by default) goes into /usr/local/bin. You could, instead of changing the script, create a symlink in /usr/local/bin to the real executable, if you wanted to.

klamath
10-22-2001, 06:52 PM
The Perl source code is available from CPAN or perl.com (or a million other places).

But I would be VERY surprised if it's not installed by your distro.

mmccue
10-26-2001, 12:36 PM
in my redhat 7.0 i dont have a file /usr/local/bin/perl/ and i am trying to run a .pl file could this be somewhere else or do i have to install it and if so where can i get it from

you can run 'which perl' to get the path to your perl. In your .pl file, you should, at the top, first line, have :

#!/path/to/perl

then you can just 'chmod +x yourprog.pl' and then use './yourprog.pl' or 'yourprog.pl' to run it.

Mike