Comment 2 for bug 877793

Revision history for this message
goutam kodu (goutam-hplip) wrote :

Hi Richard,

Thank you for the terminal output.
The problem with Ubuntu 11.10 x86_64 bit is that they dont have a softlink between /usr/lib64 to /usr/lib. Where as in previous versions of Ubuntu (10.10 & 11.04) x86_64 bit there was a softlink between them.
HPLIP installer copies the libhpmud.* file in the /usr/lib64 directory and when "import hpmudext " is called from the status.py file it tries to look for the library in /usr/lib/ directory by default and hence it reports ,
ImportError: libhpmud.so.0: cannot open shared object file: No such file or directory

/usr/lib64 path is not set in LD_LIBRARY_PATH (env variable) by default hence is ends up looking for the library in /usr/lib/ (Which is something OS has to take care)

You can launch a query about this to Ubuntu.
What is i can provide is only a work around.

Open terminal and type in the below command:
"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/"

Next run the command : "hp-setup" and check if it imports the library libhpmud.so.0

This is a temporary solution . The environment variable LD_LIBRARY_PATH is set until the terminal in not closed. To have this variable permanently set you need to edit the file .bashrc present in your home folder ($HOME).
Go to you home directory ( $cd ~)
edit the file .bashrc ( $vim .bashrc)
enter the below lines at the end of the file and save it and close it

LD_LIBRARY_PATH = $LD_LIBRARY_PATH:/usr/lib64/
export LD_LIBRARY_PATH

After that restart your system and check running "hp-setup"
Let us know on the same,

Thanks,
Kodu