First time using CPAN trying to get module. Why can't i install?
第一次使用CPAN尝试获取模块。为什么我不能安装?
cpan[9]> install GD::Graph
Running install for module 'GD::Graph'
Running make for R/RU/RUZ/GDGraph-1.48.tar.gz
Prepending blib/arch and blib/lib of 18 build dirs to PERL5LIB; for 'get'
Has already been unwrapped into directory /root/.cpan/build/GDGraph-1.48-LBF9mR
Prepending blib/arch and blib/lib of 18 build dirs to PERL5LIB; for 'make'
'/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512, won't make
Prepending blib/arch and blib/lib of 18 build dirs to PERL5LIB; for 'test'
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
After manual install i got this:
手动安装后,我得到了这个:
...
Installing /usr/local/share/man/man3/Graph::Matrix.3pm
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/lib64/perl5/auto/Graph'
mkdir /usr/local/lib64/perl5: File exists at /usr/share/perl5/ExtUtils/Install.pm line 483
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 17
2 个解决方案
#1
3
You're trying to create dir Graph
in /usr/local/lib64/perl5/auto
, but you don't have permission to do so.
您试图在/usr/local/lib64/perl5/auto中创建dir图,但是您没有权限这样做。
#2
0
Another avenue to try is the Perl Package Manager.
另一个尝试的途径是Perl包管理器。
-
In windows, you search on Perl and it will list appropriate "programs"...
在windows中,您搜索Perl,它将列出适当的“程序”……
-
Select the Perl Package Manager.
选择Perl包管理器。
-
Then inside the package manager, I search GD::Graph and it gives four choices.
然后在包管理器中,我搜索GD::Graph,它给出四个选项。
-
I installed GDGraph-XY.
我GDGraph-XY安装。
-
Then I did a "use GD::Graph;" inside a .pl and it ran fine.
然后我做了一个“使用GD::Graph;”在一个.pl中,它运行良好。
#1
3
You're trying to create dir Graph
in /usr/local/lib64/perl5/auto
, but you don't have permission to do so.
您试图在/usr/local/lib64/perl5/auto中创建dir图,但是您没有权限这样做。
#2
0
Another avenue to try is the Perl Package Manager.
另一个尝试的途径是Perl包管理器。
-
In windows, you search on Perl and it will list appropriate "programs"...
在windows中,您搜索Perl,它将列出适当的“程序”……
-
Select the Perl Package Manager.
选择Perl包管理器。
-
Then inside the package manager, I search GD::Graph and it gives four choices.
然后在包管理器中,我搜索GD::Graph,它给出四个选项。
-
I installed GDGraph-XY.
我GDGraph-XY安装。
-
Then I did a "use GD::Graph;" inside a .pl and it ran fine.
然后我做了一个“使用GD::Graph;”在一个.pl中,它运行良好。