[gmx-developers] [Patch] Gromacs 4.5.1 installs libraries to wrong directory on 64bit
Sander Pronk
pronk at cbr.su.se
Thu Oct 7 16:55:19 CEST 2010
Hi Klaus,
>
> With my proposed patch you get it right for RPM based Linux and can
> override it by setting the LIB environment variable when calling cmake.
That's a good point and I've committed the checking for the LIB environment variable.
I've also committed the LD_LIBRARY_PATH checking patch.
Thanks!
However, so far, I've kept the default to be %{prefix}/lib, because it works on:
- any dpkg-based system
- Mac OS X
- BSD-based systems
- cygwin
- Solaris (for whatever that's worth)
on any architecture.
and worse, %prefix/lib64 is *incompatible* with 3 out of the 5 systems mentioned above. Not to mention architectures like IA64 which are 64-bit but don't even have /usr/lib64 on RPM based systems.
Sander
On 7 Oct 2010, at 16:13 , Klaus Kaempf wrote:
> * Sander Pronk <pronk at cbr.su.se> [Oct 07. 2010 13:59]:
>
>> I'm not so sure about that: the actual library location is distribution and OS specific: rpm-based distributions appear to have all of their 64-bit libraries in /usr/lib64, while dpkg-based distributions have 64-bit libraries in /usr/lib. Mac OS has no /usr/lib64 at all, and OpenSolaris has /usr/lib/64.
>
> I absolutely agree on the library path being OS specific. However, the
> current cmake setup only allows %{prefix}/lib which apparently is only
> right for 32bit Linux and dpkg.
>
> With my proposed patch you get it right for RPM based Linux and can
> override it by setting the LIB environment variable when calling cmake.
>
> Klaus
> ---
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
>
> --
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.
More information about the gromacs.org_gmx-developers
mailing list