Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmany 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. |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

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