Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start tarantool console?

Tags:

lua

tarantool

I've installed tarantool (tarantool_box) and tarantool-client. I can start tarantool

/usr/bin/tarantool_box --background

but when I try to connect to server

/usr/bin/tarantool

I see only admin console

localhost>

and can only use some commands and sql-like queries. I can not use any of commands from user guide, and almost all commands which start with lua fail:

lua console = require('console')
---
error: 'Lua error: [string "local console = require(''console'')"]:1: attempt to call global ''require'' (a nil value)'
...
like image 377
Ivan Ivanov Avatar asked Nov 03 '15 07:11

Ivan Ivanov


1 Answers

Solution, for clean Debian wheezy, found on tarantool github https://github.com/tarantool/tarantool

sudo apt-get update
sudo apt-get upgrade

after update

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

after build

sudo ./tarantool/src/tarantool
like image 59
Ivan Ivanov Avatar answered Oct 02 '22 01:10

Ivan Ivanov