nci/gsky

Make all install issue in Ubuntu

Closed this issue · 1 comments

Make all install fails to install GSKY as per README

make all install
pkg-config --exists gdal
nc-config --version
netCDF 4.6.0
go get ./...
go install -ldflags="-X=github.com/nci/gsky/utils.LibexecDir=/usr/local/libexec -X=github.com/nci/gsky/worker/gdalservice.LibexecDir=/usr/local/libexec -X=github.com/nci/gsky/utils.EtcDir=/usr/local/etc -X=github.com/nci/gsky/utils.DataDir=/usr/local/share/gsky" ./...
install -d /usr/local/bin /usr/local/sbin /usr/local/libexec /usr/local/etc
install: cannot change permissions of ‘/usr/local/libexec’: No such file or directory
Makefile:43: recipe for target 'install' failed
make: *** [install] Error 1

The makefile has assumption of CentOS file system. With Ubuntu, you may configure the directories like ./configure --prefix=xxxx --bindir=xxxx --sbindir=xxxx --libexecdir=xxxx before make.