Re: Install Perl on Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wei, Alice J. wrote:
> I am just starting out to use Fedora and learned about
> installations with the yum function.
[...]
> However, when I tried to execute a basic hello script in Perl, it
> tells me
> bash: ./total.pl: /usr/local/bin/perl: bad interpreter: No such file or directory
> 
> It is true that I don't see Perl in this directory, but is it
> necessary that I have to move my Perl installation?

It would be better to adjust your script to point to /usr/bin/perl.
If you need the script to run on various systems where perl might be
in /usr/bin or /usr/local/bin or somewhere else in the path, you could
also use /usr/bin/env perl or (I think) just perl.

All of this is on the first line of the perl script you're trying to
run, aka the shellbang, shebang, hashbang, etc.  It needs to start
with #!.  So one of these should work:

#!/usr/bin/perl
#!/usr/bin/env perl
#!perl

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Going to hell when I die would just be redundant.

Attachment: pgpQYsYVcbMvs.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux