首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >对'/usr/local/share/man/man3‘没有写权限

对'/usr/local/share/man/man3‘没有写权限
EN

Stack Overflow用户
提问于 2016-01-09 05:00:45
回答 2查看 4.8K关注 0票数 1

我正在使用Linux机器,从Cpan安装JSON Perl模块时出现YAML not installed错误。任何帮助都是非常值得感谢的。

代码语言:javascript
复制
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时,我得到了这个错误。

代码语言:javascript
复制
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     

提前感谢

EN

回答 2

Stack Overflow用户

发布于 2016-01-09 06:18:13

'YAML' not installed, will not store persistent state是无害的。

至于没有权限写入/usr/local/share/man/man3,有什么理由相信这是不正确的吗?

如果您具有root访问权限,您是否按照错误消息中的说明进行操作?启动cpan,执行以下命令:

代码语言:javascript
复制
o conf make_install_make_command 'sudo make'
o conf commit

如果您没有root访问权限,您是否在询问如何将模块安装到任意目录?我会使用perlbrew在您的主目录中安装一个perl

票数 6
EN

Stack Overflow用户

发布于 2016-01-09 05:38:46

您是否以普通用户身份运行cpan?没有sudo或root访问权限?这可能就是为什么。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34685974

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档