Find the answer to your Linux question:
Results 1 to 5 of 5
Hi guys, I'm new to PERL and Redhat. I have trouble installing perl, i tried which perl command and also perl -v but gives message no perl in...... perl -v ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    3

    PERL scripts in Redhat

    Hi guys, I'm new to PERL and Redhat. I have trouble installing perl, i tried which perl command and also perl -v but gives message no perl in...... perl -v gives this message command not found. I actually need to run a perl script (.pl) in Redhat but failed after many attempts. Please help

    Thanks in advance.

  2. #2
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    133
    try this command

    # rpm -qa | grep perl

    it will tell you if there is any perl in the machine or not.
    also try
    # perl --version

    don't type the hash, it means you have totype it into the shell.
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  3. #3
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    133
    to run the perlscript give it permission i.e. right click onto it go to it's properties nad then permissions and the check the allow exacuting the file as a progam.
    and then perl myPerlScript.pl
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    Quote Originally Posted by rituraj.goswami View Post
    try this command

    # rpm -qa | grep perl
    it will tell you if there is any perl in the machine or not.
    Tried this command, it gives many lines of words starting with perl i.e:
    perl-html....
    perl-libw ww...
    perl-xml....
    perl-5.8.0-88...
    and many more


    Quote Originally Posted by rituraj.goswami View Post
    also try
    # perl --version

    don't type the hash, it means you have totype it into the shell.
    this one gives--> bash: perl: command not found

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    Quote Originally Posted by rituraj.goswami View Post
    to run the perlscript give it permission i.e. right click onto it go to it's properties nad then permissions and the check the allow exacuting the file as a progam.
    and then perl myPerlScript.pl

    went into permission and see 3 properties there:

    owner:
    group:
    pthers:

    execute is checked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...