[Maria-discuss] Specifying install libdir when building from source
Good morning. I have a simple question, but haven’t been able to find the answer searching or in cmake -LH output. How do I configure the install paths for libraries? By default, as expected, it installs into /usr/lib, but I want to install into /usr/lib64. Assuming there isn’t an easy “just do that” flag, can I set the library path used to install? I’m much more familiar with autoconf/configure than with cmake. Thanks for your help. - Chris
Hi, Chris! On Jul 06, Chris Ross (cross2) wrote:
Good morning. I have a simple question, but haven’t been able to find the answer searching or in cmake -LH output. How do I configure the install paths for libraries? By default, as expected, it installs into /usr/lib, but I want to install into /usr/lib64. Assuming there isn’t an easy “just do that” flag, can I set the library path used to install?
-DINSTALL_LIBDIR=/usr/lib64 Are you building a binary tarball? RPM/DEB packages automatically use /usr/lib64 if needed. see cmake/install_layout.cmake - may be rpm or deb layout will work better for you. Regards, Sergei VP of MariaDB Server Engineering and security@mariadb.org
Hi! On 7/6/20, 10:36, "Sergei Golubchik" <serg@mariadb.org> wrote: Hi, Chris! On Jul 06, Chris Ross (cross2) wrote: > ... I want to install into /usr/lib64. Assuming there > isn’t an easy “just do that” flag, can I set the library path used to > install? -DINSTALL_LIBDIR=/usr/lib64 Are you building a binary tarball? RPM/DEB packages automatically use /usr/lib64 if needed. see cmake/install_layout.cmake - may be rpm or deb layout will work better for you. Thanks. Hmm, okay, I see that now. I was using STANDALONE, as you guessed. Maybe RPM would suit me better. Does that try to build an RPM, or just adjust the install paths? Maybe that would be better... Thanks! - Chris
Hi, Chris! On Jul 06, Chris Ross (cross2) wrote:
Hi!
On 7/6/20, 10:36, "Sergei Golubchik" <serg@mariadb.org> wrote:
Hi, Chris!
On Jul 06, Chris Ross (cross2) wrote: > ... I want to install into /usr/lib64. Assuming there > isn’t an easy “just do that” flag, can I set the library path used to > install?
-DINSTALL_LIBDIR=/usr/lib64
Are you building a binary tarball? RPM/DEB packages automatically use /usr/lib64 if needed.
see cmake/install_layout.cmake - may be rpm or deb layout will work better for you.
Thanks. Hmm, okay, I see that now. I was using STANDALONE, as you guessed. Maybe RPM would suit me better. Does that try to build an RPM, or just adjust the install paths? Maybe that would be better...
To build an RPM you need to specify -DRPM=distro (e.g. -DRPM=centos7). If you only specify -DINSTALL_LAYOUT=RPM it'll be just that, only install layout. Regards, Sergei VP of MariaDB Server Engineering and security@mariadb.org
participants (2)
-
Chris Ross (cross2)
-
Sergei Golubchik