On 10 August 2013 06:03, Philipp Janda <[email protected]> wrote:
> Am 10.08.2013 00:16 schröbte Hisham:
>> Hi everyone,
>
> Hi!

Hi, sorry about the late reply!

>> [...]
>>
>> * 'make bootstrap' is now an advertised option for installing LuaRocks
>> itself as a rock on Unix systems
>
> `make bootstrap` errors out for me:
>
>      LUA_PATH="$PWD/src/?.lua;$LUA_PATH" src/bin/luarocks make rockspec
> --tree="/home/siffiejoe/.self/programs/luarocks-2.1.0"
>      /usr/bin/lua5.2:
> ...programs/luarocks-2.0.13/share/lua/5.2/luarocks/help.lua:12: attempt
> to concatenate global 'program_name' (a nil value)
>      stack traceback:
>         ...programs/luarocks-2.0.13/share/lua/5.2/luarocks/help.lua:12: in
> main chunk
>         [C]: in function 'require'
>         src/bin/luarocks:9: in main chunk
>         [C]: in ?
>
> 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.

> 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.

> Combined installation for 5.1 and 5.2 via `make build install` works fine.
>
> Btw., what is the purpose of the `install_rock` target?

It is the target used by the LuaRocks rockspec.

Thank you for the feedback!

-- 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to