-
Notifications
You must be signed in to change notification settings - Fork 139
many undefined and error when compile #54
Comments
how did you install python? AFAIK, here is what I did in a docker container:
|
FIRST OF ALL THANK YOU install by source code and complied, it works fine. |
ok.
? |
(the linker error would seem to indicate that you are missing |
$> export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig PKG_CONFIG_PATH should set to cgo. pkgconfig will give proper link options to build math lib. I spent 2 days figuring out why ubuntu failed to make go-python. in VSCode you can build and run by editing launch.json
} $> whereis pkgconfig and find out python3.pc in located pkgconfig folders |
in cgoflags_unix.go file // +build !windows package python // #cgo pkg-config: python-2.7 cgo pkg-config: python-2.7 --> pkg-config should know to find python-2.7.pc file path sudo apt-get update -y if don't install pkg-config , install pkg-config. |
when i run
make install
, it failedis that my python version wrong, please help me?
base info:
centos6.2 x64
python-2.7.13
go version go1.7.4 linux/amd64
The text was updated successfully, but these errors were encountered: