skip to Main Content

I have an existing project. I have upgraded that into Ruby24-x64, I am trying to run that but i am getting the above error. I have been trying since 2 days but no luck. I am facing the above issue that is related RMagick .

please let me know if anybody have an idea about the above error.

Thanks in advance.

This is my Gemfile.

source 'https://rubygems.org'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
# gem 'rails', '4.0.0'
gem 'rails', '>= 5.0.0.rc2', '< 5.1'


# Use mysql as the database for Active Record
gem 'mysql2'
# gem 'mysql2', '~> 0.3.18'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
 #gem 'pg'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.1.0'

gem "rspec"
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby
#gem 'will_paginate', '~> 3.0.6'

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
gem 'shareable'
gem 'pry'
gem 'social-share-button'

gem 'pry-nav'

group :doc do
  # bundle exec rake doc:rails generates the API under doc/api.
  gem 'sdoc', require: false
end

group :development do
 gem 'meta_request'
 # gem "letter_opener"
end

gem 'roo'
gem 'devise'
gem 'carrierwave'
gem 'mini_magick' # require with Ckeditor gem
gem 'will_paginate', '~> 3.0'
gem "cancan"
gem 'rmagick'
gem "nested_form"
gem "stripe"
gem 'bootstrap-x-editable-rails'
gem 'tinymce-rails'
gem 'devise_security_extension'
gem 'tinymce-rails-imageupload', '~> 4.0.0.beta'
# Use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'byebug'
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Use unicorn as the app server
# gem 'unicorn'
 gem 'whenever', :require => false

# Use Capistrano for deployment
# gem 'capistrano', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

# sms sender gem
gem 'twilio-ruby', '~> 3.12'
gem 'rails_refactor', '~> 1.3'
gem 'coupon_code', '~> 0.0.1'
gem 'goog_currency'
gem 'bcrypt', '~> 3.1.7'
gem "ckeditor"

gem 'omniauth-facebook'
gem 'rollbar'

Error is

DEPRECATION WARNING: Accessing mime types via constants is deprecated. Please ch
ange `Mime::JSON` to `Mime[:json]`. (called from <top (required)> at D:/pinki/Ca
rPartSnigeria/CarPartSnigeria_12_12/trunk/config/application.rb:6)
D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/activesupport-5.0.6/li
b/active_support/dependencies.rb:293:in `require': 126: The specified module cou
ld not be found.   - D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/r
magick-2.16.0/lib/RMagick2.so (LoadError)
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/activesup
port-5.0.6/lib/active_support/dependencies.rb:293:in `block in require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/activesup
port-5.0.6/lib/active_support/dependencies.rb:259:in `load_dependency'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/activesup
port-5.0.6/lib/active_support/dependencies.rb:293:in `require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rmagick-2
.16.0/lib/rmagick_internal.rb:12:in `<top (required)>'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/activesup
port-5.0.6/lib/active_support/dependencies.rb:293:in `require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/activesup
port-5.0.6/lib/active_support/dependencies.rb:293:in `block in require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/activesup
port-5.0.6/lib/active_support/dependencies.rb:259:in `load_dependency'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/activesup
port-5.0.6/lib/active_support/dependencies.rb:293:in `require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/rmagick-2
.16.0/lib/rmagick.rb:1:in `<top (required)>'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1
.16.0/lib/bundler/runtime.rb:81:in `require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1
.16.0/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1
.16.0/lib/bundler/runtime.rb:76:in `each'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1
.16.0/lib/bundler/runtime.rb:76:in `block in require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1
.16.0/lib/bundler/runtime.rb:65:in `each'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1
.16.0/lib/bundler/runtime.rb:65:in `require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/bundler-1
.16.0/lib/bundler.rb:114:in `require'
        from D:/pinki/CarPartSnigeria/CarPartSnigeria_12_12/trunk/config/applica
tion.rb:6:in `<top (required)>'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-
5.0.6/lib/rails/commands/commands_tasks.rb:88:in `require'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-
5.0.6/lib/rails/commands/commands_tasks.rb:88:in `block in server'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-
5.0.6/lib/rails/commands/commands_tasks.rb:85:in `tap'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-
5.0.6/lib/rails/commands/commands_tasks.rb:85:in `server'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-
5.0.6/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
        from D:/pinki/ProgramFiles/Ruby24-x64/lib/ruby/gems/2.4.0/gems/railties-
5.0.6/lib/rails/commands.rb:18:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'

2

Answers


  1. RMagick is really annoying to install because it requires system binaries for ImageMagick.

    Specifically, a slightly older version of ImageMagick. As of January 2018, 6.9.1 at the latest, which is no longer archived on the ImageMagick site. Older versions are a bit hard to find, particularly for Windows but here’s one ftp archive: http://ftp.icm.edu.pl/packages/ImageMagick/binaries/

    Once you have a correct version of ImageMagick installed, be sure that you have your PATH settings configured. The up-to-date RMagick guide for the Windows installation process is at: https://github.com/rmagick/rmagick/wiki/Installing-on-Windows

    Login or Signup to reply.
  2. I ran into the same problem today and the solution seems that you simply have to copy all the dll files from the ImageMagick folder to the Rubybin folder.

    It seems this is an older issue and there is no solution as such and only a workaround available for it. But for the time being, it should work.

    Source:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search