[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #QWF-759850]: NETCDF problem



Greetings Dave,

What is the output of

which icc

Thanks,

Sean

> Hi,
> 
> I have invoked configure and make check successfully when installing the
> NETCDF libraries 4.1.3 on ubuntu 10.04.  The problem comes with make
> install.  For some reason, if I use sudo make install, the system can't
> find ifort or icc.  If I don't do make install as superuser, I don't
> have file permissions to do anything.  As super user, I can't use my
> ifort or icc compilers.  They work otherwise.  What do I do?
> 
> Thanks,
> Dave Small
> 
> davidsmall@ubuntu:~/netcdf-4.1.3$ sudo make install
> Making install in include
> make[1]: Entering directory `/home/davidsmall/netcdf-4.1.3/include'
> make[2]: Entering directory `/home/davidsmall/netcdf-4.1.3/include'
> make[2]: Nothing to be done for `install-exec-am'.
> test -z "/usr/local/netcdf/include" || /bin/mkdir -p
> "/usr/local/netcdf/include"
> /usr/bin/install -c -m 644 netcdf.h '/usr/local/netcdf/include'
> make[2]: Leaving directory `/home/davidsmall/netcdf-4.1.3/include'
> make[1]: Leaving directory `/home/davidsmall/netcdf-4.1.3/include'
> Making install in libdispatch
> make[1]: Entering directory `/home/davidsmall/netcdf-4.1.3/libdispatch'
> make[2]: Entering directory `/home/davidsmall/netcdf-4.1.3/libdispatch'
> make[2]: Nothing to be done for `install-exec-am'.
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/home/davidsmall/netcdf-4.1.3/libdispatch'
> make[1]: Leaving directory `/home/davidsmall/netcdf-4.1.3/libdispatch'
> Making install in libsrc
> make[1]: Entering directory `/home/davidsmall/netcdf-4.1.3/libsrc'
> make[2]: Entering directory `/home/davidsmall/netcdf-4.1.3/libsrc'
> make[2]: Nothing to be done for `install-exec-am'.
> test -z "/usr/local/netcdf/share/man/man3" || /bin/mkdir -p
> "/usr/local/netcdf/share/man/man3"
> /usr/bin/install -c -m 644 netcdf.3 '/usr/local/netcdf/share/man/man3'
> make[2]: Leaving directory `/home/davidsmall/netcdf-4.1.3/libsrc'
> make[1]: Leaving directory `/home/davidsmall/netcdf-4.1.3/libsrc'
> Making install in liblib
> make[1]: Entering directory `/home/davidsmall/netcdf-4.1.3/liblib'
> make[2]: Entering directory `/home/davidsmall/netcdf-4.1.3/liblib'
> test -z "/usr/local/netcdf/lib" || /bin/mkdir -p "/usr/local/netcdf/lib"
> /bin/bash ../libtool   --mode=install /usr/bin/install -c
> libnetcdf.la '/usr/local/netcdf/lib'
> libtool: install: /usr/bin/install -c .libs/libnetcdf.so.7.1.1
> /usr/local/netcdf/lib/libnetcdf.so.7.1.1
> libtool: install: (cd /usr/local/netcdf/lib && { ln -s -f
> libnetcdf.so.7.1.1 libnetcdf.so.7 || { rm -f libnetcdf.so.7 && ln -s
> libnetcdf.so.7.1.1 libnetcdf.so.7; }; })
> libtool: install: (cd /usr/local/netcdf/lib && { ln -s -f
> libnetcdf.so.7.1.1 libnetcdf.so || { rm -f libnetcdf.so && ln -s
> libnetcdf.so.7.1.1 libnetcdf.so; }; })
> libtool: install: /usr/bin/install -c .libs/libnetcdf.lai
> /usr/local/netcdf/lib/libnetcdf.la
> libtool: install: /usr/bin/install -c .libs/libnetcdf.a
> /usr/local/netcdf/lib/libnetcdf.a
> libtool: install: chmod 644 /usr/local/netcdf/lib/libnetcdf.a
> libtool: install: ranlib /usr/local/netcdf/lib/libnetcdf.a
> libtool: finish:
> PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin"
> ldconfig -n /usr/local/netcdf/lib
> ----------------------------------------------------------------------
> Libraries have been installed in:
> /usr/local/netcdf/lib
> 
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
> - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
> during execution
> - add LIBDIR to the `LD_RUN_PATH' environment variable
> during linking
> - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
> - have your system administrator add LIBDIR to `/etc/ld.so.conf'
> 
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/home/davidsmall/netcdf-4.1.3/liblib'
> make[1]: Leaving directory `/home/davidsmall/netcdf-4.1.3/liblib'
> Making install in nctest
> make[1]: Entering directory `/home/davidsmall/netcdf-4.1.3/nctest'
> make[2]: Entering directory `/home/davidsmall/netcdf-4.1.3/nctest'
> make[2]: Nothing to be done for `install-exec-am'.
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/home/davidsmall/netcdf-4.1.3/nctest'
> make[1]: Leaving directory `/home/davidsmall/netcdf-4.1.3/nctest'
> Making install in nc_test
> make[1]: Entering directory `/home/davidsmall/netcdf-4.1.3/nc_test'
> make[2]: Entering directory `/home/davidsmall/netcdf-4.1.3/nc_test'
> make[2]: Nothing to be done for `install-exec-am'.
> make[2]: Nothing to be done for `install-data-am'.
> make[2]: Leaving directory `/home/davidsmall/netcdf-4.1.3/nc_test'
> make[1]: Leaving directory `/home/davidsmall/netcdf-4.1.3/nc_test'
> Making install in f90
> make[1]: Entering directory `/home/davidsmall/netcdf-4.1.3/f90'
> make  install-am
> make[2]: Entering directory `/home/davidsmall/netcdf-4.1.3/f90'
> make[3]: Entering directory `/home/davidsmall/netcdf-4.1.3/f90'
> make[3]: Nothing to be done for `install-exec-am'.
> test -z "/usr/local/netcdf/share/man/man3" || /bin/mkdir -p
> "/usr/local/netcdf/share/man/man3"
> /usr/bin/install -c -m 644 netcdf_f90.3 '/usr/local/netcdf/share/man/man3'
> test -z "/usr/local/netcdf/include" || /bin/mkdir -p
> "/usr/local/netcdf/include"
> /usr/bin/install -c -m 644 typesizes.mod netcdf.mod
> '/usr/local/netcdf/include'
> make[3]: Leaving directory `/home/davidsmall/netcdf-4.1.3/f90'
> make[2]: Leaving directory `/home/davidsmall/netcdf-4.1.3/f90'
> make[1]: Leaving directory `/home/davidsmall/netcdf-4.1.3/f90'
> Making install in fortran
> make[1]: Entering directory `/home/davidsmall/netcdf-4.1.3/fortran'
> make  install-am
> make[2]: Entering directory `/home/davidsmall/netcdf-4.1.3/fortran'
> depbase=`echo fort-attio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/bash ../libtool --tag=CC   --mode=compile icc -DHAVE_CONFIG_H
> -I. -I..  -I../include      -MT fort-attio.lo -MD -MP -MF $depbase.Tpo
> -c -o fort-attio.lo fort-attio.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile:  icc -DHAVE_CONFIG_H -I. -I.. -I../include -MT
> fort-attio.lo -MD -MP -MF .deps/fort-attio.Tpo -c fort-attio.c  -fPIC
> -DPIC -o .libs/fort-attio.o
> ../libtool: line 1133: icc: command not found
> make[2]: *** [fort-attio.lo] Error 1
> make[2]: Leaving directory `/home/davidsmall/netcdf-4.1.3/fortran'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/home/davidsmall/netcdf-4.1.3/fortran'
> make: *** [install-recursive] Error 1
> 
> 
> --
> David Small
> Research Assistant Professor
> Program Coordinator, Water and Diplomacy Program
> Department of Civil and Environmental Engineering
> Tufts University
> 
> 
> 
> 
> 


Ticket Details
===================
Ticket ID: QWF-759850
Department: Support netCDF
Priority: High
Status: Open