[gmx-users] Error installing gromacs on Solaris 9

linux at eblackprint.com linux at eblackprint.com
Tue Dec 9 07:40:01 CET 2003


Hi all,

I've managed to successfully compile mpi gromacs on Solaris 9 but
installation fails. The following is the output of the error. From past
posts in this thread, the error lies with Solaris "sh" shell being different
from the "standard" and the solution is to do a "make install" in each
subdirectory. My question is, does anyone has a updated Makefile for
Solaris? Or can someone guide a unix noob here how to modify the Makefile?
and what does the following line actually do:

  (cd $libdir && test -e $libname.a -a ! -e $nompi.a && ln -s $libname.a
$nompi.a ; exit 0);
  (cd $libdir && test -e $libname.so -a ! -e $nompi.so && ln -s $libname.so
$nompi.so ; exit 0);


Thanks.

John


# make install
Making install in src
make[1]: Entering directory `/home/gepadmin/gromacs/gromacs-3.1.4/src'
Making install in gmxlib
make[2]: Entering directory `/home/gepadmin/gromacs/gromacs-3.1.4/src/gmxlib'
make[3]: Entering directory `/home/gepadmin/gromacs/gromacs-3.1.4/src/gmxlib'
/bin/sh ../../config/mkinstalldirs
/usr/local/gromacs/sparc-sun-solaris2.9/lib /bin/sh ../../libtool --mode=install ../../config/install-sh -c
libgmx_mpi_d.la /usr/local/gromacs/sparc-sun-solaris2.9/lib/libgmx_mpi_d.la
../../config/install-sh -c .libs/libgmx_mpi_d.lai
/usr/local/gromacs/sparc-sun-solaris2.9/lib/libgmx_mpi_d.la
../../config/install-sh -c .libs/libgmx_mpi_d.a
/usr/local/gromacs/sparc-sun-solaris2.9/lib/libgmx_mpi_d.a
ranlib /usr/local/gromacs/sparc-sun-solaris2.9/lib/libgmx_mpi_d.a
chmod 644 /usr/local/gromacs/sparc-sun-solaris2.9/lib/libgmx_mpi_d.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/gromacs/sparc-sun-solaris2.9/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
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make  install-exec-hook
make[4]: Entering directory `/home/gepadmin/gromacs/gromacs-3.1.4/src/gmxlib'
libname="libgmx_mpi_d"; \
nompi="`echo $libname | sed -e 's,_mpi,,'`"; \
libdir="/usr/local/gromacs/sparc-sun-solaris2.9/lib"; \
if echo $libname | grep mpi >/dev/null ; then \
  (cd $libdir && test -e $libname.a -a ! -e $nompi.a && ln -s $libname.a
$nompi.a ; exit 0); \
  (cd $libdir && test -e $libname.so -a ! -e $nompi.so && ln -s $libname.so
$nompi.so ; exit 0); \
fi;
/bin/sh: test: unknown operator libgmx_mpi_d.a
/bin/sh: test: unknown operator libgmx_mpi_d.so
make[4]: *** [install-exec-hook] Error 1
make[4]: Leaving directory `/home/gepadmin/gromacs/gromacs-3.1.4/src/gmxlib'
make[3]: *** [install-exec-am] Error 2
make[3]: Leaving directory `/home/gepadmin/gromacs/gromacs-3.1.4/src/gmxlib'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/gepadmin/gromacs/gromacs-3.1.4/src/gmxlib'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/gepadmin/gromacs/gromacs-3.1.4/src'
make: *** [install-recursive] Error 1
#






More information about the gromacs.org_gmx-users mailing list