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

Hi, I am facing many issues while installing perl modules with the default perl which comes with sun OS 10. Now I want to install perl in any custom directory. what I know and did is as below

downloaded the latest perl in any directory (say /home/abc) unzipped and untar it. cd /home/abc/perl-5.20.1 ln -s /usr/sfw/bin/gcc /usr/bin/gcc ln -s /usr/ccs/bin/make /usr/bin/make ./Configure prefix=/customperl/cac make make test make install

all three make command didn't show any failure but still I didn't get my perl installed in custom /customperl/cac directory. Could any one please tell me where I am wrong or provide me the complete steps to install this...thanks.

Replies are listed 'Best First'.
Re: How to install perl in custom directory on solaris.
by Corion (Patriarch) on Dec 18, 2014 at 08:14 UTC

    Please review INSTALL as supplied with your Perl tarball. The documented invocation for Configure is

    sh Configure -Dprefix=/opt/perl
Re: How to install perl in custom directory on solaris.
by marto (Cardinal) on Dec 18, 2014 at 08:32 UTC

    The last time you asked for help you were given many links, including the INSTALL file which explains how to do this. When installing any software please read the documentation if you are at all in doubt.

    Also, If you ran ./Configure prefix=/customperl/cac you'd have been prompted for an installation prefix as one of the questions:

    "Installatoin prefix to use?"

Re: How to install perl in custom directory on solaris.
by jellisii2 (Hermit) on Dec 18, 2014 at 12:40 UTC
Re: How to install perl in custom directory on solaris.
by jimhallsun (Sexton) on Dec 22, 2014 at 22:38 UTC

    You are kind of setting up your compiling environment in a weird way. BUT....

  • Do a which perl and make sure you can find it. Do a gcc -v to confirm it is executable
  • At a minimum, do a sh Configure -Dusedtrace -Dcc=gcc -Dprefix=<your directory>
  • You are going to need to tell Configure that the compiler you want to use is gcc. Configure assumes cc for Solaris.