sbinet / go-python

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

Make returns error #3

Closed glittershark closed 11 years ago

glittershark commented 11 years ago

running make returns the following error:

CGO_LDFLAGS="-L/usr/lib/python2.7 -lpython2.7" CGO_CFLAGS="-I/usr/include/python2.7 -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" go install -compiler="gc" .
go install: no install location for _/home/smith/go/pkg/github.com/sbinet/go-python
make: *** [install] Error 1

My GOPATH is /home/smith/go.

sbinet commented 11 years ago

hi,

does this happens when you do:

$ cd tmp
$ mkdir foo
$ cd foo
$ export GOPATH=`pwd`
$ mkdir -p $GOPATH/src/github.com/sbinet/go-python
$ cd $GOPATH/src/github.com/sbinet/go-python
$ git clone git://github.com/sbinet/go-python .
Cloning into '.'...
remote: Counting objects: 426, done.
remote: Compressing objects: 100% (344/344), done.
remote: Total 426 (delta 79), reused 407 (delta 60)
Receiving objects: 100% (426/426), 353.10 KiB, done.
Resolving deltas: 100% (79/79), done.

$ make   

?

-s

glittershark commented 11 years ago

Nope, that works just fine that's odd...

sbinet commented 11 years ago

did you by any chance checked out the go-python package under $GOPATH/pkg/github.com/sbinet/go-python (notice the /pkg/ instead of /src/) or under a path which isn't $GOPATH, or perhaps you forgot to export $GOPATH ?

glittershark commented 11 years ago

...yeah, I did check it out under pkg, that's what the install instructions in the README said

sbinet commented 11 years ago

ah! fixing the README then :}

glittershark commented 11 years ago

Thanks for the quick reply!