Closed booyaa closed 8 years ago
Since magick is only for luajit, it only shows up for luarocks running lua 5.1. Chances are you're luarocks is set up for a newer version of lua.
Cheers, I'll downgrade!
Update: For anyone else in a similar situation, you can install lua 5.1 and luarocks using brew install lua51
.
❯ brew install lua51
Warning: Formula lua51 was renamed to lua@5.1.
Error: lua@5.1 has been disabled because it is deprecated upstream!
😢 Any chance of getting support for newer lua versions?
On Ubuntu 20.04 and 22.04 I ran into the same issue:
$ sudo luarocks install magick
Error: No results matching query were found for Lua 5.3.
But trying to install for 5.1 also fails
$ sudo luarocks install --lua-version=5.1 magick
Warning: Lua 5.1 interpreter not found at /usr
Modules may not install with the correct configurations. You may want to configure the path prefix to your build of Lua 5.1 using
luarocks config --local lua_dir <your-lua-prefix>
Installing https://luarocks.org/magick-1.6.0-1.src.rock
Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.
The solution:
sudo apt install lua5.1
luarocks install --lua-version=5.1 magick
Note no sudo on the final luarocks install.
Sample output from
luarocks search -all
can be found this gistusing LuaRocks 2.2.2 on OSX (installed via lua homebrew package)