2012-07-15 36 views
6

我試圖安裝mlpy,我得到以下錯誤。我不知道從哪裏開始。有人有任何線索嗎?gsl安裝mlpy時出錯

$ sudo easy_install mlpy-3.5.0.tar.gz 
Password: 
install_dir /Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/ 
Processing mlpy-3.5.0.tar.gz 
Running mlpy-3.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-lQNT_3/mlpy-3.5.0/egg-dist-tmp-EPgtAi 
mlpy/gsl/gsl.c:223:24: error: gsl/gsl_sf.h: No such file or directory 
mlpy/gsl/gsl.c:224:39: error: gsl/gsl_statistics_double.h: No such file or directory 
error: Setup script exited with error: command 'gcc' failed with exit status 1 

回答

5

您的系統上沒有安裝gsl的開發包。在RHEL/Fedora /等。在Debian/Ubuntu /等上安裝gsl-devel。安裝gsl-dev。

+0

謝謝...這似乎是問題! – user792036 2012-07-18 14:11:26

+9

我剛剛遇到了這個問題,並且ubuntu/debian的正確包名是:'apt-get install libgsl0-dev' – Vall 2014-02-20 14:08:13