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

Stephen P. Molnar s.molnar at sbcglobal.net
Fri May 1 19:53:41 UTC 2015



On 05/01/2015 02:14 AM, Ralf Mardorf wrote:
> 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
>
>
Thanks for your reply.

Here is what I have added to .bashrc:

LD_LIBRARY_PATH="/opt/mopac/MOPAC2012.exe:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
alias mopac='/opt/mopac/MOPAC2012.exe'

This was suggested by Jimmy Stewart, the MOPAC author and maintainer.

This works in Debian 8.00 that I'm also running in another VM on my 
laptop as a test bed before updating my main Linux computer.-- Stephen 
P. Molnar, Ph.D. Life is a fuzzy set www.FoundationForChemistry.com 
Stochastic and multivarate (614)312-7528 (c) Skype: smolnar1




More information about the xubuntu-users mailing list