Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Mac、cpan上的Perl将不会安装_Macos_Perl_Permissions_Cpan - Fatal编程技术网

Macos Mac、cpan上的Perl将不会安装

Macos Mac、cpan上的Perl将不会安装,macos,perl,permissions,cpan,Macos,Perl,Permissions,Cpan,我正试图通过cpan在我的Mac上安装perl模块,但有些东西似乎不起作用( 我已经从apple dev下载了命令行工具 我做错了什么!?我应该放弃在我的背上乱搞perl的想法,转而启动我的旧电脑,这对吗-/ 以下是我的工作: Reading '/Users/Eagle/.cpan/Metadata' Database was generated on Fri, 11 Oct 2019 13:17:03 GMT Running install for module 'DBI' Running

我正试图通过cpan在我的Mac上安装perl模块,但有些东西似乎不起作用(

我已经从apple dev下载了命令行工具

我做错了什么!?我应该放弃在我的背上乱搞perl的想法,转而启动我的旧电脑,这对吗-/

以下是我的工作:

Reading '/Users/Eagle/.cpan/Metadata'
  Database was generated on Fri, 11 Oct 2019 13:17:03 GMT
Running install for module 'DBI'
Running make for T/TI/TIMB/DBI-1.642.tar.gz
Checksum for /Users/Eagle/.cpan/sources/authors/id/T/TI/TIMB/DBI-1.642.tar.gz ok
Scanning cache /Users/Eagle/.cpan/build for sizes
.........I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'ReadLine'
Can't cd to (/Users/Eagle/.cpan/build/Term-ReadLine-Perl-1.0303-U5oE7x/) ReadLine: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
.....I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 't'
Can't cd to (/Users/Eagle/.cpan/build/Test-Warnings-0.027-X5Kf4N/) t: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'xt'
Can't cd to (/Users/Eagle/.cpan/build/Test-Warnings-0.027-X5Kf4N/) xt: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'examples'
Can't cd to (/Users/Eagle/.cpan/build/Test-Warnings-0.027-X5Kf4N/) examples: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'lib'
Can't cd to (/Users/Eagle/.cpan/build/Test-Warnings-0.027-X5Kf4N/) lib: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
....I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'inc'
Can't cd to (/Users/Eagle/.cpan/build/Mac-SystemDirectory-0.10-M0iYQX/) inc: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 't'
Can't cd to (/Users/Eagle/.cpan/build/Mac-SystemDirectory-0.10-M0iYQX/) t: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'xt'
Can't cd to (/Users/Eagle/.cpan/build/Mac-SystemDirectory-0.10-M0iYQX/) xt: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'lib'
Can't cd to (/Users/Eagle/.cpan/build/Mac-SystemDirectory-0.10-M0iYQX/) lib: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
...............I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'misc'
Can't cd to (/Users/Eagle/.cpan/build/File-Temp-0.2309-xlH9tz/) misc: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 't'
Can't cd to (/Users/Eagle/.cpan/build/File-Temp-0.2309-xlH9tz/) t: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'xt'
Can't cd to (/Users/Eagle/.cpan/build/File-Temp-0.2309-xlH9tz/) xt: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
I have neither the -x permission nor the permission to change the permission; can only partially estimate disk usage of 'lib'
Can't cd to (/Users/Eagle/.cpan/build/File-Temp-0.2309-xlH9tz/) lib: Permission denied
 at /System/Library/Perl/5.18/CPAN/CacheMgr.pm line 137.
...........................................DONE

  CPAN.pm: Building T/TI/TIMB/DBI-1.642.tar.gz


*** Your LANG environment variable is set to 'da_DK.UTF-8'
*** This may cause problems for some perl installations.
*** If you get test failures, please try again with LANG unset.
*** If that then works, please email dbi-dev@perl.org with details
*** including the output of 'perl -V'

Your perl was compiled with gcc (version 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)), okay.
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t 
t/zvg_02dbidrv.t 
t/zvg_03handle.t 
t/zvg_04mods.t 
t/zvg_05concathash.t 
t/zvg_06attrs.t 
t/zvg_07kids.t 
t/zvg_08keeperr.t 
t/zvg_09trace.t 
t/zvg_10examp.t 
t/zvg_11fetch.t 
t/zvg_12quote.t 
t/zvg_13taint.t 
t/zvg_14utf8.t 
t/zvg_15array.t 
t/zvg_16destroy.t 
t/zvg_19fhtrace.t 
t/zvg_20meta.t 
t/zvg_30subclass.t 
t/zvg_31methcache.t 
t/zvg_35thrclone.t (use threads)
t/zvg_40profile.t 
t/zvg_41prof_dump.t 
t/zvg_42prof_data.t 
t/zvg_43prof_env.t 
t/zvg_48dbi_dbd_sqlengine.t 
t/zvg_49dbd_file.t 
t/zvg_50dbm_simple.t 
t/zvg_51dbm_file.t 
t/zvg_52dbm_complex.t 
t/zvg_53sqlengine_adv.t 
t/zvg_54_dbd_mem.t 
t/zvg_60preparse.t 
t/zvg_65transact.t 
t/zvg_70callbacks.t 
t/zvg_72childhandles.t 
t/zvg_73cachedkids.t 
t/zvg_80proxy.t 
t/zvg_85gofer.t 
t/zvg_86gofer_fail.t 
t/zvg_87gofer_cache.t 
t/zvg_90sql_type_cast.t 
t/zvg_91_store_warning.t 
Creating test wrappers for DBI::SQL::Nano:
t/zvn_48dbi_dbd_sqlengine.t 
t/zvn_49dbd_file.t 
t/zvn_50dbm_simple.t 
t/zvn_51dbm_file.t 
t/zvn_52dbm_complex.t 
t/zvn_85gofer.t 
Creating test wrappers for DBI::PurePerl:
t/zvp_01basics.t 
t/zvp_02dbidrv.t 
t/zvp_03handle.t 
t/zvp_04mods.t 
t/zvp_05concathash.t 
t/zvp_06attrs.t 
t/zvp_07kids.t 
t/zvp_08keeperr.t 
t/zvp_09trace.t 
t/zvp_10examp.t 
t/zvp_11fetch.t 
t/zvp_12quote.t 
t/zvp_13taint.t 
t/zvp_14utf8.t 
t/zvp_15array.t 
t/zvp_16destroy.t 
t/zvp_19fhtrace.t 
t/zvp_20meta.t 
t/zvp_30subclass.t 
t/zvp_31methcache.t 
t/zvp_35thrclone.t (use threads)
t/zvp_40profile.t 
t/zvp_41prof_dump.t 
t/zvp_42prof_data.t 
t/zvp_43prof_env.t 
t/zvp_48dbi_dbd_sqlengine.t 
t/zvp_49dbd_file.t 
t/zvp_50dbm_simple.t 
t/zvp_51dbm_file.t 
t/zvp_52dbm_complex.t 
t/zvp_53sqlengine_adv.t 
t/zvp_54_dbd_mem.t 
t/zvp_60preparse.t 
t/zvp_65transact.t 
t/zvp_70callbacks.t 
t/zvp_72childhandles.t 
t/zvp_73cachedkids.t 
t/zvp_80proxy.t 
t/zvp_85gofer.t 
t/zvp_86gofer_fail.t 
t/zvp_87gofer_cache.t 
t/zvp_90sql_type_cast.t 
t/zvp_91_store_warning.t 
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano:
t/zvxgn_48dbi_dbd_sqlengine.t 
t/zvxgn_49dbd_file.t 
t/zvxgn_50dbm_simple.t 
t/zvxgn_51dbm_file.t 
t/zvxgn_52dbm_complex.t 
t/zvxgn_85gofer.t 
Creating test wrappers for DBD::Gofer + DBI::PurePerl:
t/zvxgp_01basics.t 
t/zvxgp_02dbidrv.t 
t/zvxgp_03handle.t 
t/zvxgp_04mods.t 
t/zvxgp_05concathash.t 
t/zvxgp_06attrs.t 
t/zvxgp_07kids.t 
t/zvxgp_08keeperr.t 
t/zvxgp_09trace.t 
t/zvxgp_10examp.t 
t/zvxgp_11fetch.t 
t/zvxgp_12quote.t 
t/zvxgp_13taint.t 
t/zvxgp_14utf8.t 
t/zvxgp_15array.t 
t/zvxgp_16destroy.t 
t/zvxgp_19fhtrace.t 
t/zvxgp_20meta.t 
t/zvxgp_30subclass.t 
t/zvxgp_31methcache.t 
t/zvxgp_35thrclone.t (use threads)
t/zvxgp_40profile.t 
t/zvxgp_41prof_dump.t 
t/zvxgp_42prof_data.t 
t/zvxgp_43prof_env.t 
t/zvxgp_48dbi_dbd_sqlengine.t 
t/zvxgp_49dbd_file.t 
t/zvxgp_50dbm_simple.t 
t/zvxgp_51dbm_file.t 
t/zvxgp_52dbm_complex.t 
t/zvxgp_53sqlengine_adv.t 
t/zvxgp_54_dbd_mem.t 
t/zvxgp_60preparse.t 
t/zvxgp_65transact.t 
t/zvxgp_70callbacks.t 
t/zvxgp_72childhandles.t 
t/zvxgp_73cachedkids.t 
t/zvxgp_80proxy.t 
t/zvxgp_85gofer.t 
t/zvxgp_86gofer_fail.t 
t/zvxgp_87gofer_cache.t 
t/zvxgp_90sql_type_cast.t 
t/zvxgp_91_store_warning.t 
Creating test wrappers for DBI::SQL::Nano + DBI::PurePerl:
t/zvxnp_48dbi_dbd_sqlengine.t 
t/zvxnp_49dbd_file.t 
t/zvxnp_50dbm_simple.t 
t/zvxnp_51dbm_file.t 
t/zvxnp_52dbm_complex.t 
t/zvxnp_85gofer.t 
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano + DBI::PurePerl:
t/zvxgnp_48dbi_dbd_sqlengine.t 
t/zvxgnp_49dbd_file.t 
t/zvxgnp_50dbm_simple.t 
t/zvxgnp_51dbm_file.t 
t/zvxgnp_52dbm_complex.t 
t/zvxgnp_85gofer.t 
Checking if your kit is complete...
Looks good

    I see you're using perl 5.018004 on darwin-thread-multi-2level, okay.
    Remember to actually *read* the README file!
    Use  'make' to build the software (dmake or nmake on Windows).
    Then 'make test' to execute self tests.
    Then 'make install' to install the DBI and then delete this working
    directory before unpacking and building any DBD::* drivers.

Writing Makefile for DBI
Writing MYMETA.yml and MYMETA.json
make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/config.h', needed by `Makefile'.  Stop.
  TIMB/DBI-1.642.tar.gz
  /usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 TIMB/DBI-1.642.tar.gz                        : make NO

cpan[2]> 

看起来在/Users/Eagle/.cpan下有一堆Eagle用户没有权限的旧文件/dircetories。请尝试删除整个/Users/Eagle/.cpan/目录,然后重新启动(您可能需要以root用户身份执行此操作)。看起来删除
/Users/Eagle/.cpan/build
就足够了。看到目录在安装模块时只是用作临时工作场所,删除它并没有什么害处。可能发生的情况是有人在某个时候使用了
sudo cpan Some::Module
。谢谢,这很有效,但现在我发现了这个错误r改为:……make:**没有规则使target
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/config.h成为
Makefile.所需的。Stop.TIMB/DBI-1.642.tar.gz/usr/bin/make--不正常'YAML'未安装,不会存储persistent state Running make test无法测试,如果make Running make install make已返回错误状态,则安装似乎不可能在此命令期间失败:TIMB/DBI-1.642.tar.gz:make NO cpan[2]>