0

我正在尝试编译cld,当我运行时./configure && make出现此错误:

configure: error: cannot find install-sh or install.sh in "." "./.." "./../.."

并且在运行时:

cd cld/ports/python
make install

我得到:

sudo python -u setup.py install
running install
running build
running build_ext
building 'cld' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/cld -I/usr/include/python2.7 -c pycldmodule.cc -o build/temp.linux-x86_64-2.7/pycldmodule.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default]
pycldmodule.cc:9:57: fatal error: encodings/compact_lang_det/compact_lang_det.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
make: *** [install] Error 1

有什么线索吗?

4

1 回答 1

0

使用 autoreconf 之前configure

autoreconf -vi
./configure --prefix=/usr/local #or --prefix=/usr
make
sudo make install
于 2012-06-15T12:12:31.393 回答