Results 1 to 4 of 4

Thread: Run a PERL program turns error

  1. #1
    Join Date
    Sep 2013
    Beans
    2

    Run a PERL program turns error

    Hi everyone!

    I'm new to linux environment and just was able to install and use Ubuntu 12.04 a month ago. Actually I need ubuntu mainly to work with linux-based bioinformatics tools. Few days ago I was able to compile the software (EIGENSOFT, downloaded from: http://www.hsph.harvard.edu/alkes-price/software/) into /usr/local/bin directory. My problem now that one of the program inside this software is PERL program and when I type the syntax for it in the terminal, it returns me with this error:
    bash: ../bin/ploteig: /usr/local/bin/perl: bad interpreter: No such file or directory

    The program is called ploteig, and is located inside bin of the software file. Would you please help me to overcome this error? I downloaded the software in the same path of PERL.

    Thanks a lot in advance!

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    perl

    The first line of a script has to point to the script's interpreter. The one provided is for a different system than Ubuntu and it appears to have perl in a slightly different location:

    Code:
    #!/usr/local/bin/perl  -w
    That's the wrong location for a script on a Ubuntu system. With Ubuntu (or any other), you can find perl with which

    Code:
    which perl
    That gives us /usr/bin/perl. So you can edit the first line of the ploteig script to point to where perl really is.

  3. #3
    Join Date
    Sep 2013
    Beans
    2

    Re: Run a PERL program turns error

    Your tip works well.

    Thanks a million.. you saved my day)

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Run a PERL program turns error

    Have fun. perl is a very flexible scripting language.

Bookmarks

Posting Permissions

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