Coder Social home page Coder Social logo

heroku-buildpack-netcdf's People

Contributors

pat avatar

Watchers

 avatar Nate avatar James Cloos avatar

Forkers

kcaylor

heroku-buildpack-netcdf's Issues

script to build binaries?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.