Hugin will not start; missing library libImath.so.2

Bug #298181 reported by Matthew Woerly
6
Affects Status Importance Assigned to Milestone
hugin (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: hugin

I'm using Intrepid with hugin_0.7.0~svn3191+beta5-2ubuntu1, running x86_64
When I try to run hugin, it gives me:
hugin: error while loading shared libraries: libImath.so.2: cannot open shared object file: No such file or directory
As far as I can tell, I have that library installed through openexr, and I've tried removing and reinstalling both that and all hugin packages, but it still refuses to start.

Revision history for this message
Joel Oliver (joelol75) wrote :

Check /usr/lib for the libImath.so.2 file

If it doesn't exist, but a file like libimath.so.2.0.2 or similar exists, create a symbolic link to it. Post back is the link is missing but the file is there.

the command would be:

sudo ln -s /usr/lib/libImath.so.2.0.x /usr/lib/libImath.so.2

substitute the x with the version that does exist... May be a bug in creating the symbolic link on install.

Revision history for this message
StefanPotyra (sistpoty) wrote :

Hi,

just a quick note, the solution from JoelOl75 is a bad advice, please don't follow it.

Thanks,
       Stefan (currently trying to find the real issue).

Revision history for this message
Matthew Woerly (nattgew) wrote :

Thanks for the comments... any reason why linking the library is a bad idea? That's what I was going to do, but I didn't know where it needed to be.

Revision history for this message
StefanPotyra (sistpoty) wrote :

Well, if any program needs that libIMath.so.2, you'd eventually break it with it. Granted, if that link *doesn't* exist on your system, I doubt it will break anything.

Revision history for this message
Joel Oliver (joelol75) wrote :

Hardy up to date on x64 has libImath.so.2 and IS linked to libImath.so.2.0.2

joel@serveftp4:/usr/lib$ ls -la libImath*
lrwxrwxrwx 1 root root 17 2008-05-14 16:14 libImath.so.2 -> libImath.so.2.0.2
-rw-r--r-- 1 root root 22096 2007-12-07 18:42 libImath.so.2.0.2

Now, I do have an Intrepid install and it has Hugin installed. Hugin runs fine on it, but is 32 bit. Interestingly there isn't any libImath.so.2, but there IS a libImath.so.6 which is linked to libImath.so.6.0.0

I don't understand why checking for a library and making sure it's properly linked and manually fixing it would break anything at all, as long as you link it correctly versionwise and don't misspell it.

Any "damage" can easily be reversed by deleting the link if improperly done.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Can you test with the version in my ppa? It's final 0.7.0 version, and it fixed a lot of bugs already.

If it works, I will push it to Jaunty, and backport it to Intrepid.

Thanks,
Fabrice

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

By the way, the url of my ppa is http://ppa.launchpad.net/fabricesp/ubuntu

Changed in hugin:
status: New → Incomplete
Revision history for this message
Matthew Woerly (nattgew) wrote :

I tried updating to that version, and I still get the same error.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Can you post the result of the following commands:
 apt-cache showpkg hugin
 apt-cache showpkg libilmbase-dev

Revision history for this message
Matthew Woerly (nattgew) wrote :
Revision history for this message
Matthew Woerly (nattgew) wrote :
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Can you try to completely uninstall hugin with
sudo apt-get purge hugin

remove dependencies with
sudo apt-get autoremove

and reinstall hugin with
sudo apt-get install hugin

If still failing, please send the result of the commands:
type hugin
ldd /usr/bin/hugin
hugin (to run hugin from command line)

Something is wrong in your system. Let see if we can find what that way.

Revision history for this message
Matthew Woerly (nattgew) wrote :

$ type hugin
hugin is hashed (/usr/local/bin/hugin)

$ hugin
hugin: error while loading shared libraries: libImath.so.2: cannot open shared object file: No such file or directory

I noticed that the type gave a different path from the one you ran ldd on. I tried running it from there and got

$ /usr/bin/hugin
/usr/bin/hugin: symbol lookup error: /usr/local/lib/libhuginvigraimpex.so.0.0: undefined symbol: _ZN4half5_eLutE

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

This is because you compiled hugin from source (that's why the path is /usr/local/bin), and installed it. That's what screw everything (you can see that the legal installation is using at least a lib from /usr/local/lib).
Can you uninstall it and reinstall the regular version with synaptic?

Revision history for this message
Matthew Woerly (nattgew) wrote :

You're probably right... I don't know how to uninstall it short of deleting stuff from /usr/local or reinstalling the OS...

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

If you still have the original sources, you can try with make uninstall (have a look at MAkefile file to have an idea).
Anyway, the problem doesn't come from Ubuntu package, so I close this bug.

Changed in hugin:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.