[英]zsh compilation problem in OSX
I try install zsh 我尝试安装zsh
git clone git://zsh.git.sf.net/gitroot/zsh/zsh
cd zsh
Util/preconfig
./configure --prefix=dir
make
but, I get this 但是,我明白了
gcc -Wl,-x -bundle -flat_namespace -undefined suppress -o zleparameter.so zleparameter..o -liconv -ldl -ltermcap -lm -lc
: yodl -o zsh.texi -I. -w ztexi.yo version.yo zsh.yo; \
test -f zsh.texi
make[1]: *** [zsh.texi] Error 1
Zsh source tarballs are distributed with pre-generated documentation, including the zsh.texi
file. Zsh源代码压缩包与预生成的文档一起分发,包括
zsh.texi
文件。 You checked out zsh from git, so you only get the basic source files. 你从git中检出了zsh,所以你只得到了基本的源文件。 The documentation is generated with Yodl , and the makefile is set up to build the documentation by default.
使用Yodl生成文档,并且默认情况下将makefile设置为构建文档。 Install Yodl (on OSX you might need to build it from source).
安装Yodl(在OSX上你可能需要从源代码构建它)。 If you're in a hurry and don't want to build the documentation, tweak the toplevel makefile to skip building the documentation: remove
Doc
from SUBDIRS
and from the for
loop in the all
target. 如果您赶时间并且不想构建文档,请调整toplevel makefile以跳过构建文档:从
SUBDIRS
和all
目标中的for
循环中删除Doc
。
With fully agreement and respect to Gilles I like to add the complete list of commands that I run to successfully install zsh . 在完全同意并尊重Gilles之后,我想添加我为成功安装zsh而运行的完整命令列表。
// sudo install build-essential
// sudo install yodl
git clone git://zsh.git.sf.net/gitroot/zsh/zsh
cd zsh
./Util/preconfig
./configure --prefix=/usr/local
make
sudo make install
If you run into the error described by JuanPablo run make clean
before running make
again. 如果遇到JuanPablo描述的错误,请在再次运行
make clean
之前运行make
make clean
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.