<?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>Penguin on Rails &#187; MySQL</title>
	<atom:link href="http://www.cherpec.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cherpec.com</link>
	<description>linux + ruby on rails = love</description>
	<lastBuildDate>Thu, 17 Jun 2010 14:06:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MysqlProxy: No package &#8216;lua5.1&#8242; found</title>
		<link>http://www.cherpec.com/2009/12/mysqlproxy-no-package-lua5-1-found/</link>
		<comments>http://www.cherpec.com/2009/12/mysqlproxy-no-package-lua5-1-found/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 11:20:52 +0000</pubDate>
		<dc:creator>Vitalie Cherpec</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[lua]]></category>
		<category><![CDATA[MysqlProxy]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpmbuild]]></category>

		<guid isPermaLink="false">http://www.cherpec.com/?p=608</guid>
		<description><![CDATA[Somehow my Lua rpm package missed the /usr/lib/pkgconfig/lua.pc file and MysqlProxy couldn&#8217;t detect Lua install:

&#91;vitalie@silver tmp&#93;$ rpmbuild -ta --define 'with_lua 1' mysql-proxy-0.6.0.tar.gz
&#160;
&#91;...&#93;
&#160;
checking for LUA... checking for LUA... configure: error: Package requirements &#40;lua5.1 &#62;= 5.1&#41; were not met:
&#160;
No package 'lua5.1' found
&#160;
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
&#160;
Alternatively, you may set [...]]]></description>
			<content:encoded><![CDATA[<p>Somehow my <a href="http://www.lua.org/">Lua</a> rpm package missed the /usr/lib/pkgconfig/lua.pc file and <a href="http://forge.mysql.com/wiki/MySQL_Proxy">MysqlProxy</a> couldn&#8217;t detect Lua install:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>vitalie<span style="color: #000000; font-weight: bold;">@</span>silver tmp<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ rpmbuild <span style="color: #660033;">-ta</span> <span style="color: #660033;">--define</span> <span style="color: #ff0000;">'with_lua 1'</span> mysql-proxy-0.6.0.tar.gz
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
checking <span style="color: #000000; font-weight: bold;">for</span> LUA... checking <span style="color: #000000; font-weight: bold;">for</span> LUA... configure: error: Package requirements <span style="color: #7a0874; font-weight: bold;">&#40;</span>lua5.1 <span style="color: #000000; font-weight: bold;">&gt;</span>= <span style="color: #000000;">5.1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> were not met:
&nbsp;
No package <span style="color: #ff0000;">'lua5.1'</span> found
&nbsp;
Consider adjusting the PKG_CONFIG_PATH environment variable <span style="color: #000000; font-weight: bold;">if</span> you
installed software <span style="color: #000000; font-weight: bold;">in</span> a non-standard prefix.
&nbsp;
Alternatively, you may <span style="color: #000000; font-weight: bold;">set</span> the environment variables LUA_CFLAGS
and LUA_LIBS to avoid the need to call pkg-config.
See the pkg-config <span style="color: #c20cb9; font-weight: bold;">man</span> page <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #c20cb9; font-weight: bold;">more</span> details.</pre></div></div>

<p>The solution was to specify LUA_CFLAGS and LUA_LIBS variables:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>vitalie<span style="color: #000000; font-weight: bold;">@</span>silver tmp<span style="color: #7a0874; font-weight: bold;">&#93;</span>$ <span style="color: #007800;">LUA_CFLAGS</span>=<span style="color: #ff0000;">&quot;-I/usr/include&quot;</span> <span style="color: #007800;">LUA_LIBS</span>=<span style="color: #ff0000;">&quot;-llua -lm -ldl&quot;</span> rpmbuild <span style="color: #660033;">-ta</span> <span style="color: #660033;">--define</span> <span style="color: #ff0000;">'with_lua 1'</span> mysql-proxy-0.6.0.tar.gz
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
Requires<span style="color: #7a0874; font-weight: bold;">&#40;</span>rpmlib<span style="color: #7a0874; font-weight: bold;">&#41;</span>: rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>CompressedFileNames<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= 3.0.4-<span style="color: #000000;">1</span> rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>PayloadFilesHavePrefix<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">4.0</span>-<span style="color: #000000;">1</span>
Requires: libc.so.6<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libc.so.6<span style="color: #7a0874; font-weight: bold;">&#40;</span>GLIBC_2.2.5<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libc.so.6<span style="color: #7a0874; font-weight: bold;">&#40;</span>GLIBC_2.3<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libc.so.6<span style="color: #7a0874; font-weight: bold;">&#40;</span>GLIBC_2.3.4<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libc.so.6<span style="color: #7a0874; font-weight: bold;">&#40;</span>GLIBC_2.4<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libdl.so.2<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libdl.so.2<span style="color: #7a0874; font-weight: bold;">&#40;</span>GLIBC_2.2.5<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libevent-1.1a.so.1<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libglib-2.0.so.0<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libm.so.6<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> libm.so.6<span style="color: #7a0874; font-weight: bold;">&#40;</span>GLIBC_2.2.5<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>64bit<span style="color: #7a0874; font-weight: bold;">&#41;</span> rtld<span style="color: #7a0874; font-weight: bold;">&#40;</span>GNU_HASH<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Processing files: mysql-proxy-debuginfo-0.6.0-<span style="color: #000000;">0</span>
Requires<span style="color: #7a0874; font-weight: bold;">&#40;</span>rpmlib<span style="color: #7a0874; font-weight: bold;">&#41;</span>: rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>CompressedFileNames<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= 3.0.4-<span style="color: #000000;">1</span> rpmlib<span style="color: #7a0874; font-weight: bold;">&#40;</span>PayloadFilesHavePrefix<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>= <span style="color: #000000;">4.0</span>-<span style="color: #000000;">1</span>
Checking <span style="color: #000000; font-weight: bold;">for</span> unpackaged <span style="color: #c20cb9; font-weight: bold;">file</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>check-files <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>mysql-proxy-0.6.0-<span style="color: #000000;">0</span>-root
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>SRPMS<span style="color: #000000; font-weight: bold;">/</span>mysql-proxy-0.6.0-0.src.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>mysql-proxy-0.6.0-0.x86_64.rpm
Wrote: <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>RPMS<span style="color: #000000; font-weight: bold;">/</span>x86_64<span style="color: #000000; font-weight: bold;">/</span>mysql-proxy-debuginfo-0.6.0-0.x86_64.rpm
Executing<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">%</span>clean<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-e</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>vitalie<span style="color: #000000; font-weight: bold;">/</span>rpmbuild<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>rpm-tmp.9187
&nbsp;
<span style="color: #7a0874; font-weight: bold;">&#91;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>References:</p>
<ul>
<li><a href="http://blog.cheyer.biz/2008/08/31/building-mysql-proxy-060-on-centos-52/">http://blog.cheyer.biz/2008/08/31/building-mysql-proxy-060-on-centos-52/</a></li>
<li><a href="http://www.gunfist.com/techy/2008/10/buildings-mysql-proxy-060-on-centos-52/">http://www.gunfist.com/techy/2008/10/buildings-mysql-proxy-060-on-centos-52/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cherpec.com/2009/12/mysqlproxy-no-package-lua5-1-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
