“rmagick” gem installation issue

后端 未结 8 906
温柔的废话
温柔的废话 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 02:08

    The problem is, as the error puts it,

    Package MagickCore was not found in the pkg-config search path

    The solution is also suggested there:

    add the directory containing MagickCore.pc to the PKG_CONFIG_PATH environment variable

    So,

    1. Find MagickCore.pc location:

      sudo find / -name MagickCore.pc
      
    2. If it is not found, probably ImageMagick is not installed on your system — then install it (Google how to do it, as it depends on the OS)

    3. Save it to the ENV var like that (make sure to put the path found in step 1):

      PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
      
    4. Retry installing RMagick

提交回复
热议问题