|
Just installed lua 5.2.2 with: make macosx;make install (working fine it looks). The to installing lpeg 0.11 Alas, lots of errors. Why? env gcc -shared -fPIC lpvm.o lpcap.o lptree.o lpcode.o lpprint.o -o lpeg.so Undefined symbols for architecture x86_64: "_luaL_addlstring", referenced from: _stringcap in lpcap.o _substcap in lpcap.o "_luaL_addvalue", referenced from: _addonestring in lpcap.o …many more… ... "_lua_typename", referenced from: _addonestring in lpcap.o _val2str in lptree.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [lpeg.so] Error 1 The changed in the makefile to: LUADIR = /usr/include/lua5.2/ (instead of 5.2) idem /usr/local/include: not working my path values: LUA_VERSION=5.2 LUA_DIR=/usr/local LUA_INCL=$LUA_DIR/include LUA_SHAREDIR=$LUA_DIR/share/lua/$LUA_VERSION LUA_LIBDIR=$LUA_DIR/lib/lua/$LUA_VERSION LUA_PATH="./?.lua;./?/?.lua;$LUA_SHAREDIR/?.lua;$LUA_SHAREDIR/?/?.lua" LUA_CPATH="./?.so;./?/?.so;$LUA_LIBDIR/?.so;$LUA_LIBDIR/?/?.so" (all exported of course) Where does it go wrong? Hans van der Meer On 27 mrt. 2013, at 20:23, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote: What is LPeg? LPeg is a new (well, not that new now) pattern-matching Hans van der Meer
|