Wooden Shoe has asked for the wisdom of the Perl Monks concerning the following question:

I dowloaded Perl from an NCBI website --> Applications of the E-Utilities. The version turned out to be v18. Later I found that the latest version is recommended. This turned out to be version 24. I downloaded this version, but cannot get it to install. E.g
$ Perl -v This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-th +read-multi-2level (with 2 registered patches, see perl -V for more de +tail) Copyright 1987-2013, Larry Wall $ /Users/michael.bunnemeyer/Downloads/perl-5.24\ 5.0/installperl ; exi +t; -bash: /Users/michael.bunnemeyer/Downloads/perl-5.24 5.0/installperl: +./perl: bad interpreter: No such file or directory logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. Deleting expired sessions...24 completed. [Process completed]
Apparently v24 is not installed, as per $ perl -v Wooden shoe

Replies are listed 'Best First'.
Re: Installing Perl v24 does not work!
by Corion (Patriarch) on Jan 17, 2017 at 14:45 UTC
Re: Installing Perl v24 does not work!
by marto (Cardinal) on Jan 17, 2017 at 15:03 UTC

    You should read tutorials->PerlMonks for the Absolute Beginner and the links within, it'll teach you how to use this site better, including how to link to things. You don't say where you download perl from on this site, or where you are being instructed to call installperl. A google search for "installperl" finds no results for that domain, hardly surprising. The README file has an introduction to installation, and tells you which file to read for more information.

Re: Installing Perl v24 does not work!
by shmem (Chancellor) on Jan 17, 2017 at 16:04 UTC
    /Users/michael.bunnemeyer/Downloads/perl-5.24\ 5.0/installperl

    Installing into/from a path with a space in it is not supported.

    update: cross-posted to The Perl5 Porters Mailing List

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
      In that case, he might try dir /x to find out the "spaceless" (8.3) name of that path. From my experiments ISTR that using C:\PROGRA~1 and C:\PROGRA~2 (instead of Program Files and Program Files (x86)) did work on Windows 7 and is likely to work on 8 and 10…

        The OP is on a Mac, not Windows.

        They just need to rename perl-5.24 5.0 to perl-5.24_5.0

      Since when is this not supported?

        It was never supported and I remember some problems when configuring and building Perl in a directory with spaces in it.

        Ideally, the build process would be able to deal with whitespace in file and directory names, but at least up to 5.16 this was problematic and I haven't investigated it since.

        Update: At least Tony Cook agrees with me.

Re: Installing Perl v24 does not work!
by kcott (Archbishop) on Jan 18, 2017 at 08:47 UTC

    G'day Wooden Shoe,

    Welcome to the Monastery.

    "-bash: /.../installperl: ./perl: bad interpreter: No such file or directory"

    I'm reasonably certain that the problem is in the shebang line of installperl. I can reproduce it like so:

    $ cat pm_1179751_shebang_error.pl #!./perl 1; $ pm_1179751_shebang_error.pl -bash: ./pm_1179751_shebang_error.pl: ./perl: bad interpreter: No such + file or directory

    I'm unfamiliar with the "NCBI" you mention. As already pointed out, you've provided little information about this or what installation instructions you have (or have not) followed. Given the relative path to perl in the shebang line, you probably have to cd to some directory before running installperl. That's very much a guess! Read, and follow, whatever installation instructions "NCBI" provides you with.

    I'm also running Mac OS X. I use Perlbrew to install new versions of Perl. I have used that tool to successfully install these versions:

    • 5.14.0
    • 5.14.2
    • 5.18.0
    • 5.18.1
    • 5.20.0
    • 5.20.2
    • 5.22.0
    • 5.24.0

    — Ken