inspire9 / heroku-buildpack-netcdf Goto Github PK
View Code? Open in Web Editor NEWBuildpack for NetCDF support on Heroku
Buildpack for NetCDF support on Heroku
Would it be possible to share the commands you used to build http://pat-public.s3.amazonaws.com/hdf.tgz
and http://pat-public.s3.amazonaws.com/netcdf.tgz
?
I've tried to build netcdf on Heroku using the following commands:
curl -o /tmp/zlib-1.2.8.tar.gz http://zlib.net/zlib-1.2.8.tar.gz
curl -o /tmp/hdf5-1.8.13.tar.gz ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4/hdf5-1.8.13.tar.gz
curl -L -o /tmp/netcdf-4.3.2.tar.gz https://github.com/Unidata/netcdf-c/archive/v4.3.2.tar.gz
mkdir -p /app/vendor/netcdf
cd /tmp
tar -xzvf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure --prefix=/app/vendor/netcdf
make check install
cd /tmp
tar -xzvf hdf5-1.8.13.tar.gz
cd hdf5-1.8.13
./configure --with-zlib=/app/vendor/netcdf --prefix=/app/vendor/netcdf
make
make check
make install
cd /tmp
tar -xzvf netcdf-4.3.2.tar.gz
cd netcdf-c-4.3.2
export CPPFLAGS=-I/app/vendor/netcdf/include
export LDFLAGS=-L/app/vendor/netcdf/lib
./configure --prefix=/app/vendor/netcdf --enable-shared --disable-netcdf-4
make check install
That all seems to work, but then I try to load the ncdf
R package and get the error:
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/app/vendor/R/lib64/R/library/ncdf/libs/ncdf.so':
libnetcdf.so.7: cannot open shared object file: No such file or directory
Googling for a solution to the above error hasn't yielded any results. Some people suggest using netcdf 3.6.2 instead, but others say that isn't a good idea because netcdf3 is deprecated.
Having the script that worked for you would be really helpful.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.