macosx (10.9) 上的 Bootstrap pkgsrc 错误

macosx (10.9) 上的 Bootstrap pkgsrc 错误

我正在尝试在 OS X 10.9 上引导 pkgsrc-2014Q2。

脚本抱怨:

cd /Users/tiramo/Downloads/pkgsrc-2014Q2/bootstrap/work/wrk/pkgtools/bootstrap-mk-files/work/bootstrap-mk-files-20140516; for file in bsd.* sys.mk; do           test ! -f mods/Darwin.$file ||          /bin/cp -f mods/Darwin.$file /Users/tiramo/Downloads/pkgsrc-2014Q2/bootstrap/work/wrk/pkgtools/bootstrap-mk-files/work/bootstrap-mk-files-20140516/$file;       done
cd /Users/tiramo/Downloads/pkgsrc-2014Q2/bootstrap/work/wrk/pkgtools/bootstrap-mk-files/work/bootstrap-mk-files-20140516;                            if test -f mods/Darwin.bsd.own.mk.in; then          own_mk=mods/Darwin.bsd.own.mk.in;           else                                own_mk=mods/bsd.own.mk.in;              fi;                                 /Users/tiramo/Downloads/pkgsrc-2014Q2/bootstrap/work/bin/sed   -e 's|@ROOT_GROUP@|'wheel'|g'            -e 's|@ROOT_USER@|'root'|g'             -e 's|@SYSCONFDIR@|'/usr/pkg/etc'|g'        $own_mk > bsd.own.mk
===> Installing for bootstrap-mk-files-20140516
ERROR: bootstrap-mk-files-20140516 is already installed - perhaps an older version?
ERROR: If so, you may use either of:
ERROR:     - "pkg_delete bootstrap-mk-files-20140516" and "/Users/tiramo/Downloads/pkgsrc-2014Q2/bootstrap/work/bin/bmake reinstall"
ERROR:       to upgrade properly
ERROR:     - "/Users/tiramo/Downloads/pkgsrc-2014Q2/bootstrap/work/bin/bmake update" to rebuild the package and all
ERROR:       of its dependencies
ERROR:     - "/Users/tiramo/Downloads/pkgsrc-2014Q2/bootstrap/work/bin/bmake replace" to replace only the package without
ERROR:       re-linking dependencies, risking various problems.
*** Error code 1

但是我没有任何旧版本!我删除了 下的所有内容/usr/pkg。脚本在哪里查找现有安装?我该如何绕过它?

答案1

我设法通过删除相应包的文件列表来解决该问题:

rm -rf /var/db/pkg/bootstrap-mk-files*

最终在这里找到了解决方案

相关内容