From: Kenneth Brun Nielsen on
Hi all,

I'm trying to install http://ab-initio.mit.edu/wiki/index.php/H5utils,
but while configuring ( ./configure) I get the error:

"configure: error: hdf5 libraries are required for compilation"

I am pretty sure, I already installed the HDF5 library (from the link
at the same site), but I guess I should "tell" the H5utils where it is
installed (?)

Can someone give me a crash course on how these dependencies work?

Best regards,
Kenneth
From: Marcel Bruinsma on
Am Mittwoch, 28. Oktober 2009 09:56, Kenneth Brun Nielsen a écrit :

> I'm trying to install http://ab-initio.mit.edu/wiki/index.php/H5utils,
> but while configuring ( ./configure) I get the error:
>
> "configure: error: hdf5 libraries are required for compilation"
>
> I am pretty sure, I already installed the HDF5 library (from the link
> at the same site), but I guess I should "tell" the H5utils where it is
> installed (?)

Add the absolute pathname of the directory were the hdf5 libraries
have been installed to /etc/ld.so.conf (on some systems you may have
to create a new file /etc/ld.so.conf.d/hdf5.conf, wich contains the
path(s)), then run ldconfig(8).

If the error remains, try
./configure LDFLAGS='-L<path-to-hdf5-libraries>'

--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! #
From: Kenneth Brun Nielsen on
On 28 Okt., 11:14, Marcel Bruinsma <m...(a)nomail.afraid.org> wrote:

Thanks Marcel.

> Add the absolute pathname of the directory were the hdf5 libraries
> have been installed to /etc/ld.so.conf (on some systems you may have
> to create a new file /etc/ld.so.conf.d/hdf5.conf, wich contains the
> path(s)), then run ldconfig(8).

But is this "healthy"? What if the libraries affect the performance/
stability of other programs?

> If the error remains, try
>   ./configure LDFLAGS='-L<path-to-hdf5-libraries>'

OK. If I do this and succeed with installation, should I then use the
LD_LIBRARY_PATH variable before program execution?

/Kenneth
From: Marcel Bruinsma on
Am Mittwoch, 28. Oktober 2009 11:40, Kenneth Brun Nielsen a écrit :

> On 28 Okt., 11:14, Marcel Bruinsma <m...(a)nomail.afraid.org> wrote:
>
>> Add the absolute pathname of the directory were the hdf5 libraries
>> have been installed to /etc/ld.so.conf (on some systems you may have
>> to create a new file /etc/ld.so.conf.d/hdf5.conf, wich contains the
>> path(s)), then run ldconfig(8).
>
> But is this "healthy"? What if the libraries affect the performance/
> stability of other programs?

Other programs are not affected. ldconfig updates the cache used
by ld.so(8) (ld-linux.so) to locate libraries. Only libraries needed
by a program are loaded.

>> If the error remains, try
>> ./configure LDFLAGS='-L<path-to-hdf5-libraries>'
>
> OK. If I do this and succeed with installation, should I then use the
> LD_LIBRARY_PATH variable before program execution?

Yes, that should work too. (If necessary, use 'ldd -v path-to-program'
to see which libraries a program needs.)

If the hdf5 lib is below your home directory, use LD_LIBRARY_PATH.

--
printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \
156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\)
# Live every life as if it were your last! #
From: Vítor De Araújo on
On Wed, 28 Oct 2009 01:56:46 -0700 (PDT)
Kenneth Brun Nielsen <kenneth.brun.nielsen(a)googlemail.com> wrote:

> I am pretty sure, I already installed the HDF5 library (from the link
> at the same site), but I guess I should "tell" the H5utils where it is
> installed (?)

Perhaps you haven't installed the development (header) files...

--
Vítor De Araújo