【发布时间】:2012-02-26 12:26:16
【问题描述】:
我正在尝试使用 luarocks 安装 numlua:
luarocks make numlua-0.3-1.rockspec
但出现以下错误:
/usr/bin/ld: numlua.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
numlua.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
cp: cannot stat `numlua.so': No such file or directory
我猜我需要将 -fPIC 参数添加为标志,但不适用于编译器和 luaRocks 的初学者我不确定如何或在何处添加它,或者,如果还有其他东西我做错了。任何帮助将不胜感激!
【问题讨论】:
标签: lua compiler-errors luarocks