The issue of the lampp/share/man

Alles, was Perl betrifft, kann hier besprochen werden.

The issue of the lampp/share/man

Postby baijingjiao » 09. February 2010 08:29

hello everybody!
I am a chinese.

I have met a issue when I tried to install perl modules, need your help please.

I try to install perl modules using:
/opt/lampp/bin/perl -MCPAN -e shell
CPAN> install YAML::Tiny

whenever I try to install any perl modules this way, I always got errors like below:
All tests successful.
Files=19, Tests=3349, 4 wallclock secs ( 0.18 usr 0.40 sys + 0.99 cusr 1.78
csys = 3.35 CPU)
Result: PASS
ADAMK/YAML-Tiny-1.41.tar.gz
/usr/bin/make test -- OK
Running make install
Prepending /root/.cpan/build/YAML-Tiny-1.41-8VflE3/blib/arch /root/.cpan/build/YAML-Tiny-1.41-8VflE3/blib/lib /root/.cpan/build/ExtUtils-ParseXS-2.2202-hyXStJ/blib/arch /root/.cpan/build/ExtUtils-ParseXS-2.2202-hyXStJ/blib/lib to PERL5LIB for 'install'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/opt/lampp/share/man/man3'
mkdir /opt/lampp/share/man: File exists at /opt/lampp/lib/perl5/5.10.1/ExtUtils/Install.pm line 483


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 17
ADAMK/YAML-Tiny-1.41.tar.gz
/usr/bin/make install -- NOT OK
Failed during this command:
ADAMK/YAML-Tiny-1.41.tar.gz : install N

related image is here: http://pic.yupoo.com/hoohoobjj/303138d4 ... 2fqqzz.jpg
as you can see:
in lampp/share/ directory, there is a 'man', and it is a link which link to ../man, but in the lampp/ directory, there is no such folder named "man";
what this link for?

how can I fix the perl modules installation error?

Thank you in advance.
baijingjiao
 
Posts: 6
Joined: 09. February 2010 08:17

Re: The issue of the lampp/share/man

Postby Nobbie » 09. February 2010 11:48

Did you run that with root priviliges? I.e. use "sudo /opt/lampp/bin/perl ...."
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: The issue of the lampp/share/man

Postby spsenthilkumarrm » 10. February 2010 12:30

The reason is you don't have proper privilege for the folder "man".
To install the perl CPAN modules successfully follow the steps mentioned below.

Step 1 : Give permission for the folder /opt/lampp/ using the command
sudo chmod -R 777 /opt/lampp/

Step 2 : Remove the file named "man" present inside the location /opt/lampp/share. Using the cmd.
sudo rm -rf /opt/lampp/share/man.

Step 3 : Now execute the cpan
sudo /opt/lampp/bin/cpan

Step 4 : cpan>install YAML::Tiny
Then u will get a msg as installation make install OK.
After doing the above steps once you can install any packages successfully.

Regards
Senthil :lol:
spsenthilkumarrm
 
Posts: 1
Joined: 10. February 2010 11:59

Re: The issue of the lampp/share/man

Postby baijingjiao » 14. February 2010 05:14

spsenthilkumarrm wrote:The reason is you don't have proper privilege for the folder "man".
To install the perl CPAN modules successfully follow the steps mentioned below.

Step 1 : Give permission for the folder /opt/lampp/ using the command
sudo chmod -R 777 /opt/lampp/

Step 2 : Remove the file named "man" present inside the location /opt/lampp/share. Using the cmd.
sudo rm -rf /opt/lampp/share/man.

Step 3 : Now execute the cpan
sudo /opt/lampp/bin/cpan

Step 4 : cpan>install YAML::Tiny
Then u will get a msg as installation make install OK.
After doing the above steps once you can install any packages successfully.

Regards
Senthil :lol:

:D :D :D after deleting the /opt/lampp/share/man, now I can install modules for perl sucessfully. :D :D :D
Thank you very much!
baijingjiao
 
Posts: 6
Joined: 09. February 2010 08:17

Re: The issue of the lampp/share/man

Postby baijingjiao » 14. February 2010 05:14

Nobbie wrote:Did you run that with root priviliges? I.e. use "sudo /opt/lampp/bin/perl ...."

yes, I used the "root" to install
baijingjiao
 
Posts: 6
Joined: 09. February 2010 08:17

Re: The issue of the lampp/share/man

Postby baijingjiao » 14. February 2010 05:17

But still have another question about the lampp, for the default installation of lampp, in /opt/lampp/share/ directory, there is a 'man', and it is a link which link to ../man, but in the lampp/ directory, there is no such folder named "man";

what this link for?
now I already deleted the 'man' link, will this cause issues in the future?
baijingjiao
 
Posts: 6
Joined: 09. February 2010 08:17


Return to Perl

Who is online

Users browsing this forum: No registered users and 4 guests