【发布时间】:2017-01-26 16:05:23
【问题描述】:
我正在尝试使用最新版本的 Perlbrew 在运行 macOS-Sierra 的计算机上安装具有多线程的最新稳定版 Perl (5.24.1)。
Perlbrew 似乎安装正确,但是当我运行命令时:
Perlbrew install perl-5.24.1 --thread or
perlbrew install stable --thread
安装继续,但随后失败并显示以下消息
Installation process failed. To spot any issues, check
/Users/alan/perl5/perlbrew/build.perl-5.24.1.log
If some perl tests failed and you still want to install this distribution anyway,
do:
(cd /Users/alan/perl5/perlbrew/build/perl-5.24.1; make install)
You might also want to try upgrading patchperl before trying again:
按照上面的建议查看日志文件,我在文件末尾发现以下错误消息:
1 error generated.
make[1]: *** [HiRes.o] Error 1
cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack- protector-strong -I/usr/local/include -Wall -Werror=declaration-after-statement -Wextra -Wc++-compat -Wwrite-strings -Wthread-safety -O3 -DVERSION=\"1.9733\" -DXS_VERSION=\"1.9733\" "-I../.." -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCK_GETTIME -DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK_NANOSLEEP -DTIME_HIRES_CLOCK -DTIME_HIRES_STAT=1 -DATLEASTFIVEOHOHFIVE HiRes.c
HiRes.xs:945:15: error: use of undeclared identifier 'darwin_time_mutex'
MUTEX_INIT(&darwin_time_mutex);
^
1 error generated.
make[1]: *** [HiRes.o] Error 1
Unsuccessful make(dist/Time-HiRes): code=512 at make_ext.pl line 569.
make: *** [lib/auto/Time/HiRes/HiRes.bundle] Error 25
##### Brew Failed #####"
在日志文件的其他位置,以下消息也多次出现(虽然我不知道这与失败的安装过程有多大关系):
ld: warning: object file (xxxxxxxx) was built for newer OSX version (10.12) than being linked (10.4)
我在网上搜索了类似的问题,但没有找到任何相关的东西。因此,我想知道这是否是 Perlbrew 和 Sierra 的一般问题,或者它是否特定于我的设置。
显然我是 Perl 编程和编程的初学者,所以请尽可能简单地回答任何问题
感谢您的帮助
【问题讨论】:
标签: perl macos-sierra perlbrew