我安装了tarantool(tarantool_box)和tarantool-client.我可以开始tarantool了
/usr/bin/tarantool_box --background
Run Code Online (Sandbox Code Playgroud)
但是当我尝试连接到服务器时
/usr/bin/tarantool
Run Code Online (Sandbox Code Playgroud)
我只看到管理控制台
localhost>
Run Code Online (Sandbox Code Playgroud)
并且只能使用一些命令和类似SQL的查询.我不能使用用户指南中的任何命令,几乎所有以lua失败开头的命令:
lua console = require('console')
---
error: 'Lua error: [string "local console = require(''console'')"]:1: attempt to call global ''require'' (a nil value)'
...
Run Code Online (Sandbox Code Playgroud)
解决方案,针对干净的 Debian wheezy,在 tarantool github 上找到https://github.com/tarantool/tarantool
sudo apt-get update
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
更新后
sudo apt-get install git
sudo apt-get install build-essential
sudo apt-get install libreadline-dev
sudo apt-get install cmake
sudo git clone https://github.com/tarantool/tarantool
cd ./tarantool
sudo git submodule update --init --recursive
sudo cmake .
sudo make
Run Code Online (Sandbox Code Playgroud)
构建后
sudo ./tarantool/src/tarantool
Run Code Online (Sandbox Code Playgroud)