2016-03-30 18 views
0

tarantoolのバージョンを使用してください:Tarantool 1.6.8-586-g504e151 epelからインストールされています。 私はMySQL用のドライバをインストールしたい、githubの上でこの命令を試してみてください。https://github.com/tarantool/mysqltarantoolのmysqlドライバをインストールできない

  1. git clone mysql.git tarantool-mysql - OK
  2. cd tarantool-mysql -OK
  3. cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo - THIS STEP
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 

(message): Could NOT find TARANTOOL (missing: TARANTOOL_INCLUDE_DIR) Call Stack (most recent call first): /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 

Error: Could not find expected file mysql/mysql.h, or mysql/mysql.h for MYSQL -- you may have to install MYSQL in your system and/or pass MYSQL_DIR or MYSQL_INCDIR to the luarocks command. Example: luarocks install mysql MYSQL_DIR=/usr/local

P.P.S.

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 

答えて

0
  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/tarantool"のファイルです。
関連する問題