On 28 August 2013 16:38, Philipp Janda <siffie...@gmx.net> wrote: > Am 27.08.2013 18:56 schröbte Hisham: >> On 10 August 2013 06:03, Philipp Janda <siffie...@gmx.net> wrote: >>> >>> Here is my configure incantation: >>> ./configure --prefix=/home/siffiejoe/.self/programs/luarocks-2.1.0 >>> --lua-version=5.2 --lua-suffix=5.2 >>> --with-lua-include=/usr/include/lua5.2 --versioned-rocks-dir --force-config >>> >>> ... but I have LUA_PATH_5_2 set! >>> `env --unset=LUA_PATH_5_2 make bootstrap` seems to work. >> >> I wonder if editing the Makefile to say: >> >> bootstrap: src/luarocks/site_config.lua install_site_config write_sysconfig >> LUA_PATH="$$PWD/src/?.lua;$$LUA_PATH" >> LUA_PATH_5_2="$$PWD/src/?.lua;$$LUA_PATH_5_2" src/bin/luarocks make >> rockspec --tree="$(PREFIX)" >> >> ...would do the trick. > > This change works for me, but I'd probably use something like this: > > bootstrap: src/luarocks/site_config.lua install_site_config write_sysconfig > if [ -n "$(LUA_PATH_5_2)" ] ;\
Shouldn't this be if [ -n "$$LUA_PATH_5_2" ] ;\ instead? > then \ > LUA_PATH="$$PWD/src/?.lua;$$LUA_PATH" > LUA_PATH_5_2="$$PWD/src/?.lua;$$LUA_PATH_5_2" src/bin/luarocks make > rockspec --tree="$(PREFIX)" ;\ > else \ > LUA_PATH="$$PWD/src/?.lua;$$LUA_PATH" src/bin/luarocks make > rockspec > --tree="$(PREFIX)" ;\ > fi > > ... for Lua-5.2 users who don't set LUA_PATH_5_2 but require > preinstalled modules. The idea is that LR shouldn't need extra modules other than its own in order to work, but understood. I'll use your version. >>> But if I then try to install luarocks for 5.1 via >>> ./configure --prefix=/home/siffiejoe/.self/programs/luarocks-2.1.0 >>> --lua-version=5.1 --lua-suffix=5.1 >>> --with-lua-include=/usr/include/lua5.1 --versioned-rocks-dir --force-config >>> make bootstrap >>> >>> I get the following error: >>> Error: Failed loading manifest for >>> /home/siffiejoe/.self/programs/luarocks-2.1.0//lib/luarocks/rocks-5.1: >>> cannot open >>> /home/siffiejoe/.self/programs/luarocks-2.1.0//lib/luarocks/rocks-5.1/manifest: >>> No such file or directory -- corrupted local rocks tree? Cannot install >>> new version. >> >> This is tricky. I've had this kind of problem before, but it was hard >> to reproduce. I have to look into it. > > Happens for me every time on the second `make bootstrap` when I > > ./configure for Lua 5.2 > make bootstrap > ./configure for Lua 5.1 > make bootstrap > > The flags --force-config and --versioned-rocks-dir seem to have no > influence on the error. The order (Lua 5.2/Lua 5.1) doesn't matter either. Thank you for the investigation, I'll give it a try! -- Hisham ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers