It gives the following error:

"D:\RubyMine 2018.1.4\bin\runnerw.exe" C:\RailsInstaller\Ruby2.3.3\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Users/FLOGmall/Desktop/blo/bit/bin/rails server -b 127.0.0.1 -p 3000 -e production Failed to load libmysql.dll from C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/mysql2-0.5.2/vendor/libmysql.dll Process finished with exit code 1 

Looked at the guides how this problem is solved, the connector has been installed, the old gem has been deleted, but it still gives an error, what could be the problem? Here is just in case the gem file:

 source 'https://rubygems.org' ruby '2.3.3' gem 'rails', '>= 4.2.5.1' gem 'sprockets', '3.5.2' gem 'mysql2' gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.1.0' gem 'jquery-rails' gem 'jbuilder', '~> 2.0' gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw] gem 'coffee-script-source', '1.8.0', platforms: [:mingw, :mswin, :x64_mingw] gem 'bootstrap-sass' gem 'devise' gem 'high_voltage' gem 'pundit' gem 'simple_form' gem 'font-awesome-sass' gem 'autoprefixer-rails' gem 'annotate' gem 'paperclip', '~> 4.3' gem 'papercrop' gem 'remotipart', '~> 1.2' gem 'cocoon' gem 'filterrific', github: 'jhund/filterrific' gem 'will_paginate' gem 'axlsx_rails' gem 'axlsx_styler' gem 'ionicons-rails' gem 'carrierwave', github: 'carrierwaveuploader/carrierwave' gem "paranoia", "~> 2.0" gem 'ckeditor', github: 'galetahub/ckeditor' gem 'paper_trail' group :development do gem 'better_errors' gem 'binding_of_caller' gem 'quiet_assets' gem 'rails_layout' gem 'meta_request' gem 'thin' gem 'web-console', '~> 2.0' gem 'spring' gem 'sqlite3', platforms: [:mingw, :mswin, :x64_mingw] end group :development, :test do gem 'byebug' end 

    1 answer 1

    Good day.

    Considering that it swears at the absence of the libmysql.dll library, it is possible that you have not installed mysql2 itself, or the paths to the libraries are not specified in the PATH variable.

    • Which library path should I register? To the most mysql2 that went along with the railsinistaler or to the connector? - Strockin
    • The path to the libmysql.dll library. I can be mistaken about the installation of mysql and pq gems in windos, but for ubuntu it is assumed that the corresponding database clients are already installed on the system. - Nik