<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BlueScripts &#187; lua</title>
	<atom:link href="http://bluescripts.net/tag/lua/feed/" rel="self" type="application/rss+xml" />
	<link>http://bluescripts.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 06 Sep 2010 02:01:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Lighttpd + mod_magnet on CentOS (64 bit)</title>
		<link>http://bluescripts.net/2009/08/lighttpd-mod_magnet-on-centos-64-bit/</link>
		<comments>http://bluescripts.net/2009/08/lighttpd-mod_magnet-on-centos-64-bit/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:20:17 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[mod_magnet]]></category>

		<guid isPermaLink="false">http://bluescripts.net/?p=238</guid>
		<description><![CDATA[After about an hour of tinkering around on google and in the terminal here is what you need to do: wget http://www.lua.org/ftp/lua-5.1.2.tar.gz tar xfz lua-5.1.2.tar.gz cd lua-5.1.2 nano src/Makefile Replace: CFLAGS= -O2 -Wall $(MYCFLAGS) With: CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS) make linux install wget http://luaforge.net/frs/download.php/2384/md5-1.0.2.tar.gz tar xfz md5-1.0.2.tar.gz cd md5-1.0.2 make make install cd .. [...]]]></description>
			<content:encoded><![CDATA[<p>After about an hour of tinkering around on google and in the terminal here is what you need to do:</p>
<pre>
wget http://www.lua.org/ftp/lua-5.1.2.tar.gz
tar xfz lua-5.1.2.tar.gz
cd lua-5.1.2
nano src/Makefile
</pre>
<p>Replace:</p>
<pre> CFLAGS= -O2 -Wall $(MYCFLAGS) </pre>
<p>With:</p>
<pre> CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS) </pre>
<pre>
make linux install

wget http://luaforge.net/frs/download.php/2384/md5-1.0.2.tar.gz
tar xfz md5-1.0.2.tar.gz
cd md5-1.0.2
make
make install
cd ..
wget http://luaforge.net/frs/download.php/1678/luazlib-0.0.1.rar

wget wget http://www.rarlab.com/rar/unrar-3.7.7-centos.gz
gunzip unrar-3.7.7-centos.gz
chmod +x unrar-3.7.7-centos
./unrar-3.7.7-centos x luazlib-0.0.1.rar
cd luazlib-0.0.1
make
make install

export LUA_CFLAGS="-I/usr/local/include"
export LUA_LIBS="-L/usr/local/lib -llua"

cd LIGHTTPD_DIRECTORY
./configure -with-lua
make
make install
</pre>
<p>All done!</p>
<p>Thanks to:<br />
<a href="http://gadelkareem.com/2007/09/17/dynamic-content-caching-using-lighty-mod_magnet-lua/">http://gadelkareem.com/2007/09/17/dynamic-content-caching-using-lighty-mod_magnet-lua/</a> &#038;&#038; <a href="http://www.verlihub-project.org/doku.phpid=howto_install_lua_library_on_64_bit">http://www.verlihub-project.org/doku.phpid=howto_install_lua_library_on_64_bit</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bluescripts.net/2009/08/lighttpd-mod_magnet-on-centos-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
