[Octopus-users] problem- compiling octopus 3.0.0
Emily
listemily at eml.cc
Thu Jul 31 21:33:40 WEST 2008
Honestly, I'm not an expert in this, but I'll try to help you.
First, you can check for yourself which gsl version is running with the
command
gsl-config --version
It does say here that it wants version 1.9, though last time I installed
octopus, version 1.5 was enough.
Second, you can try for yourself to compile a simple program that links
a gsl library. Make a file called test.c as follows:
#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>
int
main (void)
{
double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}
Compile it with:
gcc test.c -lgsl -lgslcblas -lm
Then run:
ldd a.out
This will tell you which libraries are your program has linked to. You
should get something like:
libgsl.so.0 => /usr/lib/libgsl.so.0 (0x00d18000)
libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0x00ca9000)
libm.so.6 => /lib/tls/libm.so.6 (0x00655000)
libc.so.6 => /lib/tls/libc.so.6 (0x00876000)
/lib/ld-linux.so.2 (0x00a55000)
and if you run ./a.out you should get
J0(5) = -1.775967713143382920e-01
If you can't link a program yourself in this way, the problem lies with
gsl, and you can try to fix that, maybe reinstall it, or uninstall an
earlier version, or fix the library paths. If you know the path to the
library you can try giving it to the compiler with -L:
gcc -L/usr/local/lib test.o -lgsl -lgslcblas -lm
Try looking at
http://www.gnu.org/software/gsl/manual/html_node/Using-the-library.html
.
If the gcc and ldd commands I suggested work okay, I don't really know
what you should do, except report back to the octopus users group, and
hopefully somebody else will help you!
:) Emily
----- Original message -----
From: "pratik dhuvad" <pratik_8mar at yahoo.com>
To: "Emily" <listemily at eml.cc>
Cc: "octopus forum" <octopus-users at tddft.org>
Date: Thu, 31 Jul 2008 22:05:54 +0530 (IST)
Subject: Re: [Octopus-users] problem- compiling octopus 3.0.0
Thank you very much for your suggestion. but still it encounters
the same problem...
part of configure output is
-----------------------------------------------------------------------------------------------------------
**********************************************
*** octopus + utilities will be generated
**********************************************
checking for sgemm in -L/opt/intel/mkl/10.0.1.014/lib/32/libmkl_ia32
-lguide -lpthread... no
checking for sgemm... no
checking for ATL_xerbla in -latlas... no
checking for sgemm in -lmkl_ia32... no
checking for sgemm in -lmkl_def... no
checking for sgemm in -lblas... no
checking for sgemm in -lblas... no
checking for sgemm in -lgoto... no
checking for sgemm in -lmkl... yes
checking for cheev in ... yes ()
checking for gsl-config... /usr/local/bin/gsl-config
checking for GSL - version >= 1.9.... no
*** Could not run GSL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GSL or finding the wrong
*** version of GSL. If it is not finding GSL, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to
point
*** to the installed location Also, make sure you have run ldconfig if
that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it,
although
*** you may also be able to get things to work by modifying
LD_LIBRARY_PATH
configure: error: could not find required gsl library
--------------------------------------------------------------------------------------------------------------
----- Original Message ----
From: Emily <listemily at eml.cc>
To: pratik dhuvad <pratik_8mar at yahoo.com>; octopus users group
<octopus-users at tddft.org>
Sent: Thursday, 31 July, 2008 9:26:41 AM
Subject: Re: [Octopus-users] problem- compiling octopus 3.0.0
Notice that when it says its checking for gsl-config it is trying to use
the path /usr/local//bin/gsl-config. It should not have two slashes in
the path. So instead of
--with-gsl-prefix="/usr/local/"
use
--with-gsl-prefix="/usr/local"
That at least will help you get past the gsl problem.
Good luck,
Emily
----- Original message -----
From: "pratik dhuvad" <pratik_8mar at yahoo.com>
To: octopus-users at tddft.org
Date: Thu, 31 Jul 2008 17:08:09 +0530 (IST)
Subject: [Octopus-users] problem- compiling octopus 3.0.0
Dear Octopus users
I am trying to compile octopus-3.0.0 on x86_64 arch with
intel-mkl 10.0 I have compiled gsl-1.9 with ifort and icc
compilers. but some how i get error message like this
----------------------------------------------------------------------------------------
checking for gsl-config... /usr/local//bin/gsl-config
checking for GSL - version >= 1.0... no
*** Could not run GSL test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GSL or finding the wrong
*** version of GSL. If it is not finding GSL, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to
point
*** to the installed location Also, make sure you have run ldconfig if
that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it,
although
*** you may also be able to get things to work by modifying
Thanks in advance..
Pratik Dhuvad
Research Student
M S University of Baroda
India
Unlimited freedom, unlimited storage. Get it now, on
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
Download prohibited? No problem. CHAT from any browser, without
download. Go to http://in.webmessenger.yahoo.com/
More information about the Octopus-users
mailing list