Macports 端口安装错误:/Volumes/Macintosh:没有此文件或目录

Macports 端口安装错误:/Volumes/Macintosh:没有此文件或目录

我一直试图在我的 OSX 外部开发驱动器上安装 keybase。无法安装 gnupg。我运行了

sudo port clean gnupg 然后 sudo port -v install gnupg 获取详细信息

cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_gnupg/gnupg/main.log

这是我的驱动器路径的问题吗?我的其他端口似乎没问题,而且我定期进行自我更新。提前致谢。

:info:configure config.status: executing po-directories commands
    :info:configure config.status: creating po/POTFILES
    :info:configure config.status: creating po/Makefile
    :info:configure 
    :info:configure                 Version info:   gnupg 1.4.20
    :info:configure                 Configured for: Darwin (x86_64-apple-darwin15.5.0)
    :info:configure 
    :debug:configure Privilege de-escalation not attempted as not running as root.
    :debug:build build phase started at Thu Jun  9 13:11:22 EDT 2016
    :notice:build --->  Building gnupg
    :debug:build Executing org.macports.build (gnupg)
    :debug:build Environment: 
    CC_PRINT_OPTIONS='YES'
    CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_gnupg/gnupg/work/.CC_PRINT_OPTIONS'
    CPATH='/opt/local/include'
    LIBRARY_PATH='/opt/local/lib'
    MACOSX_DEPLOYMENT_TARGET='10.11'
    :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_gnupg/gnupg/work/gnupg-1.4.20" && /usr/bin/make -j4 -w all'
    :debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_gnupg/gnupg/work/gnupg-1.4.20" && /usr/bin/make -j4 -w all 
    :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_gnupg/gnupg/work/gnupg-1.4.20'
    :info:build /Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
    :info:build make: /Volumes/Macintosh: No such file or directory
    :info:build make: *** [all] Error 1
    :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_gnupg/gnupg/work/gnupg-1.4.20'
    :info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_gnupg/gnupg/work/gnupg-1.4.20" && /usr/bin/make -j4 -w all 
    :info:build Exit code: 2
    :error:build org.macports.build for port gnupg returned: command execution failed
    :debug:build Error code: CHILDSTATUS 12774 2
    :debug:build Backtrace: command execution failed
        while executing
    "system -nice 0 $fullcmdstring"
        ("eval" body line 1)
        invoked from within
    "eval system $notty $nice \$fullcmdstring"
        invoked from within
    "command_exec build"
        (procedure "portbuild::build_main" line 8)
        invoked from within
    "portbuild::build_main org.macports.build"
        ("eval" body line 1)
        invoked from within
    "eval $procedure $targetname"
    :info:build Warning: targets not executed for gnupg: org.macports.activate org.macports.build org.macports.destroot org.macports.install
    :notice:build Please see the log file for port gnupg for details:
        /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_gnupg/gnupg/main.log

答案1

问题是由于编写不当的 portfile、makefile 或构建脚本未能引用路径,因此启动卷名“Macintosh HD”中的空间被错误处理。

您可以通过从卷名中删除空格来解决这个有缺陷的构建文件。

相关内容