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/