2014-10-20 53 views
0

我嘗試用mac os中的python綁定FANN。 我有下一步: 1.下載FANN 2.2 2.照常安裝。用python mac os綁定FANN

./configure 
    make 
    sudo make install 

2.安裝最後XCODE 3.下載源代碼FANN的結合。 3.然後我嘗試:

python setup.py install 

4.我有問題:

unable to execute gcc-4.2: No such file or directory 

5.我解決了這個問題,我嘗試

sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2 

這項工作。

6.then我再試一次python setup.py install

後,我有新的錯誤:

ld: library not found for -ldoublefann 

clang: error: linker command failed with exit code 1 (use -v to see invocation) 

error: command 'g++-4.2' failed with exit status 1 

有什麼不對? 謝謝。

回答