lua安装后其他库使用产生问题解决方法
错误提示
luni@ubuntu:~/Downloads/thrift$ make
/usr/bin/ld: //usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `l uaO_nilobject_' can not be used when making a shared object; recompile with -fPI C
//usr/local/lib/liblua.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
解决方法
luni@ubuntu:~/Downloads/lua-5.3.5$ sudo make uninstall
luni@ubuntu:~/Downloads/lua-5.3.5$ make clean
luni@ubuntu:~/Downloads/lua-5.3.5$ make CFLAGS=-fPIC linux
luni@ubuntu:~/Downloads/lua-5.3.5$ sudo make install