无法构建 gnutls(10.15 上的 MacPorts)
Failed to build gnutls (MacPorts on 10.15)
所以我需要安装一些端口,gnutls
显示为一个依赖项。但是,无论我做什么,如果我不理解为什么会这样,它总是无法构建。我是 MacPorts 的偶尔用户(我主要按照说明进行操作,所以我可以构建其他东西)而且我当然不知道所有的边缘情况。
这是日志的结尾,它似乎需要一些丢失的文件。
:info:build In file included from gost/gosthash94.c:42:
:info:build gost/nettle-write.h:40:10: fatal error: 'nettle/nettle-stdint.h' file not found
:info:build #include <nettle/nettle-stdint.h>
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build In file included from gost/gost28147.c:40:
:info:build gost/nettle-write.h:40:10: fatal error: 'nettle/nettle-stdint.h' file not found
:info:build #include <nettle/nettle-stdint.h>
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~
:info:build make[4]: *** [gost/gosthash94.lo] Error 1
:info:build make[4]: *** Waiting for unfinished jobs....
:info:build In file included from gost/streebog.c:46:
:info:build gost/nettle-write.h:40:10: fatal error: 'nettle/nettle-stdint.h' file not found
:info:build #include <nettle/nettle-stdint.h>
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build make[4]: *** [gost/streebog.lo] Error 1
:info:build 1 error generated.
:info:build make[4]: *** [gost/gost28147.lo] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6/lib/nettle'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6/lib'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6/lib'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6'
:info:build Command failed: cd "/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6" && /usr/bin/make -j8 -w all
:info:build Exit code: 2
:error:build Failed to build gnutls: command execution failed
:debug:build Error code: CHILDSTATUS 1742 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_Users_seb_ports_devel_gnutls/gnutls/main.log for details.
我也不确定为什么当我 port search gnutls
我最终得到 3 个端口但特别是这 2 个 :
gnutls @3.6.6 (devel, security)
GNU Transport Layer Security Library
gnutls @3.6.11.1 (devel, security)
GNU Transport Layer Security Library
似乎 port install gnutls
正在尝试安装 3.6.6,但为什么 3.6.11 似乎更新了?尝试
$ sudo port install gnutls @3.6.11.1
Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.
Warning: cltversion: For a possible fix, please see: https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt
---> Computing dependencies for gnutls
---> Building gnutls
Error: Failed to build gnutls: command execution failed
Error: See /opt/local/var/macports/logs/_Users_seb_ports_devel_gnutls/gnutls/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gnutls failed
以同样的方式结束。
selfupdate
和 upgrade outdated
似乎正常工作:
$ sudo port selfupdate
Password:
---> Updating MacPorts base sources using rsync
MacPorts base version 2.6.2 installed,
MacPorts base version 2.6.2 downloaded.
---> Updating the ports tree
---> MacPorts base is already the latest version
The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
$ sudo port upgrade outdated
Nothing to upgrade.
---> Scanning binaries for linking errors
---> No broken files found.
---> No broken ports found.
抱歉,如果这对某些人来说是微不足道的,但我希望得到一些指导以解决这个问题。
提前感谢您的支持,如果需要,我很乐意提供更多信息。
所以我发现可以手动更新一个落后于当前可用版本的端口。
我按照说明进行操作 here,现在一切正常。
所以我需要安装一些端口,gnutls
显示为一个依赖项。但是,无论我做什么,如果我不理解为什么会这样,它总是无法构建。我是 MacPorts 的偶尔用户(我主要按照说明进行操作,所以我可以构建其他东西)而且我当然不知道所有的边缘情况。
这是日志的结尾,它似乎需要一些丢失的文件。
:info:build In file included from gost/gosthash94.c:42:
:info:build gost/nettle-write.h:40:10: fatal error: 'nettle/nettle-stdint.h' file not found
:info:build #include <nettle/nettle-stdint.h>
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build In file included from gost/gost28147.c:40:
:info:build gost/nettle-write.h:40:10: fatal error: 'nettle/nettle-stdint.h' file not found
:info:build #include <nettle/nettle-stdint.h>
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~
:info:build make[4]: *** [gost/gosthash94.lo] Error 1
:info:build make[4]: *** Waiting for unfinished jobs....
:info:build In file included from gost/streebog.c:46:
:info:build gost/nettle-write.h:40:10: fatal error: 'nettle/nettle-stdint.h' file not found
:info:build #include <nettle/nettle-stdint.h>
:info:build ^~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build make[4]: *** [gost/streebog.lo] Error 1
:info:build 1 error generated.
:info:build make[4]: *** [gost/gost28147.lo] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6/lib/nettle'
:info:build make[3]: *** [all-recursive] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6/lib'
:info:build make[2]: *** [all] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6/lib'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6'
:info:build Command failed: cd "/opt/local/var/macports/build/_Users_seb_ports_devel_gnutls/gnutls/work/gnutls-3.6.6" && /usr/bin/make -j8 -w all
:info:build Exit code: 2
:error:build Failed to build gnutls: command execution failed
:debug:build Error code: CHILDSTATUS 1742 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_Users_seb_ports_devel_gnutls/gnutls/main.log for details.
我也不确定为什么当我 port search gnutls
我最终得到 3 个端口但特别是这 2 个 :
gnutls @3.6.6 (devel, security)
GNU Transport Layer Security Library
gnutls @3.6.11.1 (devel, security)
GNU Transport Layer Security Library
似乎 port install gnutls
正在尝试安装 3.6.6,但为什么 3.6.11 似乎更新了?尝试
$ sudo port install gnutls @3.6.11.1
Warning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.
Warning: cltversion: For a possible fix, please see: https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt
---> Computing dependencies for gnutls
---> Building gnutls
Error: Failed to build gnutls: command execution failed
Error: See /opt/local/var/macports/logs/_Users_seb_ports_devel_gnutls/gnutls/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gnutls failed
以同样的方式结束。
selfupdate
和 upgrade outdated
似乎正常工作:
$ sudo port selfupdate
Password:
---> Updating MacPorts base sources using rsync
MacPorts base version 2.6.2 installed,
MacPorts base version 2.6.2 downloaded.
---> Updating the ports tree
---> MacPorts base is already the latest version
The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
$ sudo port upgrade outdated
Nothing to upgrade.
---> Scanning binaries for linking errors
---> No broken files found.
---> No broken ports found.
抱歉,如果这对某些人来说是微不足道的,但我希望得到一些指导以解决这个问题。 提前感谢您的支持,如果需要,我很乐意提供更多信息。
所以我发现可以手动更新一个落后于当前可用版本的端口。 我按照说明进行操作 here,现在一切正常。