lua-users home
lua-l archive

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


Hi, I'm trying to install luaexpat using luarocks on a 64bit linux
box, but I'm getting into trouble:

luarocks install luaexpat
Installing http://luarocks.luaforge.net/rocks/luaexpat-1.1.0-3.src.rock...
Archive:  /tmp/luarocks-rock-luaexpat-1.1.0-3-7365/luaexpat-1.1.0-3.src.rock
 inflating: luaexpat-1.1.0-3.rockspec
extracting: luaexpat-1.1.tar.gz
gcc -O2 -I/usr/include/lua5.1/ -I/usr/local/include   -c -o
src/lxplib.o src/lxplib.c
export MACOSX_DEPLOYMENT_TARGET="10.3"; gcc -o src/lxp.so.1.1.0
-shared -L/usr/local/lib src/lxplib.o  -lexpat
/usr/bin/ld: src/lxplib.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
src/lxplib.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [src/lxp.so.1.1.0] Error 1


Also before on a different machine I had to create a manifest file for
a clean system in order for the rocks install properly.

This command also gives me an error:

sudo luarocks-admin make_manifest
Making manifest for /usr/local/lib/luarocks/rocks
/usr/bin/lua5.1: /usr//share/lua/5.1//luarocks/command_line.lua:14:
assertion failed!
stack traceback:
	[C]: in function 'assert'
	/usr//share/lua/5.1//luarocks/command_line.lua:14: in function 'die'
	/usr//share/lua/5.1//luarocks/command_line.lua:126: in function 'run_command'
	/usr/bin/luarocks-admin:15: in main chunk
	[C]: ?


Any idea what might be going wrong here?

Thijs