[MINC-users] Problems installing MINC from source...
Andre MATOS
minc-users@bic.mni.mcgill.ca
Fri, 24 Oct 2003 12:37:42 -0400 (EDT)
you also can install the source of netCDF and minc and compile both, as I
did in my RedHat 9 at home:
1st) NETCDF
- set environment:
file -> .bash_profile
export CPPFLAGS='-Df2cFortran -DNDEBUG'
export CC=/usr/bin/cc
export CFLAGS=-O
export FC=g77
export FFLAGS=-O
export CXX=/usr/bin/c++
- get and compile netcdf:
wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-beta.tar.gz
tar -xvzf netcdf-beta.tar.gz
cd netcdf-3.5.1-beta13/src
./configure --disable-shared --prefix=/usr/local/mni
make
make test
mkdir /usr/local/mni
make install
2) MINC
wget ftp://ftp.bic.mni.mcgill.ca/pub/minc/minc-1.1-tar.gz
tar -xvzf minc-1.1.tar.gz
cd minc-1.1
./configure --prefix=/usr/local/mni --with-build-path=/usr/local/mni
make
make install
ranlib /usr/local/mni/lib/libminc.a /usr/local/mni/lib/libvolume_io.a
Andre Matos
amatos@mrs.mni.mcgill.ca
On Thu, 23 Oct 2003, Roy Yves wrote:
> 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
>
>
>
>
> _______________________________________________
> MINC-users@bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
--
Andre Matos
amatos@mrs.mni.mcgill.ca