2008-12-30 20:32 |
agladysh
Alexander Gladysh <agladysh at gmail.com>
Hi, list!
I'm trying to install Sputnik 8.08.13 on my Ubuntu box as per this guide:
http://sputnik.freewisdom.org/en/Installation
This step fails:
$ ./bin/lua -lluarocks.require -e 'require("sputnik").setup()'
Stack traceback below. Note how it looks for 1.4.0-1, and I have
1.4.1-1 installed by rocks.
/opt/sputnik$ ls rocks/luafilesystem/
1.4.1-1
I've used rocks command from the mentioned wiki page:
$ ./bin/luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth
install sputnik 8.08.13
Traceback from require("sputnik").setup():
./bin/lua: /opt/sputnik/share/lua/5.1/luarocks/require.lua:141: module
'lfs' not found:
no field package.preload['lfs']
no file '/opt/sputnik/rocks//luafilesystem/1.4.0-1/lua/lfs.lua'
no file '/opt/sputnik/rocks//luafilesystem/1.4.0-1/lua/lfs/init.lua'
no file '/opt/sputnik/rocks//sputnik/8.08.13-0/lua/lfs.lua'
no file '/opt/sputnik/rocks//sputnik/8.08.13-0/lua/lfs/init.lua'
no file './lfs.lua'
no file '/opt/sputnik/share/lua/5.1/lfs.lua'
no file '/opt/sputnik/share/lua/5.1/lfs/init.lua'
no file '/opt/sputnik/lib/lua/5.1/lfs.lua'
no file '/opt/sputnik/lib/lua/5.1/lfs/init.lua'
no file '/opt/sputnik/rocks//luafilesystem/1.4.0-1/lib/lfs.so'
no file '/opt/sputnik/rocks//sputnik/8.08.13-0/lib/lfs.so'
no file './lfs.so'
no file '/opt/sputnik/lib/lua/5.1/lfs.so'
no file '/opt/sputnik/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'plain_require'
/opt/sputnik/share/lua/5.1/luarocks/require.lua:141: in function
</opt/sputnik/share/lua/5.1/luarocks/require.lua:130>
(tail call): ?
...k/rocks//sputnik/8.08.13-0/lua/sputnik/installer.lua:3: in main chunk
[C]: in function 'plain_require'
/opt/sputnik/share/lua/5.1/luarocks/require.lua:141: in function
</opt/sputnik/share/lua/5.1/luarocks/require.lua:130>
(tail call): ?
...putnik/rocks//sputnik/8.08.13-0/lua/sputnik/init.lua:49: in function 'setup'
(command line):1: in main chunk
[C]: ?
Alexander.
2008-12-30 20:49 |
agladysh
Alexander Gladysh <agladysh at gmail.com>
> This step fails: > $ ./bin/lua -lluarocks.require -e 'require("sputnik").setup()' > Stack traceback below. Note how it looks for 1.4.0-1, and I have > 1.4.1-1 installed by rocks. > /opt/sputnik$ ls rocks/luafilesystem/ > 1.4.1-1 > I've used rocks command from the mentioned wiki page: > $ ./bin/luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth > install sputnik 8.08.13 I suspect this should be some conflict with my existing luarocks installation. I've copyed luafilesystem 1.4.0-1 from it to the Sputnik rocks/ directory, and that fixed this error. Alexander.
2008-12-31 14:16 |
yuri
Yuri Takhteyev <yuri at sims.berkeley.edu>
> I suspect this should be some conflict with my existing luarocks > installation. I've copyed luafilesystem 1.4.0-1 from it to the Sputnik > rocks/ directory, and that fixed this error. I am glad you got it working, but I am wondering what caused the problem in the first place. Perhaps it's not so much the different installations of Lua Rocks as the different _versions_? What was your existing luarocks installation? BTW, if already have a lua+luarocks and your version of LuaRocks is reasonably recent, and you are not interested in using Xavante (or are willing to configure it by hand), you can install sputnik with just luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth install sputnik 8.08.13 lua -lluarocks.require -e 'require("sputnik").setup()' mkdir wiki-data && chmod -R a+rw wiki-data This should give you all you need to use sputnik with cgi. Everything before that is just an easy way to install lua, luarocks and xavante in such a way that they all work together. (Of those three lines, only the first one really does installation. The second line just creates a sputnik.cgi file.) - yuri -- http://sputnik.freewisdom.org/
2008-12-31 14:44 |
agladysh
Alexander Gladysh <agladysh at gmail.com>
On Wed, Dec 31, 2008 at 7:16 PM, Yuri Takhteyev <yuri@sims.berkeley.edu> wrote: >> I suspect this should be some conflict with my existing luarocks >> installation. I've copyed luafilesystem 1.4.0-1 from it to the Sputnik >> rocks/ directory, and that fixed this error. > I am glad you got it working, but I am wondering what caused the > problem in the first place. Perhaps it's not so much the different > installations of Lua Rocks as the different _versions_? What was your > existing luarocks installation? That was 0.4.something. I deleted it trying to solve my other problems with Sputnik (see below), so I can't say for sure, sorry. > BTW, if already have a lua+luarocks and your version of LuaRocks is > reasonably recent, and you are not interested in using Xavante (or are > willing to configure it by hand), you can install sputnik with just I'm interested in Xavante, but it does not work for me (see below). > luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth > install sputnik 8.08.13 > lua -lluarocks.require -e 'require("sputnik").setup()' > mkdir wiki-data && chmod -R a+rw wiki-data > This should give you all you need to use sputnik with cgi. Everything > before that is just an easy way to install lua, luarocks and xavante > in such a way that they all work together. > (Of those three lines, only the first one really does installation. > The second line just creates a sputnik.cgi file.) Thank you. I have removed my other luarocks installation, removed Sputnik, and installed it from scratch. I have these problems (and had them before reinstall): 1. When I run Sputnik with Xavante, all edits fail. The post request from my browser either "hangs" or browser complains that "server broke connection". I have double checked permissions on my wiki-data directory, all is OK. 2. When I run Sputnik as CGI on Apache, save works fine, but I have no history. My sputnik.cgi file: #! /bin/bash /opt/sputnik/bin/wsapi.cgi require('sputnik') require("lfs") lfs.chdir("/opt/sputnik/wiki-data/") return sputnik.new_wsapi_run_fn{ VERSIUM_STORAGE_MODULE = "versium.git", VERSIUM_PARAMS = { '/opt/sputnik/wiki-data/' }, BASE_URL = '/cgi-bin/sputnik.cgi', PASSWORD_SALT = '<censored>', TOKEN_SALT = '<censored>', } $ ls -la wiki-data/ total 20 drwxrwxrwx 4 agladysh agladysh 4096 Dec 31 19:14 . drwxr-xr-x 11 agladysh agladysh 4096 Dec 31 19:10 .. drwxr-xr-x 7 agladysh agladysh 4096 Dec 31 19:20 .git -rw-r--r-- 1 www-data www-data 300 Dec 31 19:21 index.lua drwxrwxr-x 2 www-data www-data 4096 Dec 31 19:18 sputnik /opt/sputnik/wiki-data$ git status # On branch master # # Initial commit # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # index.lua # sputnik/ nothing added to commit but untracked files present (use "git add" to track) I'm on Ubuntu Gutsy (7.10, Server). $ git --version git version 1.6.1 Please advise me how can I debug these issues. The kepler/log/xavante.log contains only Xavante start messages. Alexander.