这是我第一次在Mac OS上使用gentoo前缀。
gentoo前缀的安装需要一段时间,但一切顺利。我使用此脚本在Mac上安装gentoo前缀:http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/scripts/bootstrap-prefix.sh?format=txt
但是,当我尝试安装zsh时,zsh的编译仍然失败。
我使用的命令只是“emerge zsh”,但我每次都收到以下错误信息:
>>> Source configured.
>>> Compiling source in ~/Gentoo/var/tmp/portage/app-shells/zsh-5.0.0/work/zsh-5.0.0 ...
make
make[1]: Entering directory `~/Gentoo/var/tmp/portage/app-shells/zsh-5.0.0/work/zsh-5.0.0/Src'
cd .. && ~/Gentoo/bin/bash $top_srcdir/Src/mkmakemod.sh Src Makemod
creating Src/Makemod.in
~/Gentoo/bin/bash: line 8: 42534 Illegal instruction: 4 ~/Gentoo/bin/bash $top_srcdir/Src/mkmakemod.sh Src Makemod
make[1]: *** [Makemod] Error 132
make[1]: Leaving directory `~/Gentoo/var/tmp/portage/app-shells/zsh-5.0.0/work/zsh-5.0.0/Src'
make: *** [all] Error 1
* ERROR: app-shells/zsh-5.0.0 failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=app-shells/zsh-5.0.0'`,
* the complete build log and the output of `emerge -pqv '=app-shells/zsh-5.0.0'`.
* The complete build log is located at '~/Gentoo/var/tmp/portage/app-shells/zsh-5.0.0/temp/build.log'.
* The ebuild environment file is located at '~/Gentoo/var/tmp/portage/app-shells/zsh-5.0.0/temp/environment'.
* Working directory: '~/Gentoo/var/tmp/portage/app-shells/zsh-5.0.0/work/zsh-5.0.0'
* S: '~/Gentoo/var/tmp/portage/app-shells/zsh-5.0.0/work/zsh-5.0.0'
任何人都知道可能的原因以及如何使其发挥作用?
感谢您的时间
答案 0 :(得分:0)
似乎是由bash造成的。
在.profile或.bashrc中添加以下内容:
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
我希望它顺利。