【问题标题】:Can't install driver for mysql for tarantool无法为 tarantool 安装 mysql 驱动程序
【发布时间】:2016-04-26 04:47:22
【问题描述】:

使用tarantool版本:Tarantool 1.6.8-586-g504e151 从 epel 安装。 我想为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

【问题讨论】:

    标签: mysql tarantool


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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-04
      相关资源
      最近更新 更多