leafo / magick

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

`MagickWand-config: not found` in debian/testing #13

Closed saucisson closed 9 years ago

saucisson commented 9 years ago

The binary seems to have been renamed GraphicsMagickWand-config in debian/testing. See here for the content of the package.

isage commented 9 years ago

GraphicsMagickWand-config is from GraphicsMagick, not ImageMagick. You need libmagickwand-6.q16-dev package

didasy commented 9 years ago
sh: 1: MagickWand-config: not found
luajit: /usr/local/share/lua/5.1/magick/init.lua:161: Failed to load ImageMagick (MagickWand)
stack traceback:
    [C]: in function 'try_to_load'
    /usr/local/share/lua/5.1/magick/init.lua:161: in main chunk
    [C]: in function 'require'
    image-proxy.lua:6: in main chunk
    [C]: at 0x00404d90

Same problem here, and I do have libmagickwand-dev package

$ sudo apt-cache search libmagickwand
libmagickwand-6-headers - image manipulation library - headers files
libmagickwand-6.q16-2 - image manipulation library
libmagickwand-6.q16-dev - image manipulation library - development files
libmagickwand-dev - image manipulation library - transition for development files

And here is the location of MagickWand-config in my system

/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/MagickWand-config

I am running Ubuntu 15.04 x64

saucisson commented 8 years ago

Can you please make a luarocks release with this change, as it is an important fix?

ghost commented 8 years ago

second the luarocks fix request, i also have the libmagickwand dev package

ghost commented 8 years ago

to get this working temporarily i prepended the path to line 161:

local get_flags
get_flags = function()
  local proc = io.popen("/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/MagickWand-config --cflags --libs", "r")

in file /usr/local/share/lua/5.1/magick/init.lua

Tank-ACiD commented 8 years ago

Third the luarocks fix request. Windows 64bit install @ C:\Program Files\ImageMagick-6.9.2-Q16

workaround... edit C:\Program Files (x86)\LuaRocks\systree\share\lua\5.1\magick\init.lua

Change line 162 from: local lib = try_to_load("MagickWand", function() ...to... local lib = try_to_load("C:/Program Files/ImageMagick-6.9.2-Q16/CORE_RLwand", function()

leafo commented 8 years ago

sorry about that, new version now live: https://luarocks.org/modules/leafo/magick/1.1.0-1

Tank-ACiD commented 8 years ago

1.1.0-1 installed, same issue persists. init.lua:163 in main chunk Failed to load ImageMagick (MagicWand)

see above fix for Windows x64

leafo commented 8 years ago

@Tank-ACiD We need a more reliable way for windows than hard-coding a path for a specific version. Is there an equivalent of pkg-config on your system, if so what does it return?

Tank-ACiD commented 8 years ago

not on windows, in fact it still gives that error "pkg-config not found" is it suppose to be an environment variable to a dir? I can set that.

On Sun, Oct 25, 2015 at 11:34 AM, leaf notifications@github.com wrote:

We need a more reliable way for windows than hard-coding a specific path. Is there an equivalent of pkg-config on your system, if so what does it return?

— Reply to this email directly or view it on GitHub https://github.com/leafo/magick/issues/13#issuecomment-150939386.