Button Button
XSSFilter could not parse (X)HTML:


<p>From agladysh at gmail.com  Tue Dec 30 20:32:27 2008
From: agladysh at gmail.com (Alexander Gladysh)
Date: Tue Dec 30 19:40:56 2008
Subject: [Sputnik-list] Problems installing Sputnik
Message-ID: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a></p>

<p>Hi, list!</p>

<p>I'm trying to install Sputnik 8.08.13 on my Ubuntu box as per this guide:</p>

<p>http://sputnik.freewisdom.org/en/Installation</p>

<p>This step fails:</p>

<p>$ ./bin/lua -lluarocks.require -e 'require("sputnik").setup()'</p>

<p>Stack traceback below. Note how it looks for 1.4.0-1, and I have
1.4.1-1 installed by rocks.</p>

<p>/opt/sputnik$ ls rocks/luafilesystem/
1.4.1-1</p>

<p>I've used rocks command  from the mentioned wiki page:</p>

<p>$ ./bin/luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth
install sputnik 8.08.13</p>

<p>Traceback from require("sputnik").setup():</p>

<p>./bin/lua: /opt/sputnik/share/lua/5.1/luarocks/require.lua:141: module
'lfs' not found:</p>
<pre><code>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'
</code></pre>
<p>stack traceback:</p>
<pre><code>[C]: in function 'plain_require'
/opt/sputnik/share/lua/5.1/luarocks/require.lua:141: in function
</code></pre>
<p></opt/sputnik/share/lua/5.1/luarocks/require.lua:130></p>
<pre><code>(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
</code></pre>
<p></opt/sputnik/share/lua/5.1/luarocks/require.lua:130></p>
<pre><code>(tail call): ?
...putnik/rocks//sputnik/8.08.13-0/lua/sputnik/init.lua:49: in function 'setup'
(command line):1: in main chunk
[C]: ?
</code></pre>

<p>Alexander.</p>


<p>From agladysh at gmail.com  Tue Dec 30 20:49:41 2008
From: agladysh at gmail.com (Alexander Gladysh)
Date: Tue Dec 30 19:58:07 2008
Subject: [Sputnik-list] Re: Problems installing Sputnik
In-Reply-To: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a>
References: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a>
Message-ID: <a href="mailto:c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com">c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com</a></p>

<blockquote>
    <p>This step fails:</p>
    
    <p>$ ./bin/lua -lluarocks.require -e 'require("sputnik").setup()'</p>
    
    <p>Stack traceback below. Note how it looks for 1.4.0-1, and I have
    1.4.1-1 installed by rocks.</p>
    
    <p>/opt/sputnik$ ls rocks/luafilesystem/
    1.4.1-1</p>
    
    <p>I've used rocks command  from the mentioned wiki page:</p>
    
    <p>$ ./bin/luarocks --only-from=http://sputnik.freewisdom.org/rocks/earth
    install sputnik 8.08.13</p>
</blockquote>

<p>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.</p>

<p>Alexander.</p>


<p>From yuri at sims.berkeley.edu  Wed Dec 31 14:16:39 2008
From: yuri at sims.berkeley.edu (Yuri Takhteyev)
Date: Wed Dec 31 13:25:13 2008
Subject: [Sputnik-list] Re: Problems installing Sputnik
In-Reply-To: <a href="mailto:c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com">c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com</a>
References: <a href="mailto:c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com">c6c947f60812301432n87c54c5yd495868e3f1f9c49@mail.gmail.com</a></p>
<pre><code><c6c947f60812301449n5b4f183g89f63924120feb11@mail.gmail.com>
</code></pre>
<p>Message-ID: <a href="mailto:fa4efbc00812310816v6db1e52i123a86cc3fe78df1@mail.gmail.com">fa4efbc00812310816v6db1e52i123a86cc3fe78df1@mail.gmail.com</a></p>

<blockquote>
    <p>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.</p>
</blockquote>

<p>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 <em>versions</em>?  What was your
existing luarocks installation?</p>

<p>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</p>

<p>  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</p>

<p>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.</p>

<p>(Of those three lines, only the first one really does installation.
The second line just creates a sputnik.cgi file.)</p>

<ul>
    <li>yuri</li>
</ul>

<p>-- 
http://sputnik.freewisdom.org/</p>