[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: LuaRocks + lua-imlib2 | This might be a stupid question.
From:       Tiago Salmito <tiago () salmito ! com>
Date:       2012-08-31 15:12:19
Message-ID: CADCUx80b3hhjzvHTVySg7HenVQk8AdOZmfuaOvxLjVh4r070NQ () mail ! gmail ! com
[Download RAW message or body]

You can try this steps to build imlib:

luarocks unpack imlib2

cd lua-imlib2-0.1-3/lua-imlib2-0.1/

Edit the Makefile and make sure to change the line:
LUAINC= $(LUA)/include
to:
LUAINC= $(LUA)/include/lua5.1

then save the file and type: make install

now it should build fine!

____________________________________
Nietzsche: God is dead.
God: Nietzsche is dead.
____________________________________
Tiago L. Salmito
http://salmito.com
tiago[at]salmito[dot]com


On Fri, Aug 31, 2012 at 11:38 AM, Bas Groothedde <lua@xoru.net> wrote:

> **
>
> Hey Lua community!
>
> I'm trying to install lua-imlib2 on my Ubuntu Server by using luarocks
> install lua-imlib2
> Now, it finds the package and tries to install, but then gcc complains
> about a fatar error regarding a missing lua.h
>
> I have the lua dev packages installed and /usr/include/lua5.1/lua.h
> exists, but it keeps complaining about the
> missing lua.h. What am I doing wrong here? (Because, it must be my mistake
> somewhere).
>
> I tried Googling for a solution, but I couldn't find one.
>
> LuaRocks output:
>
> [root@xoruserver:/usr/include/lua5.1]$:luarocks install lua-imlib2
> Installing
> http://luarocks.org/repositories/rocks/lua-imlib2-0.1-3.src.rock...
> Archive:
> /tmp/luarocks_luarocks-rock-lua-imlib2-0.1-3-478/lua-imlib2-0.1-3.src.rock
>   inflating: lua-imlib2-0.1-3.rockspec
>  extracting: lua-imlib2-0.1.tar.gz
> Applying patch libflag.patch...
> successfully patched Makefile
> gcc -O2   -c -o limlib2.o limlib2.c
> limlib2.c:3:17: fatal error: lua.h: No such file or directory
> compilation terminated.
> make: *** [limlib2.o] Error 1
>
> Error: Build error: Failed building.
>
> Thanks!
> ------------------------------
>
> Bas Groothedde
> Imagine Programming
>

[Attachment #3 (text/html)]

<div>You can try this steps to build imlib:</div><div><br></div><div>luarocks unpack \
imlib2</div><div><br></div>cd \
lua-imlib2-0.1-3/lua-imlib2-0.1/<div><br></div><div>Edit the Makefile and make sure \
to change the line:</div> <div><div>LUAINC= \
$(LUA)/include</div><div>to:</div><div><div>LUAINC= \
$(LUA)/include/lua5.1</div></div><div><br></div><div>then save the file and type: \
make install</div><div><br></div><div>now it should build fine!</div> \
<div><br></div>____________________________________<br>Nietzsche: God is \
dead.<br>God: Nietzsche is dead.<br>____________________________________<br>Tiago L. \
Salmito<br><a href="http://salmito.com" target="_blank">http://salmito.com</a><br> \
tiago[at]salmito[dot]com<br> <br><br><div class="gmail_quote">On Fri, Aug 31, 2012 at \
11:38 AM, Bas Groothedde <span dir="ltr">&lt;<a href="mailto:lua@xoru.net" \
target="_blank">lua@xoru.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <u></u>
<div style="font-family:Verdana,Geneva,sans-serif">
<p>Hey Lua community!</p>
<p>I&#39;m trying to install lua-imlib2 on my Ubuntu Server by using luarocks install \
lua-imlib2<br>Now, it finds the package and tries to install, but then gcc complains \
about a fatar error regarding a missing lua.h</p>

<p>I have the lua dev packages installed and /usr/include/lua5.1/lua.h exists, but it \
keeps complaining about the<br>missing lua.h. What am I doing wrong here? (Because, \
it must be my mistake somewhere).</p> <p>I tried Googling for a solution, but I \
couldn&#39;t find one.</p> <p>LuaRocks output:</p>
<p>[root@xoruserver:/usr/include/lua5.1]$:luarocks install lua-imlib2<br>Installing \
<a href="http://luarocks.org/repositories/rocks/lua-imlib2-0.1-3.src.rock." \
target="_blank">http://luarocks.org/repositories/rocks/lua-imlib2-0.1-3.src.rock.</a>..<br>
                
Archive:  /tmp/luarocks_luarocks-rock-lua-imlib2-0.1-3-478/lua-imlib2-0.1-3.src.rock<br> \
inflating: lua-imlib2-0.1-3.rockspec<br> extracting: \
lua-imlib2-0.1.tar.gz<br>Applying patch libflag.patch...<br>successfully patched \
Makefile<br> gcc -O2   -c -o limlib2.o limlib2.c<br>limlib2.c:3:17: fatal error: \
lua.h: No such file or directory<br>compilation terminated.<br>make: *** [limlib2.o] \
Error 1<br><br>Error: Build error: Failed building.<br><br></p> <p>Thanks!</p>
<div><hr><span class="HOEnZb"><font color="#888888">
<p><span style="color:#c0c0c0;font-family:helvetica;font-size:x-small">Bas \
Groothedde</span><br><span \
style="color:#c0c0c0;font-family:helvetica;font-size:x-small">Imagine \
Programming</span></p> </font></span></div>
</div>
</blockquote></div><br></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic