Hi Ben, On 14 August 2015 at 21:35, <[email protected]> wrote: > > > On Friday, August 14, 2015 at 4:07:25 PM UTC-4, Matthew Wild wrote: >> >> On 14 August 2015 at 20:02, <[email protected]> wrote: >> > My question is now focused on what configure args should I use to get >> > timber >> > to use lua version 5.2. >> >> ./configure --runwith=lua5.2 >> >> Change 'lua5.2' to whatever the path is to your Lua 5.2 interpreter. >> > > I have tried it a few ways but below is a transcript starting from the > removal of prosody timber until the launching of the fresh binary that > displays the message. > > > Thanks for your help. > > Ben > > > slim# rm /opt/local/bin/prosody > slim# ./configure --ostype=macosx --with-lua=/opt/local/bin/lua > -n Checking Lua includes... > lua.h found in /opt/local/include/lua.h > Writing configuration... > > Installation prefix: /opt/local > Prosody configuration directory: /opt/local/etc/prosody > Using Lua from: /opt/local/bin/lua > > Done. You can now run 'make' to build. > > slim# make > sed "1s| lua$| lua|; \ > s|^CFG_SOURCEDIR=.*;$|CFG_SOURCEDIR='/opt/local/lib/prosody';|; \ > s|^CFG_CONFIGDIR=.*;$|CFG_CONFIGDIR='/opt/local/etc/prosody';|; \ > s|^CFG_DATADIR=.*;$|CFG_DATADIR='/opt/local/var/lib/prosody';|; \ > s|^CFG_PLUGINDIR=.*;$|CFG_PLUGINDIR='/opt/local/lib/prosody/modules/';|;" < > prosody > prosody.install > sed "1s| lua$| lua|; \ > s|^CFG_SOURCEDIR=.*;$|CFG_SOURCEDIR='/opt/local/lib/prosody';|; \ > s|^CFG_CONFIGDIR=.*;$|CFG_CONFIGDIR='/opt/local/etc/prosody';|; \ > s|^CFG_DATADIR=.*;$|CFG_DATADIR='/opt/local/var/lib/prosody';|; \ > s|^CFG_PLUGINDIR=.*;$|CFG_PLUGINDIR='/opt/local/lib/prosody/modules/';|;" < > prosodyctl > prosodyctl.install > sed 's|certs/|/opt/local/etc/prosody/certs/|' prosody.cfg.lua.dist > > prosody.cfg.lua.install > test -e .hg/dirstate && \ > hexdump -n6 -e'6/1 "%02x"' .hg/dirstate > prosody.version || true > test -f prosody.release && \ > cp prosody.release prosody.version || true > /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make -C util-src > install > gcc -fPIC -Wall -ggdb -I/opt/local/include -c -o encodings.o encodings.c > MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; > gcc -o encodings.so encodings.o -bundle -undefined dynamic_lookup > gcc -fPIC -Wall -ggdb -I/opt/local/include -c -o hashes.o hashes.c > MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; > gcc -o hashes.so hashes.o -bundle -undefined dynamic_lookup -lcrypto > gcc -fPIC -Wall -ggdb -I/opt/local/include -c -o net.o net.c > MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; > gcc -o net.so net.o -bundle -undefined dynamic_lookup > gcc -fPIC -Wall -ggdb -I/opt/local/include -c -o pposix.o pposix.c > MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; > gcc -o pposix.so pposix.o -bundle -undefined dynamic_lookup > gcc -fPIC -Wall -ggdb -I/opt/local/include -c -o signal.o signal.c > MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; > gcc -o signal.so signal.o -bundle -undefined dynamic_lookup > gcc -fPIC -Wall -ggdb -I/opt/local/include -c -o table.o table.c > MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; > gcc -o table.so table.o -bundle -undefined dynamic_lookup > install *.so ../util/ > rm table.o net.o pposix.o signal.o > /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make -C certs > localhost.crt example.com.crt || true > make[1]: `localhost.crt' is up to date. > make[1]: `example.com.crt' is up to date. > slim# make install > install -d /opt/local/bin /opt/local/etc/prosody > /opt/local/lib/prosody/modules /opt/local/lib/prosody > install -m750 -d /opt/local/var/lib/prosody > install -d /opt/local/share/man/man1 > install -d /opt/local/etc/prosody/certs > install -d /opt/local/lib/prosody/core /opt/local/lib/prosody/net > /opt/local/lib/prosody/util > install -m755 ./prosody.install /opt/local/bin/prosody > install -m755 ./prosodyctl.install /opt/local/bin/prosodyctl > install -m644 core/* /opt/local/lib/prosody/core > install -m644 net/*.lua /opt/local/lib/prosody/net > install -d /opt/local/lib/prosody/net/http > /opt/local/lib/prosody/net/websocket > install -m644 net/http/*.lua /opt/local/lib/prosody/net/http > install -m644 net/websocket/*.lua /opt/local/lib/prosody/net/websocket > install -m644 util/*.lua /opt/local/lib/prosody/util > install -m644 util/*.so /opt/local/lib/prosody/util > install -d /opt/local/lib/prosody/util/sasl > install -m644 util/sasl/* /opt/local/lib/prosody/util/sasl > umask 0022 && cp -r plugins/* /opt/local/lib/prosody/modules > install -m644 certs/* /opt/local/etc/prosody/certs > install -m644 man/prosodyctl.man /opt/local/share/man/man1/prosodyctl.1 > test -e /opt/local/etc/prosody/prosody.cfg.lua || install -m644 > prosody.cfg.lua.install /opt/local/etc/prosody/prosody.cfg.lua > test -e prosody.version && install -m644 prosody.version > /opt/local/lib/prosody/prosody.version || true > /Applications/Xcode-beta.app/Contents/Developer/usr/bin/make install -C > util-src > install *.so ../util/ > slim# prosody > *********************************** > Unsupported Lua version: Lua 5.2 > Only Lua 5.1 is supported. > ***********************************
I think you are building or running the wrong code, as timber would not display this message for Lua 5.2. Try running '/opt/local/bin/prosody' instead of just 'prosody'. Also as a quick check, you can run: grep "if _VERSION" util/dependencies.lua If you have timber, the grep will show: if _VERSION < "Lua 5.1". Regards, Matthew -- You received this message because you are subscribed to the Google Groups "prosody-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/prosody-dev. For more options, visit https://groups.google.com/d/optout.
