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: pgpwfprAAKqfS.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux