[xubuntu-users] [Bulk] Re: Problem with Alias

Ralf Mardorf ralf.mardorf at rocketmail.com
Fri May 1 06:14:00 UTC 2015


On Thu, 30 Apr 2015 10:12:04 -0400, Stephen P. Molnar wrote:
>The above only works in /opt/mopac, and no other directories.

That's what /opt/ is for, the "executable" might use it's own lib.
Is there a directory in /opt/mopac/ including libiomp5.so?

Assumed it should really use a shared library from /usr/lib/, you might
need exactly that version, what ever the version might be. You can try
to link against the available version.

On Thu, 30 Apr 2015 13:14:32 -0400, Stephen P. Molnar wrote:
>error while loading shared libraries: 
>libiomp5.so: cannot open shared object file: No such file or directory

"File list of package libiomp5 in trusty of architecture amd64

/usr/lib/libiomp5.so.5
/usr/share/doc/libiomp5/changelog.Debian.gz
/usr/share/doc/libiomp5/copyright
/usr/share/lintian/overrides/libiomp5" -
http://packages.ubuntu.com/trusty/amd64/libiomp5/filelist

$ cd /usr/lib/
$ sudo ln -s libiomp5.so.5 libiomp5.so

JFTR, it's uncommon to name a Linux bin *.exe and it's also uncommon to
link against the *.so for runtime.

On another Linux I for example use

$ ls -hAl /usr/lib/libvpx*
lrwxrwxrwx 1 root root   15 Apr 18 12:41 /usr/lib/libvpx.so -> libvpx.so.2.0.0
lrwxrwxrwx 1 root root   20 Apr 24 07:51 /usr/lib/libvpx.so.1 -> /lib/libvpx.so.1.3.0
lrwxrwxrwx 1 root root   20 Apr 24 07:51 /usr/lib/libvpx.so.1.3 -> /lib/libvpx.so.1.3.0
-rwxr-xr-x 1 root root 1.7M Dec  7  2013 /usr/lib/libvpx.so.1.3.0
lrwxrwxrwx 1 root root   15 Apr 18 12:41 /usr/lib/libvpx.so.2 -> libvpx.so.2.0.0
lrwxrwxrwx 1 root root   15 Apr 18 12:41 /usr/lib/libvpx.so.2.0 -> libvpx.so.2.0.0
-rwxr-xr-x 1 root root 2.0M Apr 18 12:41 /usr/lib/libvpx.so.2.0.0

/usr/lib/libvpx.so is only used when compiling. You can expect that at
runtime libvpx.so.* is used, usually the major version.
SONAME does show.

$ objdump -p /usr/lib/lib*.so* | grep SONAME

You can check what's needed by

$ objdump -p /usr/lib/*.so | grep NEEDED





More information about the xubuntu-users mailing list