[MCOL-4335] Add absolute path into columnstore-post-install and mariadb-columnstore-start.sh Created: 2020-10-05  Updated: 2021-04-06  Resolved: 2020-10-07

Status: Closed
Project: MariaDB ColumnStore
Component/s: Build
Affects Version/s: 1.5.3
Fix Version/s: 5.4.1

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: David Hall (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MCOL-4669 Syslog does not setup if compiled wit... Closed

 Description   

columnstore-post-install should be fixed to include absolute path to install_mcs_mysql.sh :

-/usr/sbin/install_mcs_mysql.sh --tmpdir=$tmpDir
+@ENGINE_BINDIR@/install_mcs_mysql.sh --tmpdir=$tmpDir

So should mariadb-columnstore-start.sh, to include absolute path to dbbuilder:

-su -s /bin/sh -c 'dbbuilder 7' mysql 1> /tmp/columnstore_tmp_files/dbbuilder.log
+su -s /bin/sh -c '@ENGINE_BINDIR@/dbbuilder 7' mysql 1> /tmp/columnstore_tmp_files/dbbuilder.log

Otherwise, ColumnStore refuses to initialize and start when compiled with a non-default install prefix, e.g.:

cmake .. -DCMAKE_BUILD_TYPE=Debug \
 -DCMAKE_INSTALL_PREFIX=/opt/mariadb-10.5-cs \
 -DPLUGIN_COLUMNSTORE=DYNAMIC
git status


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