lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


If you compiled lua from source, then the headers should have been
placed in useful directories by "make install". If you obtained lua
through a repository, then look for a lua-dev package or equivalent
and install it.

2008/5/16 mark morreny <markmorreny@gmail.com>:
> Hi,
> I did a find on lua.h and I could not find any lua.h file too.  Is lua.h
> something that I need to install seperately?
>
> Thanks,
> Mark
>
> On Fri, May 16, 2008 at 11:36 PM, Ignacio Burgueño
> <ignaciob@inconcertcc.com> wrote:
>>
>> mark morreny wrote:
>>>
>>> Hi,
>>>
>>> I am trying to install luasocket 2.0.2 on lua 5.1.3. <http://5.1.3.>  I
>>> am getting error during the "make" process.  The site has very little about
>>> installation so I really have no clue.  Can someone offer a hint?
>>>
>>> linux:/usr/src/luasocket-2.0.2# lua
>>> Lua 5.1.3  Copyright (C) 1994-2008 Lua.org, PUC-Rio
>>>>
>>> linux:/usr/src/luasocket-2.0.2#
>>> linux:/usr/src/luasocket-2.0.2# make
>>> cd src; make all
>>> make[1]: Entering directory `/usr/src/luasocket-2.0.2/src'
>>> gcc  -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o luasocket.o
>>> luasocket.c
>>> luasocket.c:20:17: error: lua.h: No such file or directory
>>
>> Either by editing the makefile, or with an appropiate flag, you need to
>> tell make where are your Lua headers.
>>
>> Or you can use LuaRocks that makes installing Lua packages a breeze.
>> http://www.luarocks.org
>>
>>
>>
>>
>
>