Today, I tried to follow the same procedures to install GHMM in my another Ubuntu and Debian system on another two PCs, but got some problems.
After installing the GHMM as well as the Python bindings, I imported ghmm in iPython but got errors:
ImportError: libghmm.so.1: cannot open shared object file: No such file or directory
I tried to find out whether libghmm.so.1 was installed by using
$ sudo updatedb
$ locate libghmm.so.1
The messages indicated that the libghmm.so.1 had been in my system, but the Python somehow couldn't find it. So there must be some setting needed to make it work.
There have been some discussions in the mailing lists of GHMM as follows.
[Ghmm-list] cant find _ghmmwrapper
[Ghmm-list] ImportError: libghmm.so.1 ...
With the above information, I add the LD_LIBRARY_PATH into .bashrc as
It works. :-)
Some information found during my solution-searching:
- Understanding imports and PYTHONPATH
- Program Library HOWTO
- LD_LIBRARY_PATH Is Not The Answer
- Why LD_LIBRARY_PATH is bad
memo (090923): I found the libghmm.so.1 file has been in the path of ``/usr/lib/'' instead of ``/usr/local/lib/'' in the first Ubuntu PC which has ghmm installed without any problem. Therefore I tried to cp the libghmm.so.1 file into the path of /usr/lib/ for the other two PCs and everything is okay now.