“rmagick” gem installation issue

后端 未结 8 922
温柔的废话
温柔的废话 2021-01-31 01:26

I am having issue while trying to install \"rmagick\" gem on centos. Following is the output I am having. Can anyone please help me identifying what package I am missing

8条回答
  •  情话喂你
    2021-01-31 01:57

    The error message says:

    Package MagickCore was not found in the pkg-config search path.
    Perhaps you should add the directory containing `MagickCore.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'MagickCore' found
    

    It seems you missing no package at all, you just have to tell pkg-config where to find the MagickCore.pc file to build the extension. If you have installed the package ImageMagick-devel using yum the file should be inside the directory /usr/lib/pkgconfig or /usr/lib64/pkgconfig (depending on your architecture). Check with this command (from now I assume you are on a amd64 machine, if it's not the case replace lib64 with lib):

    $ find /usr/lib64/pkgconfig -name MagickCore.pc
    

    If the file is there you just have to install rmagick with this command:

    $ PKG_CONFIG_PATH='/usr/lib64/pkgconfig' gem install rmagick
    

提交回复
热议问题