Trouble compiling with h5c++

Hello,

I am having trouble compiling with h5c++. I have no problem installing
HDF5, and i compile with ./configure --enable-cxx. However, once it is
installed I try to use my makefile to compile my code it gives an error:
"make: h5c++: Command not found."

When I type h5c++ into the terminal I recieve: " The program 'h5c++' is
currently not installed. You can install it by typing: sudo apt-get
install hdf5-tools".

I proceeded to install hdf5-tools, and h5c++ now seems to work, but it
can't find any of my hdf5 libraries. I didn't change any of the directory
locations or anything.

I am fairly new at all of this, any suggestions are helpful. Thank you.

Dear Tanner KAPTANOGLU,

In what prefix is installed your version of hdf5? The prefix is the path, like
"/usr/local" under which a program will install in the /usr/local/bin,
/usr/local/lib, etc directories.

You need to make sure that $PREFIX/bin is in your PATH, that $PREFIX/lib in your
LD_LIBRARY_PATH, etc.

If you work under linux, which seems to be the case (apt-get), you might just
install an extra package for c++, "libhdf5-cpp", you can find the exact name of
the package by typing

apt-cache search libhdf5-cpp

The alternative is to use your own compiled version of HDF5 and for that you
need to set up properly your environment (see PATH and LD_LIBRARY_PATH).

summary: either
1. undo your manual installation and install libhdf5-cpp
2. set up your environment for your manual installation (google finds this page
that is a very short explanation
http://taopm.sourceforge.net/docs/online_userman/UserManual_13.html )

Regards,

Pierre

···

On Thu, Jul 31, 2014 at 03:12:57PM -0400, Tanner KAPTANOGLU wrote:

Hello,

I am having trouble compiling with h5c++. I have no problem installing
HDF5, and i compile with ./configure --enable-cxx. However, once it is
installed I try to use my makefile to compile my code it gives an error:
"make: h5c++: Command not found."

When I type h5c++ into the terminal I recieve: " The program 'h5c++' is
currently not installed. You can install it by typing: sudo apt-get
install hdf5-tools".

I proceeded to install hdf5-tools, and h5c++ now seems to work, but it
can't find any of my hdf5 libraries. I didn't change any of the directory
locations or anything.

I am fairly new at all of this, any suggestions are helpful. Thank you.

Pierre,

Thank you very much. I needed to change my .bashrc to
properly set up PATH and LD_LIBRARY_PATH. All is working
now.

···

On Fri, Aug 1, 2014 at 9:31 AM, Pierre de Buyl < pierre.debuyl@chem.kuleuven.be> wrote:

Dear Tanner KAPTANOGLU,

In what prefix is installed your version of hdf5? The prefix is the path,
like
"/usr/local" under which a program will install in the /usr/local/bin,
/usr/local/lib, etc directories.

You need to make sure that $PREFIX/bin is in your PATH, that $PREFIX/lib
in your
LD_LIBRARY_PATH, etc.

If you work under linux, which seems to be the case (apt-get), you might
just
install an extra package for c++, "libhdf5-cpp", you can find the exact
name of
the package by typing

apt-cache search libhdf5-cpp

The alternative is to use your own compiled version of HDF5 and for that
you
need to set up properly your environment (see PATH and LD_LIBRARY_PATH).

summary: either
1. undo your manual installation and install libhdf5-cpp
2. set up your environment for your manual installation (google finds this
page
that is a very short explanation
http://taopm.sourceforge.net/docs/online_userman/UserManual_13.html )

Regards,

Pierre

On Thu, Jul 31, 2014 at 03:12:57PM -0400, Tanner KAPTANOGLU wrote:
> Hello,
>
> I am having trouble compiling with h5c++. I have no problem installing
> HDF5, and i compile with ./configure --enable-cxx. However, once it is
> installed I try to use my makefile to compile my code it gives an error:
> "make: h5c++: Command not found."
>
> When I type h5c++ into the terminal I recieve: " The program 'h5c++' is
> currently not installed. You can install it by typing: sudo apt-get
> install hdf5-tools".
>
> I proceeded to install hdf5-tools, and h5c++ now seems to work, but it
> can't find any of my hdf5 libraries. I didn't change any of the directory
> locations or anything.
>
> I am fairly new at all of this, any suggestions are helpful. Thank you.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@lists.hdfgroup.org

http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5