我正在使用Linux机器,从Cpan安装JSON Perl模块时出现YAML not installed错误。任何帮助都是非常值得感谢的。
cpan[1]>install JSON
anifying blib/man3/JSON::backportPP::Boolean.3pm
Manifying blib/man3/JSON::backportPP.3pm
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 13
MAKAMAKA/JSON-2.90.tar.gz
/usr/bin/make install -- NOT OK
----
You may have to su to root to install the package
(Or you may want to run something like
o conf make_install_make_command 'sudo make'
to raise your permissions.Warning (usually harmless): 'YAML' not installed, will not store persistent state当我尝试安装YAMl时,我得到了这个错误。
cpan[1]>install YAML
ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at -e line 1
make: *** [pure_site_install] Error 13
INGY/YAML-1.15.tar.gz
/usr/bin/make install -- NOT OK
----
You may have to su to root to install the package
(Or you may want to run something like
o conf make_install_make_command 'sudo make'
to raise your permissions.Warning (usually harmless): 'YAML' not installed, will not store persistent state
Failed during this command:
TYEMQ/Algorithm-Diff-1.1903.tar.gz : install NO
NEILB/Text-Diff-1.43.tar.gz : install NO
INGY/Spiffy-0.46.tar.gz : install NO
INGY/Test-Base-0.88.tar.gz : install NO
INGY/Test-YAML-1.06.tar.gz : install NO
INGY/YAML-1.15.tar.gz 提前感谢
发布于 2016-01-09 06:18:13
'YAML' not installed, will not store persistent state是无害的。
至于没有权限写入/usr/local/share/man/man3,有什么理由相信这是不正确的吗?
如果您具有root访问权限,您是否按照错误消息中的说明进行操作?启动cpan,执行以下命令:
o conf make_install_make_command 'sudo make'
o conf commit如果您没有root访问权限,您是否在询问如何将模块安装到任意目录?我会使用perlbrew在您的主目录中安装一个perl。
发布于 2016-01-09 05:38:46
您是否以普通用户身份运行cpan?没有sudo或root访问权限?这可能就是为什么。
https://stackoverflow.com/questions/34685974
复制相似问题