develooper Front page | perl.beginners | Postings from April 2003

Re: Installing Modules using SSH

Thread Previous | Thread Next
From:
Ramon Chavez
Date:
April 29, 2003 07:11
Subject:
Re: Installing Modules using SSH
Message ID:
006501c30e59$7e2f1980$898d12ac@aeromexico.com.mx
I've followed steps.
And I got my first module installed in ~/perl5lib  (great)

But ~/perl5lib is not in @INC

When I tried

perl Makefile.PL
instead of
perl Makefile.PL PREFIX=~/perl5lib

I got this message (after "make install")
------------------
$ make install
Warning: You do not have permissions to install into
/usr/lib/perl5/site_perl/5.6.1/i386-linux at
/usr/lib/perl5/5.6.1/ExtUtils/Install.pm line 85.
mkdir /usr/lib/perl5/site_perl/5.6.1/auto: Permission denied at
/usr/lib/perl5/5.6.1/ExtUtils/Install.pm line 139
make: *** [pure_site_install] Error 255
------------------

Bad thing, isn't it?

This made me think. May I use ExtUtils::Install to install any Module in a
directory contained in @INC??
I've readen the documentation of ExtUtils::Install, but it's not so clear
for me.
Is there any way to override this need for permission???
-rm-


----- Original Message -----
From: "Ramon Chavez" <ramon.c@sistemedic.com>
Cc: <beginners@perl.org>
Sent: Tuesday, April 29, 2003 7:45 AM
Subject: Re: Installing Modules using SSH


> Great.
>
> I'll try that.
> Thank you.
> By the way. I've been looking for the .tar.gz file for CPAN module, but I
> haven't found it. Does it even exist???.
>
> -rm-
> ----- Original Message -----
> From: "Wiggins d'Anconia" <wiggins@danconia.org>
> To: "Ramon Chavez" <ramon.c@sistemedic.com>
> Cc: <beginners@perl.org>
> Sent: Monday, April 28, 2003 7:45 PM
> Subject: Re: Installing Modules using SSH
>
>
> > Ramon Chavez wrote:
> > > Mmm
> > >
> > > It got this message after "perl -MCPAN -e shell"
> > >
> > > Can't locate CPAN.pm in @INC (@INC contains:
> /usr/lib/perl5/5.6.1/i386-linux
> > > /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux
> > > /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl
> > > /usr/lib/perl5/vendor_perl/5.6.1/i386-linux
> /usr/lib/perl5/vendor_perl/5.6.1
> > > /usr/lib/perl5/vendor_perl .).
> > > BEGIN failed--compilation aborted.
> > > [sistemedic@lx102 sistemedic]$
> > >
> > > I looked with perldiver and I found CPAN module isn't installed...
:'(
> > >
> > > What else can I do??
> > >
> > Grr... in that case you get to do the module installations manually,
> > including the dependencies.  So essentially for most required modules
> > you should be able to follow these steps:
> >
> > 1) locate module on http://search.cpan.org
> >
> > 2) download the source tar file, upload tar file using ftp/scp to the
> server
> >
> > 3) untar the file with something like tar -xzvf <file>.tar.gz , man tar
> > for more
> >
> > 4) cd into the directory created by the untarring in step 3, should be
> > named the same as the tar file without the tar.gz
> >
> > 5) perl Makefile.PL PREFIX=~/perl5lib (or whatever path you want)
> >
> > 6) make
> >
> > 7) make test
> >
> > 8) make install
> >
> > This shoudl work with most Perl modules. For more details check out
> >
> > perldoc perlmodinstall
> > (http://www.perldoc.com/perl5.8.0/pod/perlmodinstall.html)
> >
> > http://danconia.org
> >
> >
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
>
>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About