-1

这是我第一次在 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'

任何人都知道这可能的原因以及我应该如何使它工作?

感谢您的时间

4

1 回答 1

0

似乎是由 bash 引起的。

在您的 .profile 或 .bashrc 添加以下内容:

export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

我希望这会顺利。

于 2012-09-22T04:40:31.663 回答