Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Perl module installation as NON-ROOT

by kprasanna_79 (Hermit)
on Apr 24, 2007 at 01:33 UTC ( [id://611628]=perlquestion: print w/replies, xml ) Need Help??

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

Hi Revered Monks,

I am using HP-UNIX and i am trying to install Test::Simple module in my home directory. I am not a root, so i follow the below steps to install it.

perl Makefile.PL PREFIX=~/lib/perl5 make make test make install

i am getting the following error

Warning: You do not have permissions to install into /web/perlsite/PA- +RISC2.0 at /web/perl5/lib/5.00503/ExtUtils/Install.pm line 61. mkdir /web/perlsite/Test: Permission denied at /web/perl5/lib/5.00503/ +ExtUtils/Install.pm line 114 *** Error exit code 2 Stop.

Please advice....Am i missing something here...Upto my knowledge ...no....


-Prasanna.K

Replies are listed 'Best First'.
Re: Perl module installation as NON-ROOT
by ercparker (Hermit) on Apr 24, 2007 at 06:35 UTC
    cpan FAQ:
    You need to set PREFIX and LIB when you run the Makefile.PL.

    LIB is where the module files will go
    PREFIX is the stub directory for everything else.

    For example:
    shell$ perl Makefile.PL LIB=/home/foobar/mylib PREFIX=/home/foobar/myl +ib

    good luck
Re: Perl module installation as NON-ROOT
by dana (Monk) on Apr 24, 2007 at 01:58 UTC

    Assuming you have lib and lib/perl5 in your home directory, have you tried the full path rather than using '~'?

    perl Makefile.PL PREFIX=/home/XXX/lib/perl5

    At times, I've run into problems using '~' to specify a home directory.

      dana,

      i have tried but no use....

Re: Perl module installation as NON-ROOT
by wjw (Priest) on Apr 24, 2007 at 03:04 UTC
    HPUX is problematic in my experience. Anything you want to do that has a standard approach on other *nix systems, has to be dealt with differently on HPUX. I don't know why you are seeing the problem you describe, but a quick google search using these parameters "installing perl modules on HPUX" pointed to some spots you may want to check out.

    Based on the version of Perl that is being reported in the warning you posted, I am guessing that you are running an older version of HPUX. You might also want to talk to the sys admin (assuming it is not you) and see if there is a binary install available from one of the depots out there... . I know it is not much, but hope this little bit helps.

    Good luck :-)

    ...the majority is always wrong, and always the last to know about it...

      I work with HP-UX exclusively for my $employer. I have a custom Perl installation, and commonly specify PREFIX=/foo/bar on the Makefile.PL invocation.

      ~, IIRC, is a shell meta character, and does not get expanded in the middle of a line. Use /home/foo instead of ~foo when calling the Makefile.PL file.

      --MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://611628]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-23 17:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found