[MINC-users] Problems installing MINC from source...
Roy Yves
minc-users@bic.mni.mcgill.ca
Thu, 23 Oct 2003 16:33:00 -0400
Hi,
I am installing MINC into my Linux RedHat 9, however, I run into problems not very far in the process.... the configure script. I installed, apparently successfully, netcdf (using RPM), then proceeded to install MINC from source (since RPM form MINC hung...):
% rpm -i netcdf-3.5.0-linux-2.4-intel.rpm
% rpm -q netcdf
netcdf-3.5.0-0
The installed packages:
% rpm -ql netcdf
/usr/local/mni/bin
/usr/local/mni/bin/ncdump
/usr/local/mni/bin/ncgen
/usr/local/mni/include
/usr/local/mni/include/netcdf.h
/usr/local/mni/lib
/usr/local/mni/lib/libnetcdf.a
/usr/local/mni/man
/usr/local/mni/man/man1
/usr/local/mni/man/man1/ncdump.1
/usr/local/mni/man/man1/ncgen.1
/usr/local/mni/man/man3
/usr/local/mni/man/man3/netcdf.3
Things seem fine there. Then I proceed to minc installation from source:
minc-1.1-1.tar.gz
which I got from:
http://www.bic.mni.mcgill.ca/software/distribution/
After uncompressing and extracting the files, I change to the directory minc-1.1-1, run the configure script ('./configure') which has errors:
If I look at the output of ./configure I find the last two lines saying:
checking for library netcdf... no
configure: error: cannot find required library netcdf
Well, I check the environment variable LDFLAGS and CPPFLAGS:
% echo $LDFLAGS
-L/usr/local/mni/lib
% echo $CPPFLAGS
-I/usr/local/mni/include
Which seems OK since the header and library needed are in:
% ls /usr/local/mni/lib/
libminc.a libnetcdf.a libvolume_io.a
% ls /usr/local/mni/include/
minc.h netcdf.h time_stamp.h volume_io.h
nd_loop.h ParseArgv.h volume_io voxel_loop.h
config.log also contains the following lines:
...
configure:17387: checking for library netcdf
configure:17409: gcc -o conftest -g -O2 -L/usr/local/mni/include -L/usr/local/mni/lib conftest.c -lnetcdf -lm >&5
configure:17391:20: netcdf.h: No such file or directory
configure:17412: $? = 1
configure: failed program was:
#line 17390 "configure"
#include "confdefs.h"
#include <netcdf.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
int i = ncopen("",0);
;
return 0;
}
configure:17427: result: no
configure:17430: error: cannot find required library netcdf
If you have any idea what I missed, please let me know.
Thanks
yves roy