lua-users home
lua-l archive

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

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 luasocket.o timeout.o buffer.o 
io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.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]: *** [] Error 1
make[1]: Leaving directory 
make: *** [all] Error 2

Error: Build error: Failed building.

So -- do I neet to change -fpic to -fPIC, and if so, how to do it -- I 
can't find anything on the net.



Steve Litt
Author: The Key to Everyday Excellence