2016-03-30 3 views
0

Verwenden Tarantool Version: Tarantool 1.6.8-586-g504e151 Installiert von Epel. möchte ich Treiber für MySQL installieren, versuchen Sie diese Anweisung auf GitHub: https://github.com/tarantool/mysqlKann Treiber für mysql für Tarantool nicht installieren

  1. git clone mysql.git tarantool-mysql - OK
  2. cd tarantool-mysql OK-
  3. cmake . -DCMAKE_BUILD_TYPE=RelWithDebugInfo - FAIL zu diesem Schritt
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)

Wie ich kann TARANTOOL dir angeben?

Ich habe auch versucht über luarocks zu installieren, aber es war auch nicht erfolgreich:

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 

Antwort

0
  1. libmysqlclient-dev ist der entsprechende Name auf Ubuntu, aber da Sie EPEL erwähnen ich denke, man könnte versuchen wollen, anstatt mysql-devel zu installieren. (Verschiedene Distributionen, unterschiedliche Namenskonventionen.)
  2. Auf meinem Rechner scheint "cmake. -DMYSQL_INCLUDE_DIR = mysql-include-directory" zu funktionieren, ist aber nicht dokumentiert. Wenn Sie jedoch im Standardverzeichnis installieren, sollten Sie dies nicht benötigen. Manchmal wird "mysql_config --include" Ihnen sagen, wo sich mysql.h befindet.
  3. Die Tarantool Handbuch schlägt vor, dass zuerst sollten Sie tarantool-dev auf Ubuntu http://tarantool.org/doc/book/app/d-plugins.html aber wieder Ich vermute, Sie wollen eine EPEL freundlichen Paket wie diese installieren: https://pkgs.org/centos-7/epel-x86_64/tarantool-devel-1.6.8.530-2.el7.x86_64.rpm.html - werden Sie feststellen, dass es Dateien für "/ usr/include/tarantool".
Verwandte Themen