[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Can't luarocks install luasocket
- From: Steve Litt <slitt@...>
- Date: Sat, 6 Aug 2011 14:09:47 -0400
Hi all,
I can't install luasocket. Here's what happens when I try:
root@mydesk:/d/at/lua/sockets# luarocks install luasocket
/* All single C files compile just fine */
gcc -shared -O -fpic -o socket.so.2.0.2 luasocket.o timeout.o buffer.o
io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.o
usocket.o
/usr/bin/ld: luasocket.o: relocation R_X86_64_32 against `.data' can
not be used when making a shared object; recompile with -fPIC
luasocket.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [socket.so.2.0.2] Error 1
make[1]: Leaving directory
`/tmp/luarocks_luasocket-2.0.2-4-7249/luasocket-2.0.2/src'
make: *** [all] Error 2
Error: Build error: Failed building.
root@mydesk:/d/at/lua/sockets#
So -- do I neet to change -fpic to -fPIC, and if so, how to do it -- I
can't find anything on the net.
Thanks
SteveT
--
Steve Litt
Author: The Key to Everyday Excellence
http://www.troubleshooters.com/bookstore/key_excellence.htm
Twitter: http://www.twitter.com/stevelitt