在Ubuntu上编译cld失败

时间:2012-06-15 11:35:40

标签: python ubuntu

我正在尝试编译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

有任何线索吗?

1 个答案:

答案 0 :(得分:0)

configure之前使用autoreconf:

autoreconf -vi
./configure --prefix=/usr/local #or --prefix=/usr
make
sudo make install