leafo / magick

Lua bindings to ImageMagick for LuaJIT using FFI
401 stars 79 forks source link

Can't find magick on luarocks #29

Closed booyaa closed 8 years ago

booyaa commented 8 years ago

Sample output from luarocks search -allcan be found this gist

using LuaRocks 2.2.2 on OSX (installed via lua homebrew package)

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

booyaa commented 8 years ago

Cheers, I'll downgrade!

Update: For anyone else in a similar situation, you can install lua 5.1 and luarocks using brew install lua51.

Velrok commented 6 months ago
❯ 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?

TamaMcGlinn commented 1 month ago

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.