使用 tarantool 版本:从 epel 安装的 Tarantool 1.6.8-586-g504e151。我想为 mysql 安装驱动程序,在 github 上试试这个指令:https ://github.com/tarantool/mysql
git clone mysql.git tarantool-mysql
- 好的cd tarantool-mysql
-好的cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo
- 这一步失败
cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo -- The C compiler identification is GNU 4.4.7 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- INCLUDE_DIR TARANTOOL_INCLUDE_DIR-NOTFOUND -- PREFIX CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108
(消息):找不到 TARANTOOL(缺少:TARANTOOL_INCLUDE_DIR)调用堆栈(最近调用优先):/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) cmake/FindTarantool.cmake:29 (find_package_handle_standard_args) CMakeLists .txt:11 (find_package)
我怎么能指定TARANTOOL dir
?
我也尝试通过 luarocks 安装,但也没有成功:
luarocks install
https://raw.githubusercontent.com/tarantool/mysql/master/mysql-scm-1.rockspec --local
Using https://raw.githubusercontent.com/tarantool/mysql/master/mysql-scm-1.rockspec... switching to 'build' mode
错误:找不到预期的文件 mysql/mysql.h 或 mysql/mysql.h 用于 MYSQL - 您可能必须在系统中安装 MYSQL 和/或将 MYSQL_DIR 或 MYSQL_INCDIR 传递给 luarocks 命令。示例: luarocks install mysql MYSQL_DIR=/usr/local
聚苯乙烯
yum install libmysqlclient-dev tarantool-dev
467 packages excluded due to repository priority protections
Setting up Install Process
No package libmysqlclient-dev available.
No package tarantool-dev available.
Error: Nothing to do