Install Perl on Fedora

Max Pyziur pyz at brama.com
Wed Jun 25 20:23:29 UTC 2008


On Wed, 25 Jun 2008, Wei, Alice J. wrote:

> Hi, Fedora Users:
>
>  I am just starting out to use Fedora and learned about installations with the yum function.
>  I have installed Perl 5.10.0-26, and the message shows that it had been installed:
>
> Updated: perl.i386 4:5.10.0-26.fc9 perl-ExtUtils-MakeMaker.i386 0:6.36-26.fc9 perl-ExtUtils-ParseXS.i386 1:2.18-26.fc9 perl-Module-Pluggable.i386 1:3.60-26.fc9 perl-Pod-Escapes.i386 1:1.04-26.fc9 perl-Pod-Simple.i386 1:3.05-26.fc9 perl-Test-Harness.i386 0:2.64-26.fc9 perl-devel.i386 4:5.10.0-26.fc9 perl-libs.i386 4:5.10.0-26.fc9 perl-version.i386 3:0.74-26.fc9
> Complete!
>
> 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

Your bang line doesn't need "local";
#!/usr/bin/perl
should suffice.

#!/usr/bin/perl -w
is helpful for debugging.


Logged in as root, you could always create a symlink, but that could cause 
headaches later if you stick to #!/usr/local/bin/perl

ln -s /usr/bin/perl /usr/local/bin/perl

Max Pyziur
pyz at brama.com


> It is true that I don't see Perl in this directory, but is it necessary that I have to move my Perl installation?
>
> Thanks in advance.
>
> Alice
> ======================================================
> Alice Wei
> MIS 2009
> School of Library and Information Science
> Indiana University Bloomington
> ajwei at indiana.edu
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the fedora-list mailing list