Как я могу настроить Rmagick Gem для использования с Graphics Magick в Rails 6 и ОС: Centos 8 - PullRequest
0 голосов
/ 18 марта 2020

Я пытаюсь установить rmagick gem через упаковщик для использования Graphics Magick в моем приложении, оно выдает мне следующую ошибку

/usr/local/rvm/rubies/ruby-2.6.2/bin/ruby -I /usr/local/rvm/rubies/ruby-2.6.2/lib/ruby/site_ruby/2.6.0 -r ./siteconf20200318-18148-z40auk.rb extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
checking for ImageMagick version >= 6.4.9... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/rvm/rubies/ruby-2.6.2/bin/$(RUBY_BASE_NAME)
extconf.rb:154:in ``': No such file or directory - convert (Errno::ENOENT)
    from extconf.rb:154:in `block in <main>'
    from /usr/local/rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/mkmf.rb:959:in `block in checking_for'
    from /usr/local/rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/mkmf.rb:361:in `block (2 levels) in postpone'
    from /usr/local/rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/mkmf.rb:331:in `open'
    from /usr/local/rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/mkmf.rb:361:in `block in postpone'
    from /usr/local/rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/mkmf.rb:331:in `open'
    from /usr/local/rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/mkmf.rb:357:in `postpone'
    from /usr/local/rvm/rubies/ruby-2.6.2/lib/ruby/2.6.0/mkmf.rb:958:in `checking_for'
    from extconf.rb:151:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /opt/webserver/worldsmart_quotenow/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/rmagick-2.13.4/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /opt/webserver/worldsmart_quotenow/vendor/bundle/ruby/2.6.0/gems/rmagick-2.13.4 for inspection.
Results logged to /opt/webserver/worldsmart_quotenow/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/rmagick-2.13.4/gem_make.out

Rails версия - 6

Centos версия - 8

Ruby - 2.6.3

Grahics Magick (gm) версия -1.3.34

Заранее спасибо

...