Godon installation issue (Mac)
I am having an issue installing Godon on my Mac. I followed the instructions here for Mac OS installation using Homebrew, but when I run
curl -L https://bitbucket.org/Davydov/godon/raw/master/bin/install.sh | CC=gcc-7 bash
I get
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2035 100 2035 0 0 3713 0 --:--:-- --:--:-- --:--:-- 3706
Package github.com/gonum/blas/cgo is not installed
And it looks like github.com/gonum/blas/cgo is a broken link.
Any idea what I should do? Would it be possible to have a precompiled version for Mac?
Comments (7)
-
repo owner -
repo owner Hi,
Could you try the following command and let me know if it works:
CGO_FFLAGS="-J $TMPDIR -I $TMPDIR" CGO_LDFLAGS="-framework Accelerate" CC=gcc-11 go install -x bitbucket.org/Davydov/godon/godon@latest
See https://github.com/golang/go/issues/48349 for the context for the
-J
flag. -
Hi Iakov,
Thanks for your response! When I run the above, I get:
# get https://proxy.golang.org/bitbucket.org/@v/list
# get https://proxy.golang.org/bitbucket.org/%21davydov/godon/@v/list
# get https://proxy.golang.org/bitbucket.org/%21davydov/@v/list
# get https://proxy.golang.org/bitbucket.org/%21davydov/godon/godon/@v/list
# get https://proxy.golang.org/bitbucket.org/@v/list: 410 Gone (0.206s)
# get https://proxy.golang.org/bitbucket.org/%21davydov/@v/list: 410 Gone (0.269s)
# get https://proxy.golang.org/bitbucket.org/%21davydov/godon/@v/list: 200 OK (0.272s)
# get https://proxy.golang.org/bitbucket.org/%21davydov/godon/@latest
# get https://proxy.golang.org/bitbucket.org/%21davydov/godon/godon/@v/list: 410 Gone (0.274s)
# get https://proxy.golang.org/bitbucket.org/%21davydov/godon/@latest: 200 OK (0.024s)
WORK=/var/folders/83/w84fdbf92dlgwjpb9_6cxx200000gp/T/go-build1330197631
mkdir -p $WORK/b087/
cd /Users/cbucao/go/pkg/mod/bitbucket.org/!davydov/godon@v0.0.0-20210913094120-eeaf01fcde0b/optimize
pkg-config --cflags -- nlopt
# pkg-config --cflags -- nlopt
pkg-config: exec: "pkg-config": executable file not found in $PATH
I think a Dockerfile could be a good idea, if you can provide it.
Thanks!
Best,
Christa -
repo owner Did you install nlopt via homebrew?
-
Yes, just to check I ran
brew install nlopt
again, and it saysWarning: nlopt 2.7.0 is already installed and up-to-date.
Sorry for the difficulties!
-
repo owner Could you try to install pkg-config?
brew install pkg-config
-
Looks like it works now, thanks a lot!
- Log in to comment
Hi,
I’m currently looking into this.
In the meantime, providing builds for Mac wouldn’t be easy. Currently linux builds are generated automatically using the CI pipeline, and Bitbucket doesn’t provide Mac OS build infrastructure. On top of that, in the past I didn’t manage to produce static Mac OS binaries. Meaning that likely binaries won’t run on some systems.
Would it be helpful to provide a Dockerfile? This way godon could be run on mac via docker.
Regarding the broken link, cgo is a subpackage of gonum/blas, so it’s expected that github returns 404.