When installing lbc using luarocks, Johns-MacBook-Air:~ johnkitzmiller$ luarocks install lbc
I get this complaint: Installing https://rocks.moonscript.org/lbc-20120430-1.src.rock... Using https://rocks.moonscript.org/lbc-20120430-1.src.rock... switching to 'build' mode export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/opt/lua/include -c lbc.c -o lbc.o -I. lbc.c:312:2: warning: implicit declaration of function 'luaL_register' is invalid in C99 [-Wimplicit-function-declaration] luaL_register(L,MYNAME,R); ^ 1 warning generated. export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/opt/lua/include -c number.c -o number.o -I. export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -o bc.so -L/usr/local/opt/lua/lib lbc.o number.o Updating manifest for /usr/local/lib/luarocks/rocks lbc 20120430-1 is now built and installed in /usr/local (license: GNU General Public License version 2 or later) And then when running the test file: Johns-MacBook-Air:bc johnkitzmiller$ lua test.lua I get this failure: lua: error loading module 'bc' from file '/usr/local/lib/lua/5.2/bc.so': dlopen(/usr/local/lib/lua/5.2/bc.so, 6): Symbol not found: _luaL_register Referenced from: /usr/local/lib/lua/5.2/bc.so Expected in: dynamic lookup stack traceback: [C]: in ? [C]: in function 'require' test.lua:3: in main chunk [C]: in ? (I am out of my depth and do not understand either problem :-) Downloading from http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbc <http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbc> , make, and copy bc.so to usr/local/lib/lua/5.2 works as expected. Thanks, John
------------------------------------------------------------------------------
_______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers