vtsuperdarn / RSTLite

A Stripped Down Version of RST3.5
2 stars 6 forks source link

RSTLite compilation broken #1

Closed asreimer closed 11 years ago

asreimer commented 11 years ago

As of this comment, RSTLite does not compile on machines that do not have the /davit/lib/cdf/cdf33_0/cdf/include directory (I'm assuming this is only a directory on the machine that the RSTLite was being developed on).

Really, there are only 2 compilation errors and they are very easy to fix :)


1) rcdf.c:36:17: fatal error: cdf.h: No such file or directory


This is remedied by downloading the CDF source code from here: http://cdaweb.gsfc.nasa.gov/pub/software/cdf/dist/cdf34_1/linux/cdf34_1-dist-all.tar.gz

Next use tar (tar -xfc cdf34_1-dist-all.tar.gz) and copy the cdf.h file from cdf34_1-dist-all/src/include/ directory into RSTLite/codebase/analysis/src.lib/cdf/rcdf.1.5/include/


2) ld: cannot find -lcdf


To fix this error, we need to compile CDF, just follow the README.install OR, if on openSUSE 12.3:

  1. sudo zypper install ncurses-devel (required by CDF)
  2. make OS=linux ENV=gnu

Now copy both libcdf.a and libcdf.so from cdf34_1-dist-all/src/lib to RSTLite/lib


There, all done! :D

Also, we can probably remove any dependence on the /davit/lib/cdf/cdf33_0/cdf/include directory.

Ashton

asreimer commented 11 years ago

Also, I just confirmed this bug and the fix works on both Ubuntu 13.04 and openSUSE 12.3.

On Ubuntu though you need to get libncurses5-dev using aptitude (sudo apt-get install libncurses5-dev)

ajribeiro commented 11 years ago

Thanks Ashton, I'll add this to the install instructions. This problem was probably introduced because I added the ability to make grid files.

egthomas commented 11 years ago

Dr. Hosokawa and I also ran into an RSTLite compilation error with Debian, but we were able to get RST 3.5 installed without any issue. Unfortunately I did not make a note of what errors were occurring on Debian.

ajribeiro commented 11 years ago

RST 3.5 from APL or the one from vt?

On Fri, Jun 21, 2013 at 10:29 AM, egthomas notifications@github.com wrote:

Dr. Hosokawa and I also ran into an RSTLite compilation error with Debian, but we were able to get RST 3.5 installed without any issue. Unfortunately I did not make a note of what errors were occurring on Debian.

— Reply to this email directly or view it on GitHubhttps://github.com/vtsuperdarn/RSTLite/issues/1#issuecomment-19819116 .

egthomas commented 11 years ago

From VT. We followed the instructions on the rescue package webpage.

ajribeiro commented 11 years ago

I've included the cdf library in the distribution, the install instructions should be complete now.

Thanks again Ashton