Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
saucisson opened this issue Jun 4, 2015 · 10 comments
Closed

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

saucisson opened this issue Jun 4, 2015 · 10 comments

Comments

@saucisson
Copy link

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

@isage
Copy link

isage commented Jun 13, 2015

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

@didasy
Copy link

didasy commented Jul 2, 2015

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

@leafo leafo closed this as completed in ffc8f1f Aug 19, 2015
leafo added a commit that referenced this issue Aug 19, 2015
FIX #13 use pkg-config rather than MagickWand-config
@saucisson
Copy link
Author

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

@ghost
Copy link

ghost commented Oct 20, 2015

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

@ghost
Copy link

ghost commented Oct 20, 2015

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
Copy link

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_RL_wand_", function()

@leafo
Copy link
Owner

leafo commented Oct 22, 2015

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

@Tank-ACiD
Copy link

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
Copy link
Owner

leafo commented Oct 25, 2015

@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
Copy link

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
#13 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants