[MCOL-1225] LD_LIBRARY_PATH not set correctly in centos6 non-root install Created: 2018-02-20  Updated: 2020-08-24  Resolved: 2020-08-24

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 1.1.2, 1.1.3
Fix Version/s: 1.2.5

Type: Bug Priority: Minor
Reporter: Ben Thompson (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 1
Labels: None

Sprint: 2018-05, 2018-06, 2018-07, 2018-08, 2018-09, 2018-10, 2018-11, 2018-12, 2018-13, 2018-14, 2018-15, 2018-16, 2018-17, 2018-18, 2018-19, 2018-20, 2018-21

 Description   

running the installation tests for non-root distributed multi-node, this error is observed in PM2:

/home/guest/mariadb/columnstore/bin/columnstore restart
/home/guest/mariadb/columnstore/bin/getConfig: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory
/home/guest/mariadb/columnstore/bin/getConfig: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory

guest user on PM2 has this incorrect setting in env:
LD_LIBRARY_PATH=/home/guest/mariadb/columnstore/lib:/home/guest/mariadb/columnstore/mysql/lib/mysql



 Comments   
Comment by Daniel Lee (Inactive) [ 2018-02-21 ]

In 1.1.3-1, the following installations failed due to this issue:

Failed /home/dlee/tests/1.1.3-1/centos6/guest.bin.1um2pm.localquery.d.s1
Failed /home/dlee/tests/1.1.3-1/centos6/guest.bin.2pm.combo.d.s1
Failed /home/dlee/tests/1.1.3-1/centos6/guest.bin.1um2pm.glusterfs.d.s1
Failed /home/dlee/tests/1.1.3-1/debian8/guest.bin.1um2pm.localquery.d.s1
Failed /home/dlee/tests/1.1.3-1/debian8/guest.bin.2pm.combo.d.s1
Failed /home/dlee/tests/1.1.3-1/debian8/guest.bin.1um2pm.glusterfs.d.s1
Failed /home/dlee/tests/1.1.3-1/debian9/guest.bin.1um2pm.localquery.d.s1
Failed /home/dlee/tests/1.1.3-1/ubuntu16/guest.bin.2pm.combo.d.s1
Failed /home/dlee/tests/1.1.3-1/ubuntu16/guest.bin.1um2pm.glusterfs.d.s1

Comment by David Hill (Inactive) [ 2018-03-07 ]

https://github.com/mariadb-corporation/mariadb-columnstore-engine/pull/427

so post-install and module_installer.sh changed to fix the reported issue.
But other files needed to be updated to be insync

Comment by Daniel Lee (Inactive) [ 2018-12-19 ]

Build tested: 1.1.7-1 nightly

This issue still exist

[root@localhost ~]# su - guest
[guest@localhost ~]$ env |grep LD_LIB
LD_LIBRARY_PATH=/home/guest/mariadb/columnstore/lib:/home/guest/mariadb/columnstore/mysql/lib/mysql
[guest@localhost ~]$ ma
/home/guest/mariadb/columnstore/bin/mcsadmin: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory

[guest@localhost ~]$ ma
/home/guest/mariadb/columnstore/bin/mcsadmin: error while loading shared libraries: libmariadb.so.3: cannot open shared object file: No such file or directory

Comment by Daniel Lee (Inactive) [ 2020-08-24 ]

Build verified: 1.2.5-1

Generated at Thu Feb 08 02:27:09 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.