2012-06-15 80 views
0

我試圖編譯cld,當我運行./configure && make我得到這個錯誤:編譯CLD未能在Ubuntu

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 

任何線索? configure

回答

0

使用autoreconf:

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

或可能'autoreconf -i' – mgilson

+0

@mgilson耶丟失的文件應安裝過。我將它添加到我的答案以及詳細輸出。 –

+1

僅供參考,我首先必須'sudo apt-get install automake'。謝謝大家幫助。 :) – Ansd