Open jefflab opened 9 years ago
Hi Jeff
I'm afraid it's been good while since I got this working, and I don't have the compile scripts on hand. However, as you'll note in the bin/compile
file I'm setting CPATH
, CPPATH
and LIBRARY_PATH
- have you done the same? Not sure if R expects other environment variables to be used, though.
Thanks for the reply!
I've tried setting the CPATH
, CPPATH
, and LIBRARY_PATH
variables as you suggest. I've also tried to set the LDFLAGS
, NETCDF_INCLUDE
, NETCDF_LIB
, and NC_CONFIG
variables as described in the R ncdf install instructions. Unfortunately, I haven't gotten it working.
I don't think the error above is related to setting environment variables though because I can't find the ncdf.so
anywhere on the file system. I suspect I am building the netcdf binary wrong, and therefore it isn't producing that file.
I'll keep digging. Thanks for your thoughts.
Wonder if it's a difference between building for dynamic linking and building for static linking? Keep in mind: you probably understand compiling better than I do - could very well be that netcdf compiles for both as it is (or libraries are fine for both normally?)
Would it be possible to share the commands you used to build
http://pat-public.s3.amazonaws.com/hdf.tgz
andhttp://pat-public.s3.amazonaws.com/netcdf.tgz
?I've tried to build netcdf on Heroku using the following commands:
That all seems to work, but then I try to load the
ncdf
R package and get the error: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