Coder Social home page Coder Social logo

Comments (10)

isage avatar isage commented on July 26, 2024

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

from magick.

didasy avatar didasy commented on July 26, 2024
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

from magick.

saucisson avatar saucisson commented on July 26, 2024

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

from magick.

 avatar commented on July 26, 2024

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

from magick.

 avatar commented on July 26, 2024

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

from magick.

Tank-ACiD avatar Tank-ACiD commented on July 26, 2024

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()

from magick.

leafo avatar leafo commented on July 26, 2024

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

from magick.

Tank-ACiD avatar Tank-ACiD commented on July 26, 2024

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

from magick.

leafo avatar leafo commented on July 26, 2024

@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?

from magick.

Tank-ACiD avatar Tank-ACiD commented on July 26, 2024

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 [email protected] 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).

from magick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.