我正在尝试使用 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 的初学者来说不是很好做错了。任何帮助,将不胜感激!