[Nexus] General installation question.

Akeroyd, FA (Freddie) F.A.Akeroyd at rl.ac.uk
Fri Apr 20 16:13:36 BST 2007


Balamurali,

The directory /tmp/software/nexus-3.0.0/nexus/lib will not actually get
created until a "make install" is executed ... your make is currently
just settings the "rpath" of the image (runtime library search path) to
point to this directory in preparation for an install. When I execute
the same command on my Linux system (g95/gcc/Fedora Core 6) I do not see
any problems with having rpath/prefix pointing to a non-existing
directory, so I'm not sure of the cause on your system. 

Assuming the problem is with --rpath, a way around this is to link the
NXdump executable statically. To do this edit the Makefile in the
applications directory where you are seeing the error and after the line

    NXdump_LINK = $(F90LINK)

Add the additional line

    NXdump_LDFLAGS = -static $(LDFLAGS)

And then, similarly, add an NXbrowse90_LDFLAGS line after the
NXbrowse90_LINK line

Regards, 

Freddie

-----Original Message-----
From: nexus-bounces at nexusformat.org
[mailto:nexus-bounces at nexusformat.org] On Behalf Of Balamurali Ananthan
Sent: 19 April 2007 17:42
To: nexus at nexusformat.org
Subject: Re: [Nexus] General installation question.

Thanks Freddie,

That worked fine and now I'm struck on this seemingly simple error for
sometime:

During make:
-------------------------------
...
f95 -mismatch -I/tmp/software/nexus-3.0.0/nexus-3.0.0/bindings/f90 -c
NXdump.f90
Evaluation trial version of NAGWare Fortran 95 Release 5.1(282)
/bin/sh ../libtool --mode=link --tag=CC f95  -mismatch
-I/tmp/software/nexus-3.0.0/nexus-3.0.0/bindings/f90
-L/usr/local/hdf5/lib
-L/tmp/software/4.2r1-linux/4.2r1-linux//lib  -L/usr/local/lib -o NXdump
NXdump.o ../bindings/f90/libNeXus90.la -lxml2 -lhdf5 -lmfhdf -ldf -lsz
-ljpeg -lz 
libtool: link: warning: library
`/tmp/software/4.2r1-linux/4.2r1-linux//lib/libsz.la' was moved.
libtool: link: warning: library
`/tmp/software/4.2r1-linux/4.2r1-linux//lib/libsz.la' was moved.
f95 -mismatch -I/tmp/software/nexus-3.0.0/nexus-3.0.0/bindings/f90 -o
.libs/NXdump NXdump.o  -L/usr/local/hdf5/lib
-L/tmp/software/4.2r1-linux/4.2r1-linux//lib -L/usr/local/lib
../bindings/f90/.libs/libNeXus90.so
/tmp/software/nexus-3.0.0/nexus-3.0.0/bindings/f77/.libs/libNeXus77.so
/tmp/software/nexus-3.0.0/nexus-3.0.0/src/.libs/libNeXus.so
/usr/lib/libxml2.so -lpthread /usr/local/hdf5-1.6.4/lib/libhdf5.so
-lmfhdf
-ldf /tmp/software/4.2r1-linux/4.2r1-linux//lib/libsz.so -lm
/usr/lib/libjpeg.so -lz -Wl,--rpath
-Wl,/tmp/software/nexus-3.0.0/nexus/lib
-Wl,--rpath -Wl,/usr/local/hdf5-1.6.4/lib -Wl,--rpath
-Wl,/tmp/software/4.2r1-linux/4.2r1-linux//lib
Evaluation trial version of NAGWare Fortran 95 Release 5.1(282)
gcc: /tmp/software/nexus-3.0.0/nexus/lib: No such file or directory
make[2]: *** [NXdump] Error 1
make[2]: Leaving directory
`/tmp/software/nexus-3.0.0/nexus-3.0.0/applications'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/tmp/software/nexus-3.0.0/nexus-3.0.0/applications'
make: *** [all-recursive] Error 1
[bala at grid nexus-3.0.0]$
-------------------------------

More specifically, in applications/ if I do:

-------------------------------
[bala at grid applications]$ f95 -mismatch
-I/tmp/software/nexus-3.0.0/nexus-3.0.0/bindings/f90 -o .libs/NXdump
NXdump.o  -L/usr/local/hdf5/lib
-L/tmp/software/4.2r1-linux/4.2r1-linux//lib
-L/usr/local/lib ../bindings/f90/.libs/libNeXus90.so
/tmp/software/nexus-3.0.0/nexus-3.0.0/bindings/f77/.libs/libNeXus77.so
/tmp/software/nexus-3.0.0/nexus-3.0.0/src/.libs/libNeXus.so
/usr/lib/libxml2.so -lpthread /usr/local/hdf5-1.6.4/lib/libhdf5.so
-lmfhdf
-ldf /tmp/software/4.2r1-linux/4.2r1-linux//lib/libsz.so -lm
/usr/lib/libjpeg.so -lz -Wl,--rpath
-Wl,/tmp/software/nexus-3.0.0/nexus/lib
-Wl,--rpath -Wl,/usr/local/hdf5-1.6.4/lib -Wl,--rpath
-Wl,/tmp/software/4.2r1-linux/4.2r1-linux//lib
Evaluation trial version of NAGWare Fortran 95 Release 5.1(282)

gcc: /tmp/software/nexus-3.0.0/nexus/lib: No such file or directory
--------------------------------

/tmp/software/nexus-3.0.0/nexus is the prefix location that I specified
during configure.  Is it not supposed to create a lib/ instead of
complaining that the directory is not found?

Am I missing something? Any help is much appreciated.  Thanks.
.Bala.





More information about the NeXus mailing list