If you want to install Sputnik the "standard" way, please see Installation. But that's just one way. There are many other. Here is an outline of the things you'll generally need to do.
1. Setup Lua
One way or another, you'll need Lua 5.1, set up in such a way that it could be used with additional packages. A system wide install of Lua should work, but you'll have to make sure that you can install packages into a place where Lua will find them.
The easiest way to get all of this is to install Kepler (see Installation). But you can install Lua any other way.
2. Setup the necessary packages
You'll need a bunch of Lua modules. The easiest way to install all of them is to use LuaRocks. You can install LuaRocks from http://luarocks.org. You can then install Sputnik using LuaRocks as explained in the Installations.
If you don't want to use LuaRocks, however, you can install all the necessary packages by hand. You will need:
External packages:
plus their dependencies. Follow the documentation for the individual modules.
"Our" packages:
(See Releases for the latest versions of all of those.)
"Our" packages are all pure Lua and all you need to do to "install" them is to put them somewhere where the "lua" directory of each of them would be in your Lua path.
3. Setup a place to store data.
This could simply mean creating a directory (e.g. "/blah/blah/wiki-data") and making it writable by your server.
3. Setup your server scripts
If you use CGI, your CGI script will look roughly like this:
#! /bin/bash /home/yuri/sputnik/bin/wsapi.cgi
require('sputnik')
return sputnik.new_wsapi_run_fn{
VERSIUM_PARAMS = { '/home/yuri/sputnik/wiki-data/' },
BASE_URL = '/usr/lib/cgi-bin/sputnik.cgi',
PASSWORD_SALT = 'dQyceRONUnA2yAB9LwpNxOq22C0NtxCxe1ziIdVs',
TOKEN_SALT = 'rmlPMNPn941wJioBLff5DHsHyRP7UBqbOBRqewEe',
}
(See Basic Configurations for the explanation of the parameters.)
For Xavante or other servers, ask on the Mailing List.