Ошибка установки Python-SWIG под Linux

При установке Python-SWIG под Linux возникает ошибка, которую он не может найти quantlib-config, Согласно readme, я положил quantlib-config в каталоге на пути, т. е. /home/idf/bin как можно увидеть ниже.

Я все еще получаю ошибку.

sudo make -C Python install
[sudo] password for idf: 
make: Entering directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
make  install-am
make[1]: Entering directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
make[2]: Entering directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
/home/idf/anaconda2/bin/python setup.py install
running install
running build
running build_py
running build_ext
sh: quantlib-config: command not found
sh: quantlib-config: command not found
running install_lib
running install_egg_info
Removing /home/idf/anaconda2/lib/python2.7/site-packages/QuantLib_Python-1.7-py2.7.egg-info
Writing /home/idf/anaconda2/lib/python2.7/site-packages/QuantLib_Python-1.7-py2.7.egg-info
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
make[1]: Leaving directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
make: Leaving directory `/home/idf/Downloads/QuantLib-SWIG-1.7/Python'
[idf@node3 QuantLib-SWIG-1.7]$ echo $PATH
/home/idf/anaconda2/bin:/bin:/home/idf/bin:/home/idf/anaconda2/bin:/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/idf/.local/bin

[idf@node3 QuantLib-SWIG-1.7]$ ls -la /home/idf/bin
total 12
drwxrwxr-x  2 idf idf 4096 Jan  2 21:49 .
drwx--x--- 29 idf idf 4096 Jan  3 18:29 ..
-rwxrwxr-x  1 idf idf  919 Jan  2 21:49 quantlib-config
[idf@node3 QuantLib-SWIG-1.7]$

РЕДАКТИРОВАТЬ

[idf@node3 QuantLib-SWIG-1.7]$ which quantlib-config 
~/bin/quantlib-config
[idf@node3 QuantLib-SWIG-1.7]$ sudo which quantlib-config 
[sudo] password for idf: 
which: no quantlib-config in (/sbin:/bin:/usr/sbin:/usr/bin)
[idf@node3 QuantLib-SWIG-1.7]$ 

0 ответов

Другие вопросы по тегам