1

使用 tarantool 版本:从 epel 安装的 Tarantool 1.6.8-586-g504e151。我想为 mysql 安装驱动程序,在 github 上试试这个指令:https ://github.com/tarantool/mysql

  1. git clone mysql.git tarantool-mysql- 好的
  2. cd tarantool-mysql-好的
  3. 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
4

1 回答 1

1
  1. libmysqlclient-dev 是 Ubuntu 上的合适名称,但由于您提到 epel,我猜您可能想尝试安装 mysql-devel。(不同的发行版,不同的命名约定。)
  2. 在我的机器上“cmake .-DMYSQL_INCLUDE_DIR=mysql-include-directory”似乎可以工作,但没有记录。但是,如果您安装到默认目录,则不需要它。有时“mysql_config --include”会告诉你mysql.h在哪里。
  3. Tarantool 手册建议首先你应该在 Ubuntu http://tarantool.org/doc/book/app/d-plugins.html上安装 tarantool-dev 但我再次猜测你想要一个像这样的对 epel 更友好的包: https ://pkgs.org/centos-7/epel-x86_64/tarantool-devel-1.6.8.530-2.el7.x86_64.rpm.html—— 你会注意到它有“/usr/include”的文件/塔兰工具”。
于 2016-04-25T20:47:22.397 回答