* [Buildroot] Python / Lua socket programming
@ 2008-08-07 12:27 Leonardo Giordano
2008-08-07 13:55 ` Hinko Kocevar
0 siblings, 1 reply; 3+ messages in thread
From: Leonardo Giordano @ 2008-08-07 12:27 UTC (permalink / raw)
To: buildroot
Hi, I am trying to have an easy programming (or scripting) language. I
have both Lua and Python compiled with buildroot. However, I don't know
how to enable socket programming. I mean:
For python, it should have a socket module but it is not. I do "import
socket" but is says it is not present. Maybe is a path problem?
For lua, I should add luasocket library but I don't know how.
Any comments?
Regards,
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Python / Lua socket programming
2008-08-07 12:27 [Buildroot] Python / Lua socket programming Leonardo Giordano
@ 2008-08-07 13:55 ` Hinko Kocevar
2008-08-07 14:33 ` Leonardo Giordano
0 siblings, 1 reply; 3+ messages in thread
From: Hinko Kocevar @ 2008-08-07 13:55 UTC (permalink / raw)
To: buildroot
Leonardo Giordano wrote:
> For lua, I should add luasocket library but I don't know how.
>
> Any comments?
You'll need to build lua first, then luasocket as another package, independently.
luasocket relies on lua headers/libs. You'll probably need to fix some
paths in lua(socket) in order for luasocket to find lua stuff inside the
buildroot.
these steps might help:
cd lua-5.1.3
make linux
make install INSTALL_TOP=/home/hinkok/Desktop/lua/out
cd ../luasocket-2.0.2
LUAINC=-I/home/hinkok/Desktop/lua/out/include INSTALL_TOP_SHARE=/home/hinkok/Desktop/lua/out/share INSTALL_TOP_LIB=/home/hinkok/Desktop/lua/out/lib/lua/5.1 make
make install INSTALL_TOP_SHARE=/home/hinkok/Desktop/lua/out/share INSTALL_TOP_LIB=/home/hinkok/Desktop/lua/out/lib/lua/5.1
HTH,
Hinko
--
?ETRTA POT, d.o.o., Kranj
Planina 3
4000 Kranj
Slovenia, Europe
Tel. +386 (0) 4 280 66 03
E-mail: hinko.kocevar at cetrtapot.si
Http: www.cetrtapot.si
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Python / Lua socket programming
2008-08-07 13:55 ` Hinko Kocevar
@ 2008-08-07 14:33 ` Leonardo Giordano
0 siblings, 0 replies; 3+ messages in thread
From: Leonardo Giordano @ 2008-08-07 14:33 UTC (permalink / raw)
To: buildroot
Hinko,
I will try it. I haven't downloaded luasocket yet.
Best regards,
Hinko Kocevar escribi?:
> Leonardo Giordano wrote:
>
>
>> For lua, I should add luasocket library but I don't know how.
>>
>> Any comments?
>>
>
> You'll need to build lua first, then luasocket as another package, independently.
> luasocket relies on lua headers/libs. You'll probably need to fix some
> paths in lua(socket) in order for luasocket to find lua stuff inside the
> buildroot.
>
> these steps might help:
> cd lua-5.1.3
> make linux
> make install INSTALL_TOP=/home/hinkok/Desktop/lua/out
> cd ../luasocket-2.0.2
> LUAINC=-I/home/hinkok/Desktop/lua/out/include INSTALL_TOP_SHARE=/home/hinkok/Desktop/lua/out/share INSTALL_TOP_LIB=/home/hinkok/Desktop/lua/out/lib/lua/5.1 make
> make install INSTALL_TOP_SHARE=/home/hinkok/Desktop/lua/out/share INSTALL_TOP_LIB=/home/hinkok/Desktop/lua/out/lib/lua/5.1
>
>
> HTH,
> Hinko
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-07 14:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-07 12:27 [Buildroot] Python / Lua socket programming Leonardo Giordano
2008-08-07 13:55 ` Hinko Kocevar
2008-08-07 14:33 ` Leonardo Giordano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox