Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > problems building perl modules, path question

Reply
Thread Tools

problems building perl modules, path question

 
 
mmccaws2
Guest
Posts: n/a
 
      10-29-2007
I've been having problems building modules from the perl -MCPAN -e
shell. Usually the error refers to not having permission to a perl
library. My os is HPUX 11i.

I am not the administrator for the box, but I use sudo to install the
modules.

so I start like: $ perl -MCPAN -e shell.
login
then try to install a module like Net::SSH:erl. The errors will say
do not have permission to a library that is installed on the box.

Question is - why would I not have permission to a perl library in a
perl directory? is this based on sudo, my perl installation, or my
path parameters?

Thanks
Mike

 
Reply With Quote
 
 
 
 
Ben Morrow
Guest
Posts: n/a
 
      10-29-2007

Quoth mmccaws2 <(E-Mail Removed)>:
> I've been having problems building modules from the perl -MCPAN -e
> shell. Usually the error refers to not having permission to a perl
> library. My os is HPUX 11i.
>
> I am not the administrator for the box, but I use sudo to install the
> modules.
>
> so I start like: $ perl -MCPAN -e shell.
> login
> then try to install a module like Net::SSH:erl. The errors will say
> do not have permission to a library that is installed on the box.
>
> Question is - why would I not have permission to a perl library in a
> perl directory? is this based on sudo, my perl installation, or my
> path parameters?


Are you actually using sudo? What happens if you type

o conf make_install_make_command "sudo make"
o conf commit

into the CPAN shell and try again? If this doesn't work you need to
upgrade your version of CPAN.pm: if you wish to do this globally, you
will need to do it by hand.

Alternatively, see perldoc -q 'own module'.

Ben

 
Reply With Quote
 
 
 
 
Ron Bergin
Guest
Posts: n/a
 
      10-29-2007
On Oct 28, 4:53 pm, mmccaws2 <(E-Mail Removed)> wrote:
> I've been having problems building modules from the perl -MCPAN -e
> shell. Usually the error refers to not having permission to a perl
> library. My os is HPUX 11i.
>
> I am not the administrator for the box, but I use sudo to install the
> modules.
>
> so I start like: $ perl -MCPAN -e shell.0

Are you sure you're using sudo? Based on the command that you've
posted, I'd say that's highly unlikely.

> login
> then try to install a module like Net::SSH:erl. The errors will say
> do not have permission to a library that is installed on the box.
>
> Question is - why would I not have permission to a perl library in a
> perl directory? is this based on sudo, my perl installation, or my
> path parameters?


Try doing:

$ sudo bash
[pass your login credentials]

# perl -MCPAN -e shell

Note the difference between the $ prompt and the # prompt.

 
Reply With Quote
 
Ben Morrow
Guest
Posts: n/a
 
      10-29-2007

Quoth Ron Bergin <(E-Mail Removed)>:
>
> Try doing:
>
> $ sudo bash
> [pass your login credentials]
>
> # perl -MCPAN -e shell
>
> Note the difference between the $ prompt and the # prompt.


It would be better to avoid performing the Makefile.PL and make steps as
root, if possible. Since CPAN (at least recent versions) has support for
using sudo for make install, it would be better to take advantage of it.

Ben

 
Reply With Quote
 
mmccaws2
Guest
Posts: n/a
 
      11-07-2007
On Oct 29, 2:53 pm, Ben Morrow <(E-Mail Removed)> wrote:
> Quoth Ron Bergin <(E-Mail Removed)>:
>
>
>
> > Try doing:

>
> > $sudobash
> > [pass your login credentials]

>
> > #perl-MCPAN -e shell

>
> > Note the difference between the $ prompt and the # prompt.

>
> It would be better to avoid performing the Makefile.PL and make steps as
> root, if possible. Since CPAN (at least recent versions) has support for
> usingsudofor make install, it would be better to take advantage of it.
>
> Ben


So, I think I have made a few mistakes here and I need to correct
them. I had installed several modules by getting into perl -MCPAN -e
shell using sudo. The reason is I get this error message

$ perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok (v0.66)
mkdir /home/mccannm/.cpan/CPAN: Permission denied at /opt/perl_32/lib/
5.8.8/CPAN/HandleConfig.pm line 539

when I tried logging in as my self.
What happened is this, right after the reinstallation of perl, we're
on 5.8.8 now, I need to install a module that required root access. I
had tried to install that module previously and it said trying to
install the module I needed root access. It was the POE module for
non-blocking ping. I used sudo perl -MCPAN -e shell to intall it.
Since then I can't install any module without using sudo perl -MCPAN -
e shell.

So I need to correct this situation before it gets any worse. In an
ideal world of unix administration what are the practices for
installing modules when you have multiple users, each with sudo
access, that need to install modules and modules that require root
permissions.

Also, do I uninstall the ones that I have already installed as root or
do I change file permissions for directories, I really don't
understand this part of administration.

Thanks for your help
mike


 
Reply With Quote
 
Ben Morrow
Guest
Posts: n/a
 
      11-07-2007

Quoth mmccaws2 <(E-Mail Removed)>:
> On Oct 29, 2:53 pm, Ben Morrow <(E-Mail Removed)> wrote:
> > Quoth Ron Bergin <(E-Mail Removed)>:
> >
> > > Try doing:

> >
> > > $sudobash
> > > [pass your login credentials]

> >
> > > #perl-MCPAN -e shell

> >
> > > Note the difference between the $ prompt and the # prompt.

> >
> > It would be better to avoid performing the Makefile.PL and make steps as
> > root, if possible. Since CPAN (at least recent versions) has support for
> > usingsudofor make install, it would be better to take advantage of it.

>
> So, I think I have made a few mistakes here and I need to correct
> them. I had installed several modules by getting into perl -MCPAN -e
> shell using sudo. The reason is I get this error message
>
> $ perl -MCPAN -e shell
> CPAN: File::HomeDir loaded ok (v0.66)
> mkdir /home/mccannm/.cpan/CPAN: Permission denied at /opt/perl_32/lib/
> 5.8.8/CPAN/HandleConfig.pm line 539
>
> when I tried logging in as my self.
> What happened is this, right after the reinstallation of perl, we're
> on 5.8.8 now, I need to install a module that required root access. I
> had tried to install that module previously and it said trying to
> install the module I needed root access. It was the POE module for
> non-blocking ping. I used sudo perl -MCPAN -e shell to intall it.
> Since then I can't install any module without using sudo perl -MCPAN -
> e shell.


What has happened is that running CPAN under sudo has created
/home/mccannm/.cpan as root, so you can't run CPAN as yourself any more.
You need to su(do) to root, and either delete the entire directory or
chown -R it to yourself. Then you need to set CPAN up to use sudo to
install (as yourself):

$ perl -MCPAN -eshell
cpan> o conf make_install_make_command "sudo make"
cpan> o conf mbuild_install_build_command "sudo ./Build"
cpan> o conf commit
cpan> quit
$

You will of course need sudo rights to perform both those commands; but
it seems as though you have localhost=(root) ALL rights anyway.

> Also, do I uninstall the ones that I have already installed as root or
> do I change file permissions for directories, I really don't
> understand this part of administration.


No, all the modules already installed should be fine (you might want to
check that everything under /opt/perl_32/lib is owned by root). It's
just your CPAN config that's been messed up.

Ben

 
Reply With Quote
 
mmccaws2
Guest
Posts: n/a
 
      11-07-2007
On Nov 7, 8:59 am, Ben Morrow <(E-Mail Removed)> wrote:
> Quoth mmccaws2 <(E-Mail Removed)>:
>
>
>
> > On Oct 29, 2:53 pm, Ben Morrow <(E-Mail Removed)> wrote:
> > > Quoth Ron Bergin <(E-Mail Removed)>:

>
> > > > Try doing:

>
> > > > $sudobash
> > > > [pass your login credentials]

>
> > > > #perl-MCPAN -e shell

>
> > > > Note the difference between the $ prompt and the # prompt.

>
> > > It would be better to avoid performing the Makefile.PL and make steps as
> > > root, if possible. Since CPAN (at least recent versions) has support for
> > > usingsudofor make install, it would be better to take advantage of it.

>
> > So, I think I have made a few mistakes here and I need to correct
> > them. I had installed several modules by getting into perl -MCPAN -e
> > shell using sudo. The reason is I get this error message

>
> > $ perl -MCPAN -e shell
> > CPAN: File::HomeDir loaded ok (v0.66)
> > mkdir /home/mccannm/.cpan/CPAN: Permission denied at /opt/perl_32/lib/
> > 5.8.8/CPAN/HandleConfig.pm line 539

>
> > when I tried logging in as my self.
> > What happened is this, right after the reinstallation of perl, we're
> > on 5.8.8 now, I need to install a module that required root access. I
> > had tried to install that module previously and it said trying to
> > install the module I needed root access. It was the POE module for
> > non-blocking ping. I used sudo perl -MCPAN -e shell to intall it.
> > Since then I can't install any module without using sudo perl -MCPAN -
> > e shell.

>
> What has happened is that running CPAN under sudo has created
> /home/mccannm/.cpan as root, so you can't run CPAN as yourself any more.
> You need to su(do) to root, and either delete the entire directory or
> chown -R it to yourself. Then you need to set CPAN up to use sudo to
> install (as yourself):
>
> $ perl -MCPAN -eshell
> cpan> o conf make_install_make_command "sudo make"
> cpan> o conf mbuild_install_build_command "sudo ./Build"
> cpan> o conf commit
> cpan> quit
> $
>
> You will of course need sudo rights to perform both those commands; but
> it seems as though you have localhost=(root) ALL rights anyway.
>
> > Also, do I uninstall the ones that I have already installed as root or
> > do I change file permissions for directories, I really don't
> > understand this part of administration.

>
> No, all the modules already installed should be fine (you might want to
> check that everything under /opt/perl_32/lib is owned by root). It's
> just your CPAN config that's been messed up.
>
> Ben


well chown -R worked.



now the next part, and sorry for being so dense, But I don't sudo perl
-MCPAN -e shell but run those commands after entering perl -MCPAN -e
shell. Correct?

also the /opt/perl_32/lib/5.8.8/ has a lot of files with read only
permissions. Would the correct approach be chmod -R 644 /opt/perl_32/
lib/5.8.8/ or is that too broad of a command?



$ ls -l /opt/perl_32/lib/5.8.8/

gives


total 4784
dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 ActivePerl
-r--r--r-- 1 bin bin 3112 Aug 3 05:50
ActivePerl.pm
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 ActiveState
-r--r--r-- 1 bin bin 2594 Aug 3 05:50
AnyDBM_File.pm
dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Apache
drwxr-xr-x 2 root sys 96 Nov 6 21:58 App
dr-xr-xr-x 4 bin bin 96 Nov 2 12:54 Archive
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Attribute
-r--r--r-- 1 bin bin 11794 Aug 3 05:50
AutoLoader.pm
-r--r--r-- 1 bin bin 15699 Aug 3 05:50 AutoSplit.pm
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 B
-r--r--r-- 1 bin bin 28524 Aug 3 05:50 Benchmark.pm
dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Bundle
dr-xr-xr-x 3 bin bin 8192 Nov 2 12:54 CGI
-r--r--r-- 1 bin bin 249942 Aug 3 05:50 CGI.pm
dr-xr-xr-x 4 bin bin 8192 Nov 3 07:18 CPAN
-r--r--r-- 1 root sys 441448 Sep 28 00:06 CPAN.pm
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Carp
-r--r--r-- 1 bin bin 7608 Aug 3 05:50 Carp.pm
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Class
dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Convert
-r--r--r-- 1 bin bin 19229 Aug 3 05:50 DB.pm
dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 DBM_Filter
-r--r--r-- 1 bin bin 14415 Aug 3 05:50
DBM_Filter.pm
dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Data
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Devel
dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 Digest
-r--r--r-- 1 bin bin 10316 Aug 3 05:50 Digest.pm
-r--r--r-- 1 bin bin 1899 Aug 3 05:50 DirHandle.pm
-r--r--r-- 1 bin bin 16897 Aug 3 05:50 Dumpvalue.pm
dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 Encode
-r--r--r-- 1 bin bin 4519 Aug 3 05:50 English.pm
-r--r--r-- 1 bin bin 5170 Aug 3 05:50 Env.pm
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Exporter
-r--r--r-- 1 bin bin 14481 Aug 3 05:50 Exporter.pm
dr-xr-xr-x 6 bin bin 8192 Nov 2 12:54 ExtUtils
-r--r--r-- 1 bin bin 5208 Aug 3 05:50 Fatal.pm
dr-xr-xr-x 3 bin bin 8192 Nov 2 12:54 File
-r--r--r-- 1 bin bin 5405 Aug 3 05:50 FileCache.pm
-r--r--r-- 1 bin bin 6771 Aug 3 05:50
FileHandle.pm
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Filter
-r--r--r-- 1 bin bin 5668 Aug 3 05:50 FindBin.pm
dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Font
dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Getopt
dr-xr-xr-x 4 bin bin 8192 Nov 2 12:54 HTML
dr-xr-xr-x 5 bin bin 8192 Nov 2 12:54 HTTP
dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 I18N
dr-xr-xr-x 36 bin bin 8192 Nov 2 12:55
IA64.ARCHREV_0-thread-multi
dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 IO
dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 IPC
dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 LWP
-r--r--r-- 1 bin bin 21427 Jul 19 23:16 LWP.pm
dr-xr-xr-x 3 bin bin 8192 Nov 2 12:55 Locale
-r--r--r-- 1 bin bin 1141 Nov 27 2003 MD5.pm
dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 Math
dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Memoize
-r--r--r-- 1 bin bin 35275 Aug 3 05:50 Memoize.pm
dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 Module
-r--r--r-- 1 bin bin 16122 Aug 3 05:50 NEXT.pm
dr-xr-xr-x 5 bin bin 8192 Nov 6 22:04 Net
dr-xr-xr-x 6 bin bin 8192 Nov 2 12:55 PPM
dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 PerlIO
-r--r--r-- 1 bin bin 10928 Aug 3 05:50 PerlIO.pm
dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 Pod
dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 SOAP
dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Search
-r--r--r-- 1 bin bin 1070 Aug 3 05:50
SelectSaver.pm
-r--r--r-- 1 bin bin 13203 Aug 3 05:50
SelfLoader.pm
-r--r--r-- 1 bin bin 8457 Aug 3 05:50 Shell.pm
-r--r--r-- 1 bin bin 28651 Aug 3 05:50 Switch.pm
-r--r--r-- 1 bin bin 4794 Aug 3 05:50 Symbol.pm
drwxr-xr-x 4 root sys 8192 Nov 6 21:58 TAP
dr-xr-xr-x 3 bin bin 8192 Nov 2 12:55 Term
dr-xr-xr-x 4 bin bin 8192 Nov 6 21:58 Test
-r--r--r-- 1 bin bin 28863 Aug 3 05:50 Test.pm
dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Text
dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Thread
-r--r--r-- 1 bin bin 10152 Aug 3 05:50 Thread.pm
dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Tie
dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Time
dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 UDDI
-r--r--r-- 1 bin bin 4052 Aug 3 05:50 UNIVERSAL.pm
dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 URI
-r--r--r-- 1 bin bin 30307 Nov 5 2004 URI.pm
dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 Unicode
dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 User
dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 WWW
dr-xr-xr-x 8 bin bin 8192 Nov 2 12:55 XML
dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 XMLRPC
-r--r--r-- 1 bin bin 838 Aug 3 05:50 abbrev.pl
-r--r--r-- 1 bin bin 1298 Aug 3 05:50 assert.pl
-r--r--r-- 1 bin bin 12844 Aug 3 05:50
attributes.pm
-r--r--r-- 1 bin bin 4238 Aug 3 05:50 autouse.pm
-r--r--r-- 1 bin bin 6524 Aug 3 05:50 base.pm
-r--r--r-- 1 bin bin 7368 Aug 3 05:50 bigfloat.pl
-r--r--r-- 1 bin bin 8959 Aug 3 05:50 bigint.pl
-r--r--r-- 1 bin bin 11937 Aug 3 05:50 bigint.pm
-r--r--r-- 1 bin bin 14966 Aug 3 05:50 bignum.pm
-r--r--r-- 1 bin bin 4476 Aug 3 05:50 bigrat.pl
-r--r--r-- 1 bin bin 10694 Aug 3 05:50 bigrat.pm
-r--r--r-- 1 bin bin 2106 Aug 3 05:50 blib.pm
-r--r--r-- 1 bin bin 2384 Aug 3 05:50 bytes.pm
-r--r--r-- 1 bin bin 758 Aug 3 05:50
bytes_heavy.pl
-r--r--r-- 1 bin bin 1122 Aug 3 05:50 cacheout.pl
-r--r--r-- 1 bin bin 15501 Aug 3 05:50 charnames.pm
-r--r--r-- 1 bin bin 3191 Aug 3 05:50 complete.pl
-r--r--r-- 1 bin bin 11709 Aug 3 05:50 constant.pm
-r--r--r-- 1 bin bin 1993 Aug 3 05:50 ctime.pl
-r--r--r-- 1 bin bin 17400 Aug 3 05:50
diagnostics.pm
-r--r--r-- 1 bin bin 2175 Aug 3 05:50 dotsh.pl
-r--r--r-- 1 bin bin 15275 Aug 3 05:50 dumpvar.pl
-r--r--r-- 1 bin bin 1736 Aug 3 05:50
exceptions.pl
-r--r--r-- 1 bin bin 1019 Aug 3 05:50 fastcwd.pl
-r--r--r-- 1 bin bin 9351 Aug 3 05:50 fields.pm
-r--r--r-- 1 bin bin 2156 Aug 3 05:50 filetest.pm
-r--r--r-- 1 bin bin 1185 Aug 3 05:50 find.pl
-r--r--r-- 1 bin bin 1130 Aug 3 05:50 finddepth.pl
-r--r--r-- 1 bin bin 642 Aug 3 05:50 flush.pl
-r--r--r-- 1 bin bin 1427 Aug 3 05:50 getcwd.pl
-r--r--r-- 1 bin bin 1322 Aug 3 05:50 getopt.pl
-r--r--r-- 1 bin bin 1406 Aug 3 05:50 getopts.pl
-r--r--r-- 1 bin bin 727 Aug 3 05:50 hostname.pl
-r--r--r-- 1 bin bin 1166 Aug 3 05:50 if.pm
-r--r--r-- 1 bin bin 283 Aug 3 05:50 importenv.pl
-r--r--r-- 1 bin bin 3266 Aug 3 05:50 integer.pm
-r--r--r-- 1 bin bin 373 Aug 3 05:50 less.pm
-r--r--r-- 1 bin bin 820 Aug 3 05:50 locale.pm
-r--r--r-- 1 bin bin 1255 Aug 3 05:50 look.pl
-r--r--r-- 1 bin bin 9136 Nov 30 2004 lwpcook.pod
-r--r--r-- 1 bin bin 25458 Nov 30 2004 lwptut.pod
-r--r--r-- 1 bin bin 2216 Aug 3 05:50 newgetopt.pl
-r--r--r-- 1 bin bin 7971 Aug 3 05:50 open.pm
-r--r--r-- 1 bin bin 185 Aug 3 05:50 open2.pl
-r--r--r-- 1 bin bin 185 Aug 3 05:50 open3.pl
-r--r--r-- 1 bin bin 46898 Aug 3 05:50 overload.pm
-r--r--r-- 1 bin bin 316737 Aug 3 05:50 perl5db.pl
dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 pod
dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 ppm-conf
-r--r--r-- 1 bin bin 1478 Aug 3 05:50 pwd.pl
-r--r--r-- 1 bin bin 276 Aug 3 05:50
shellwords.pl
-r--r--r-- 1 bin bin 7611 Aug 3 05:50 sigtrap.pm
-r--r--r-- 1 bin bin 6139 Aug 3 05:50 sort.pm
-r--r--r-- 1 bin bin 590 Aug 3 05:50 stat.pl
-r--r--r-- 1 bin bin 3292 Aug 3 05:50 strict.pm
-r--r--r-- 1 bin bin 842 Aug 3 05:50 subs.pm
-r--r--r-- 1 bin bin 4806 Aug 3 05:50 syslog.pl
-r--r--r-- 1 bin bin 164 Aug 3 05:50 tainted.pl
-r--r--r-- 1 bin bin 4114 Aug 3 05:50 termcap.pl
-r--r--r-- 1 bin bin 690 Aug 3 05:50 timelocal.pl
dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 unicore
-r--r--r-- 1 bin bin 7144 Aug 3 05:50 utf8.pm
-r--r--r-- 1 bin bin 7956 Aug 3 05:50
utf8_heavy.pl
-r--r--r-- 1 bin bin 3731 Aug 3 05:50 validate.pl
-r--r--r-- 1 bin bin 2358 Aug 3 05:50 vars.pm
-r--r--r-- 1 bin bin 4328 Aug 3 05:50 vmsish.pm
dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 warnings
-r--r--r-- 1 bin bin 15894 Aug 3 05:50 warnings.pm

 
Reply With Quote
 
elsiddik
Guest
Posts: n/a
 
      11-07-2007
On Nov 7, 7:05 pm, mmccaws2 <(E-Mail Removed)> wrote:
> On Nov 7, 8:59 am, Ben Morrow <(E-Mail Removed)> wrote:
>
>
>
> > Quoth mmccaws2 <(E-Mail Removed)>:

>
> > > On Oct 29, 2:53 pm, Ben Morrow <(E-Mail Removed)> wrote:
> > > > Quoth Ron Bergin <(E-Mail Removed)>:

>
> > > > > Try doing:

>
> > > > > $sudobash
> > > > > [pass your login credentials]

>
> > > > > #perl-MCPAN -e shell

>
> > > > > Note the difference between the $ prompt and the # prompt.

>
> > > > It would be better to avoid performing the Makefile.PL and make steps as
> > > > root, if possible. Since CPAN (at least recent versions) has support for
> > > > usingsudofor make install, it would be better to take advantage of it.

>
> > > So, I think I have made a few mistakes here and I need to correct
> > > them. I had installed several modules by getting into perl -MCPAN -e
> > > shell using sudo. The reason is I get this error message

>
> > > $ perl -MCPAN -e shell
> > > CPAN: File::HomeDir loaded ok (v0.66)
> > > mkdir /home/mccannm/.cpan/CPAN: Permission denied at /opt/perl_32/lib/
> > > 5.8.8/CPAN/HandleConfig.pm line 539

>
> > > when I tried logging in as my self.
> > > What happened is this, right after the reinstallation of perl, we're
> > > on 5.8.8 now, I need to install a module that required root access. I
> > > had tried to install that module previously and it said trying to
> > > install the module I needed root access. It was the POE module for
> > > non-blocking ping. I used sudo perl -MCPAN -e shell to intall it.
> > > Since then I can't install any module without using sudo perl -MCPAN -
> > > e shell.

>
> > What has happened is that running CPAN under sudo has created
> > /home/mccannm/.cpan as root, so you can't run CPAN as yourself any more.
> > You need to su(do) to root, and either delete the entire directory or
> > chown -R it to yourself. Then you need to set CPAN up to use sudo to
> > install (as yourself):

>
> > $ perl -MCPAN -eshell
> > cpan> o conf make_install_make_command "sudo make"
> > cpan> o conf mbuild_install_build_command "sudo ./Build"
> > cpan> o conf commit
> > cpan> quit
> > $

>
> > You will of course need sudo rights to perform both those commands; but
> > it seems as though you have localhost=(root) ALL rights anyway.

>
> > > Also, do I uninstall the ones that I have already installed as root or
> > > do I change file permissions for directories, I really don't
> > > understand this part of administration.

>
> > No, all the modules already installed should be fine (you might want to
> > check that everything under /opt/perl_32/lib is owned by root). It's
> > just your CPAN config that's been messed up.

>
> > Ben

>
> well chown -R worked.
>
> now the next part, and sorry for being so dense, But I don't sudo perl
> -MCPAN -e shell but run those commands after entering perl -MCPAN -e
> shell. Correct?
>
> also the /opt/perl_32/lib/5.8.8/ has a lot of files with read only
> permissions. Would the correct approach be chmod -R 644 /opt/perl_32/
> lib/5.8.8/ or is that too broad of a command?
>
> $ ls -l /opt/perl_32/lib/5.8.8/
>
> gives
>
> total 4784
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 ActivePerl
> -r--r--r-- 1 bin bin 3112 Aug 3 05:50
> ActivePerl.pm
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 ActiveState
> -r--r--r-- 1 bin bin 2594 Aug 3 05:50
> AnyDBM_File.pm
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Apache
> drwxr-xr-x 2 root sys 96 Nov 6 21:58 App
> dr-xr-xr-x 4 bin bin 96 Nov 2 12:54 Archive
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Attribute
> -r--r--r-- 1 bin bin 11794 Aug 3 05:50
> AutoLoader.pm
> -r--r--r-- 1 bin bin 15699 Aug 3 05:50 AutoSplit.pm
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 B
> -r--r--r-- 1 bin bin 28524 Aug 3 05:50 Benchmark.pm
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Bundle
> dr-xr-xr-x 3 bin bin 8192 Nov 2 12:54 CGI
> -r--r--r-- 1 bin bin 249942 Aug 3 05:50 CGI.pm
> dr-xr-xr-x 4 bin bin 8192 Nov 3 07:18 CPAN
> -r--r--r-- 1 root sys 441448 Sep 28 00:06 CPAN.pm
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Carp
> -r--r--r-- 1 bin bin 7608 Aug 3 05:50 Carp.pm
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Class
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Convert
> -r--r--r-- 1 bin bin 19229 Aug 3 05:50 DB.pm
> dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 DBM_Filter
> -r--r--r-- 1 bin bin 14415 Aug 3 05:50
> DBM_Filter.pm
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Data
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Devel
> dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 Digest
> -r--r--r-- 1 bin bin 10316 Aug 3 05:50 Digest.pm
> -r--r--r-- 1 bin bin 1899 Aug 3 05:50 DirHandle.pm
> -r--r--r-- 1 bin bin 16897 Aug 3 05:50 Dumpvalue.pm
> dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 Encode
> -r--r--r-- 1 bin bin 4519 Aug 3 05:50 English.pm
> -r--r--r-- 1 bin bin 5170 Aug 3 05:50 Env.pm
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Exporter
> -r--r--r-- 1 bin bin 14481 Aug 3 05:50 Exporter.pm
> dr-xr-xr-x 6 bin bin 8192 Nov 2 12:54 ExtUtils
> -r--r--r-- 1 bin bin 5208 Aug 3 05:50 Fatal.pm
> dr-xr-xr-x 3 bin bin 8192 Nov 2 12:54 File
> -r--r--r-- 1 bin bin 5405 Aug 3 05:50 FileCache.pm
> -r--r--r-- 1 bin bin 6771 Aug 3 05:50
> FileHandle.pm
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Filter
> -r--r--r-- 1 bin bin 5668 Aug 3 05:50 FindBin.pm
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Font
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Getopt
> dr-xr-xr-x 4 bin bin 8192 Nov 2 12:54 HTML
> dr-xr-xr-x 5 bin bin 8192 Nov 2 12:54 HTTP
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 I18N
> dr-xr-xr-x 36 bin bin 8192 Nov 2 12:55
> IA64.ARCHREV_0-thread-multi
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 IO
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 IPC
> dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 LWP
> -r--r--r-- 1 bin bin 21427 Jul 19 23:16 LWP.pm
> dr-xr-xr-x 3 bin bin 8192 Nov 2 12:55 Locale
> -r--r--r-- 1 bin bin 1141 Nov 27 2003 MD5.pm
> dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 Math
> dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Memoize
> -r--r--r-- 1 bin bin 35275 Aug 3 05:50 Memoize.pm
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 Module
> -r--r--r-- 1 bin bin 16122 Aug 3 05:50 NEXT.pm
> dr-xr-xr-x 5 bin bin 8192 Nov 6 22:04 Net
> dr-xr-xr-x 6 bin bin 8192 Nov 2 12:55 PPM
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 PerlIO
> -r--r--r-- 1 bin bin 10928 Aug 3 05:50 PerlIO.pm
> dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 Pod
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 SOAP
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Search
> -r--r--r-- 1 bin bin 1070 Aug 3 05:50
> SelectSaver.pm
> -r--r--r-- 1 bin bin 13203 Aug 3 05:50
> SelfLoader.pm
> -r--r--r-- 1 bin bin 8457 Aug 3 05:50 Shell.pm
> -r--r--r-- 1 bin bin 28651 Aug 3 05:50 Switch.pm
> -r--r--r-- 1 bin bin 4794 Aug 3 05:50 Symbol.pm
> drwxr-xr-x 4 root sys 8192 Nov 6 21:58 TAP
> dr-xr-xr-x 3 bin bin 8192 Nov 2 12:55 Term
> dr-xr-xr-x 4 bin bin 8192 Nov 6 21:58 Test
> -r--r--r-- 1 bin bin 28863 Aug 3 05:50 Test.pm
> dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Text
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Thread
> -r--r--r-- 1 bin bin 10152 Aug 3 05:50 Thread.pm
> dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Tie
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Time
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 UDDI
> -r--r--r-- 1 bin bin 4052 Aug 3 05:50 UNIVERSAL.pm
> dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 URI
> -r--r--r-- 1 bin bin 30307 Nov 5 2004 URI.pm
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 Unicode
> dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 User
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 WWW
> dr-xr-xr-x 8 bin bin 8192 Nov 2 12:55 XML
> dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 XMLRPC
> -r--r--r-- 1 bin bin 838 Aug 3 05:50 abbrev.pl
> -r--r--r-- 1 bin bin 1298 Aug 3 05:50 assert.pl
> -r--r--r-- 1 bin bin 12844 Aug 3 05:50
> attributes.pm
> -r--r--r-- 1 bin bin 4238 Aug 3 05:50 autouse.pm
> -r--r--r-- 1 bin bin 6524 Aug 3 05:50 base.pm
> -r--r--r-- 1 bin bin 7368 Aug 3 05:50 bigfloat.pl
> -r--r--r-- 1 bin bin 8959 Aug 3 05:50 bigint.pl
> -r--r--r-- 1 bin bin 11937 Aug 3 05:50 bigint.pm
> -r--r--r-- 1 bin bin 14966 Aug 3 05:50 bignum.pm
> -r--r--r-- 1 bin bin 4476 Aug 3 05:50 bigrat.pl
> -r--r--r-- 1 bin bin 10694 Aug 3 05:50 bigrat.pm
> -r--r--r-- 1 bin bin 2106 Aug 3 05:50 blib.pm
> -r--r--r-- 1 bin bin 2384 Aug 3 05:50 bytes.pm
> -r--r--r-- 1 bin bin 758 Aug 3 05:50
> bytes_heavy.pl
> -r--r--r-- 1 bin bin 1122 Aug 3 05:50 cacheout.pl
> -r--r--r-- 1 bin bin 15501 Aug 3 05:50 charnames.pm
> -r--r--r-- 1 bin bin 3191 Aug 3
> ...
>
> read more


The chmod 644 command sets the file to be "readable and writable" by
the owner of the account and readable by everybody else.
chmod -R 644 recursively change permissions of directories and their
contents.
chmod -R 644 /opt/perl_32/lib/5.8.8/ will do the job for you.

for more info read chmod man page.

zaher el siddik
http://www.unixshells.nl/

 
Reply With Quote
 
mmccaws2
Guest
Posts: n/a
 
      11-07-2007
On Nov 7, 12:12 pm, elsiddik <(E-Mail Removed)> wrote:
> On Nov 7, 7:05 pm, mmccaws2 <(E-Mail Removed)> wrote:
>
> > On Nov 7, 8:59 am, Ben Morrow <(E-Mail Removed)> wrote:

>
> > > Quoth mmccaws2 <(E-Mail Removed)>:

>
> > > > On Oct 29, 2:53 pm, Ben Morrow <(E-Mail Removed)> wrote:
> > > > > Quoth Ron Bergin <(E-Mail Removed)>:

>
> > > > > > Try doing:

>
> > > > > > $sudobash
> > > > > > [pass your login credentials]

>
> > > > > > #perl-MCPAN -e shell

>
> > > > > > Note the difference between the $ prompt and the # prompt.

>
> > > > > It would be better to avoid performing the Makefile.PL and make steps as
> > > > > root, if possible. Since CPAN (at least recent versions) has support for
> > > > > usingsudofor make install, it would be better to take advantage of it.

>
> > > > So, I think I have made a few mistakes here and I need to correct
> > > > them. I had installed several modules by getting into perl -MCPAN -e
> > > > shell using sudo. The reason is I get this error message

>
> > > > $ perl -MCPAN -e shell
> > > > CPAN: File::HomeDir loaded ok (v0.66)
> > > > mkdir /home/mccannm/.cpan/CPAN: Permission denied at /opt/perl_32/lib/
> > > > 5.8.8/CPAN/HandleConfig.pm line 539

>
> > > > when I tried logging in as my self.
> > > > What happened is this, right after the reinstallation of perl, we're
> > > > on 5.8.8 now, I need to install a module that required root access.I
> > > > had tried to install that module previously and it said trying to
> > > > install the module I needed root access. It was the POE module for
> > > > non-blocking ping. I used sudo perl -MCPAN -e shell to intall it.
> > > > Since then I can't install any module without using sudo perl -MCPAN -
> > > > e shell.

>
> > > What has happened is that running CPAN under sudo has created
> > > /home/mccannm/.cpan as root, so you can't run CPAN as yourself any more.
> > > You need to su(do) to root, and either delete the entire directory or
> > > chown -R it to yourself. Then you need to set CPAN up to use sudo to
> > > install (as yourself):

>
> > > $ perl -MCPAN -eshell
> > > cpan> o conf make_install_make_command "sudo make"
> > > cpan> o conf mbuild_install_build_command "sudo ./Build"
> > > cpan> o conf commit
> > > cpan> quit
> > > $

>
> > > You will of course need sudo rights to perform both those commands; but
> > > it seems as though you have localhost=(root) ALL rights anyway.

>
> > > > Also, do I uninstall the ones that I have already installed as rootor
> > > > do I change file permissions for directories, I really don't
> > > > understand this part of administration.

>
> > > No, all the modules already installed should be fine (you might want to
> > > check that everything under /opt/perl_32/lib is owned by root). It's
> > > just your CPAN config that's been messed up.

>
> > > Ben

>
> > well chown -R worked.

>
> > now the next part, and sorry for being so dense, But I don't sudo perl
> > -MCPAN -e shell but run those commands after entering perl -MCPAN -e
> > shell. Correct?

>
> > also the /opt/perl_32/lib/5.8.8/ has a lot of files with read only
> > permissions. Would the correct approach be chmod -R 644 /opt/perl_32/
> > lib/5.8.8/ or is that too broad of a command?

>
> > $ ls -l /opt/perl_32/lib/5.8.8/

>
> > gives

>
> > total 4784
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 ActivePerl
> > -r--r--r-- 1 bin bin 3112 Aug 3 05:50
> > ActivePerl.pm
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 ActiveState
> > -r--r--r-- 1 bin bin 2594 Aug 3 05:50
> > AnyDBM_File.pm
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Apache
> > drwxr-xr-x 2 root sys 96 Nov 6 21:58 App
> > dr-xr-xr-x 4 bin bin 96 Nov 2 12:54 Archive
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Attribute
> > -r--r--r-- 1 bin bin 11794 Aug 3 05:50
> > AutoLoader.pm
> > -r--r--r-- 1 bin bin 15699 Aug 3 05:50 AutoSplit.pm
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 B
> > -r--r--r-- 1 bin bin 28524 Aug 3 05:50 Benchmark.pm
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Bundle
> > dr-xr-xr-x 3 bin bin 8192 Nov 2 12:54 CGI
> > -r--r--r-- 1 bin bin 249942 Aug 3 05:50 CGI.pm
> > dr-xr-xr-x 4 bin bin 8192 Nov 3 07:18 CPAN
> > -r--r--r-- 1 root sys 441448 Sep 28 00:06 CPAN.pm
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Carp
> > -r--r--r-- 1 bin bin 7608 Aug 3 05:50 Carp.pm
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Class
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Convert
> > -r--r--r-- 1 bin bin 19229 Aug 3 05:50 DB.pm
> > dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 DBM_Filter
> > -r--r--r-- 1 bin bin 14415 Aug 3 05:50
> > DBM_Filter.pm
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Data
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Devel
> > dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 Digest
> > -r--r--r-- 1 bin bin 10316 Aug 3 05:50 Digest.pm
> > -r--r--r-- 1 bin bin 1899 Aug 3 05:50 DirHandle.pm
> > -r--r--r-- 1 bin bin 16897 Aug 3 05:50 Dumpvalue.pm
> > dr-xr-xr-x 2 bin bin 8192 Nov 2 12:54 Encode
> > -r--r--r-- 1 bin bin 4519 Aug 3 05:50 English.pm
> > -r--r--r-- 1 bin bin 5170 Aug 3 05:50 Env.pm
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Exporter
> > -r--r--r-- 1 bin bin 14481 Aug 3 05:50 Exporter.pm
> > dr-xr-xr-x 6 bin bin 8192 Nov 2 12:54 ExtUtils
> > -r--r--r-- 1 bin bin 5208 Aug 3 05:50 Fatal.pm
> > dr-xr-xr-x 3 bin bin 8192 Nov 2 12:54 File
> > -r--r--r-- 1 bin bin 5405 Aug 3 05:50 FileCache.pm
> > -r--r--r-- 1 bin bin 6771 Aug 3 05:50
> > FileHandle.pm
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Filter
> > -r--r--r-- 1 bin bin 5668 Aug 3 05:50 FindBin.pm
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 Font
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:54 Getopt
> > dr-xr-xr-x 4 bin bin 8192 Nov 2 12:54 HTML
> > dr-xr-xr-x 5 bin bin 8192 Nov 2 12:54 HTTP
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:54 I18N
> > dr-xr-xr-x 36 bin bin 8192 Nov 2 12:55
> > IA64.ARCHREV_0-thread-multi
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 IO
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 IPC
> > dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 LWP
> > -r--r--r-- 1 bin bin 21427 Jul 19 23:16 LWP.pm
> > dr-xr-xr-x 3 bin bin 8192 Nov 2 12:55 Locale
> > -r--r--r-- 1 bin bin 1141 Nov 27 2003 MD5.pm
> > dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 Math
> > dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Memoize
> > -r--r--r-- 1 bin bin 35275 Aug 3 05:50 Memoize.pm
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 Module
> > -r--r--r-- 1 bin bin 16122 Aug 3 05:50 NEXT.pm
> > dr-xr-xr-x 5 bin bin 8192 Nov 6 22:04 Net
> > dr-xr-xr-x 6 bin bin 8192 Nov 2 12:55 PPM
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 PerlIO
> > -r--r--r-- 1 bin bin 10928 Aug 3 05:50 PerlIO.pm
> > dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 Pod
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 SOAP
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Search
> > -r--r--r-- 1 bin bin 1070 Aug 3 05:50
> > SelectSaver.pm
> > -r--r--r-- 1 bin bin 13203 Aug 3 05:50
> > SelfLoader.pm
> > -r--r--r-- 1 bin bin 8457 Aug 3 05:50 Shell.pm
> > -r--r--r-- 1 bin bin 28651 Aug 3 05:50 Switch.pm
> > -r--r--r-- 1 bin bin 4794 Aug 3 05:50 Symbol.pm
> > drwxr-xr-x 4 root sys 8192 Nov 6 21:58 TAP
> > dr-xr-xr-x 3 bin bin 8192 Nov 2 12:55 Term
> > dr-xr-xr-x 4 bin bin 8192 Nov 6 21:58 Test
> > -r--r--r-- 1 bin bin 28863 Aug 3 05:50 Test.pm
> > dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Text
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Thread
> > -r--r--r-- 1 bin bin 10152 Aug 3 05:50 Thread.pm
> > dr-xr-xr-x 2 bin bin 8192 Nov 2 12:55 Tie
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 Time
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 UDDI
> > -r--r--r-- 1 bin bin 4052 Aug 3 05:50 UNIVERSAL.pm
> > dr-xr-xr-x 4 bin bin 8192 Nov 2 12:55 URI
> > -r--r--r-- 1 bin bin 30307 Nov 5 2004 URI.pm
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 Unicode
> > dr-xr-xr-x 2 bin bin 96 Nov 2 12:55 User
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 WWW
> > dr-xr-xr-x 8 bin bin 8192 Nov 2 12:55 XML
> > dr-xr-xr-x 3 bin bin 96 Nov 2 12:55 XMLRPC
> > -r--r--r-- 1 bin bin 838 Aug 3 05:50 abbrev.pl
> > -r--r--r-- 1 bin bin 1298 Aug 3 05:50 assert.pl
> > -r--r--r-- 1 bin bin 12844 Aug 3 05:50
> > attributes.pm
> > -r--r--r-- 1 bin bin 4238 Aug 3 05:50 autouse.pm
> > -r--r--r-- 1 bin bin 6524 Aug 3 05:50 base.pm
> > -r--r--r-- 1 bin bin 7368 Aug 3 05:50 bigfloat.pl
> > -r--r--r-- 1 bin bin 8959 Aug 3 05:50 bigint.pl
> > -r--r--r-- 1 bin bin 11937 Aug 3 05:50 bigint.pm
> > -r--r--r-- 1 bin bin 14966 Aug 3 05:50 bignum.pm
> > -r--r--r-- 1 bin bin 4476 Aug 3 05:50 bigrat.pl
> > -r--r--r-- 1 bin bin 10694 Aug 3 05:50 bigrat.pm

>
> ...
>
> read more


I now get this error using perl -MCPAN -e shell

$ perl -MCPAN -e shell
/usr/lib/hpux32/dld.so: Unable to find library 'libperl.so'.

the permissions for this is
ls -l /opt/perl_64/lib/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/CORE/
libperl.so
-r-xr-xr-x 1 bin bin 4324272 Sep 13 23:24 /opt/perl_64/
lib/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/CORE/libperl.so

what should the settings be for libperl.so?

Mike



 
Reply With Quote
 
Ben Morrow
Guest
Posts: n/a
 
      11-08-2007

Quoth mmccaws2 <(E-Mail Removed)>:
> On Nov 7, 12:12 pm, elsiddik <(E-Mail Removed)> wrote:
> > On Nov 7, 7:05 pm, mmccaws2 <(E-Mail Removed)> wrote:
> > > On Nov 7, 8:59 am, Ben Morrow <(E-Mail Removed)> wrote:
> > > >
> > > > $ perl -MCPAN -eshell
> > > > cpan> o conf make_install_make_command "sudo make"
> > > > cpan> o conf mbuild_install_build_command "sudo ./Build"
> > > > cpan> o conf commit
> > > > cpan> quit
> > > > $

[snip]
> > > > No, all the modules already installed should be fine (you might want to
> > > > check that everything under /opt/perl_32/lib is owned by root).
> > >
> > > well chown -R worked.


Good.

> > > now the next part, and sorry for being so dense, But I don't sudo perl
> > > -MCPAN -e shell but run those commands after entering perl -MCPAN -e
> > > shell. Correct?


Correct. Hence the '$' prompt.

> > > also the /opt/perl_32/lib/5.8.8/ has a lot of files with read only
> > > permissions. Would the correct approach be chmod -R 644 /opt/perl_32/
> > > lib/5.8.8/ or is that too broad of a command?


No! Don't touch anything in there: that's core perl stuff. Why would you
think it should be writable?

> > > $ ls -l /opt/perl_32/lib/5.8.8/

> >
> > > gives


[lots of stuff that looks fine]

> > ...
> >
> > read more


If you're going to quote someone, please do so in a comprehensible
manner. Google Groups ne Usenet.

> I now get this error using perl -MCPAN -e shell
>
> $ perl -MCPAN -e shell
> /usr/lib/hpux32/dld.so: Unable to find library 'libperl.so'.


Well... what else have you changed? If you've been messing about with
the permissions of .../lib/5.8.8 then put things back the way they were.

> the permissions for this is
> ls -l /opt/perl_64/lib/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/CORE/
> libperl.so
> -r-xr-xr-x 1 bin bin 4324272 Sep 13 23:24 /opt/perl_64/
> lib/5.8.8/IA64.ARCHREV_0-thread-multi-LP64/CORE/libperl.so


Uh, why are you showing me a listing for a perl that lives under
/opt/perl_64 when before you were asking about a perl that lived under
/opt/perl_32? Are you mixing up 32- and 64-bit perls? That probably
won't work.

> what should the settings be for libperl.so?


Whatever the ActiveState installer left them as. CPAN.pm won't have
touched them.

Ben

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting Wireless Network from Building to Building Jim Wireless Networking 5 10-05-2007 03:54 PM
Firefighters at the site of WTC7 "Move away the building is going to blow up, get back the building is going to blow up." Midex Python 24 05-07-2007 04:23 AM
Wireless building-to-building 101 Tim Jacob Wireless Networking 2 02-17-2006 09:46 AM
embedded perl path $ENV{PATH} problem R. Sherwin Kartick Perl Misc 0 09-22-2004 10:29 PM
Building to Building wireless Patriot Cisco 2 11-04-2003 05:07 PM



Advertisments