[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem with luarocks unpack
- From: Ką Mykolas <kamicc@...>
- Date: Thu, 16 Jan 2020 18:01:30 +0200
Have You tried the following (sounds a bit more intuitive for me):
$ luarocks download stacktraceplus
$ luarocks unpack stacktraceplus
The biggest issue You're facing seems to be incompatibility between
Rockspec formats and Debian... not having a maintainer
who would be willing to update Luarocks package.
On Thu, Jan 16, 2020 at 5:46 PM Eduardo Ochs <email@example.com> wrote:
> Hi list,
> ok, so Lua is a geek language with geek batteries, right? This means
> that it should be easy to download and unpack the full source of any
> given rock, right?...
> I'm on Debian, and the version of the luarocks that comes with Debian
> is 2.4.2 - see:
> There are some rocks that that version can't install. Just to cite an
> obvious example, I tried to ask the luarocks from Debian to install
> the most recent version of luarocks - some package managers are able
> to do this - by doing:
> luarocks --local install luarocks
> and I got these error messages:
> Installing https://luarocks.org/luarocks-3.2.1-1.src.rock
> Error: Rockspec format 3.0 is not supported, please upgrade LuaRocks.
> So I tried to install a recent version of luarocks from the git repo.
> Here's what I did:
> sudo apt-get remove luarocks
> # Clean all the stuff from previous uses of luarocks
> rm -Rfv ~/.cache/luarocks/
> rm -Rfv ~/.luarocks/
> cd ~/usrc/
> git clone https://github.com/luarocks/luarocks
> cd ~/usrc/luarocks/
> # Choose a version
> git branch --list -a
> git checkout 3.2.1
> git reset
> sudo make install
> which luarocks
> luarocks --version
> rm -Rv /tmp/rock/
> mkdir /tmp/rock/
> cd /tmp/rock/
> luarocks unpack stacktraceplus
> # Output:
> # "Error: Failed copying unpacked rockspec into unpacked source directory."
> I got the same error on several rocks. What I am doing wrong?
> "luarocks unpack" is not well documented, so I am mostly guessing that
> it is the right thing for downloading rock sources...
> Thanks in advance,
> Eduardo Ochs