sbinet / go-python

naive go bindings to the CPython2 C-API
Other
1.52k stars 138 forks source link

Does it works on Centos7 i686 system? #100

Closed EiyouZk closed 4 years ago

EiyouZk commented 4 years ago

My system info is "Linux localhost.localdomain 3.10.0-1062.el7.centos.plus.i686 #1 SMP Wed Aug 14 17:40:53 UTC 2019 i686 i686 i386 GNU/Linux". When I run "make install" after "go get -d github.com/sbinet/go-python", i get errors: go get -compiler="gc" .

github.com/sbinet/go-python

/usr/local/python-2.7.10/lib/libpython2.7.a(posixmodule.o): In function posix_tmpnam': /root/setup/Python-2.7.10/./Modules/posixmodule.c:7631: warning: the use oftmpnam_r' is dangerous, better use mkstemp' /usr/local/python-2.7.10/lib/libpython2.7.a(posixmodule.o): In functionposix_tempnam': /root/setup/Python-2.7.10/./Modules/posixmodule.c:7578: warning: the use of tempnam' is dangerous, better usemkstemp' /usr/local/python-2.7.10/lib/libpython2.7.a(complexobject.o): In function _Py_c_abs': /root/setup/Python-2.7.10/Objects/complexobject.c:214: undefined reference tohypot' /usr/local/python-2.7.10/lib/libpython2.7.a(complexobject.o): In function _Py_c_pow': /root/setup/Python-2.7.10/Objects/complexobject.c:143: undefined reference tohypot' /root/setup/Python-2.7.10/Objects/complexobject.c:144: undefined reference to pow' /root/setup/Python-2.7.10/Objects/complexobject.c:145: undefined reference toatan2' /root/setup/Python-2.7.10/Objects/complexobject.c:147: undefined reference to sincos' /root/setup/Python-2.7.10/Objects/complexobject.c:148: undefined reference toexp' /root/setup/Python-2.7.10/Objects/complexobject.c:149: undefined reference to log' /root/setup/Python-2.7.10/Objects/complexobject.c:143: undefined reference tohypot' /root/setup/Python-2.7.10/Objects/complexobject.c:144: undefined reference to pow' /root/setup/Python-2.7.10/Objects/complexobject.c:145: undefined reference toatan2' /root/setup/Python-2.7.10/Objects/complexobject.c:146: undefined reference to sincos' /root/setup/Python-2.7.10/Objects/complexobject.c:143: undefined reference tohypot' /root/setup/Python-2.7.10/Objects/complexobject.c:144: undefined reference to pow' /root/setup/Python-2.7.10/Objects/complexobject.c:145: undefined reference toatan2'

Could you tell me how to install it at centos 386 system? Thank you very very much.

EiyouZk commented 4 years ago

I found an article, then reinstall python at centos i686 system,it works. https://www.cnblogs.com/xiaoshame/p/3981926.html