stonedb icon indicating copy to clipboard operation
stonedb copied to clipboard

feature: fix hard code and make install more friendly

Open hustjieke opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe.

Fix hard code on and more friendly in install_scripts/CMakeList.txt

SET (INSTALL_ENGINE "/stonedb57")
SET (ENGINE_MYSQLDIR   "${INSTALL_ENGINE}/install")
install(FILES my.cnf
              DESTINATION ${ENGINE_MYSQLDIR} COMPONENT storage-engine)
install(PROGRAMS mysql_server install.sh reinstall.sh
              DESTINATION ${ENGINE_MYSQLDIR} COMPONENT storage-engine)

in storage/tianmu/CMakeLists.txt

#lihao Here, the dependency libs will be moved to 'third_party' directory.
SET(BOOST_ROOT ${WITH_BOOST})
SET(MARISA_ROOT /usr/local/stonedb-marisa)
SET(ROCKSDB_ROOT /usr/local/stonedb-gcc-rocksdb)

Describe the solution you'd like

Describe alternatives you've considered

Additional context

hustjieke avatar Aug 01 '22 04:08 hustjieke

Add variable defined in cmake, like:

# begin to build
cmake ../../ \
-DCMAKE_BUILD_TYPE=${build_type} \
-DCMAKE_INSTALL_PREFIX=${install_target} \
-DMYSQL_DATADIR=${install_target}/data \
-DSYSCONFDIR=${install_target} \
-DMYSQL_UNIX_ADDR=${install_target}/tmp/mysql.sock \
-DWITH_EMBEDDED_SERVER=OFF \
-DWITH_STONEDB_STORAGE_ENGINE=1 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
...
...

hustjieke avatar Aug 01 '22 04:08 hustjieke

#lihao Here, the dependency libs will be moved to 'third_party' directory.
SET(BOOST_ROOT ${WITH_BOOST})
SET(MARISA_ROOT /usr/local/stonedb-marisa)
SET(ROCKSDB_ROOT /usr/local/stonedb-gcc-rocksdb)

had been resolved in #11

hustjieke avatar Aug 03 '22 03:08 hustjieke