Re: gem 'mysql2'でエラーが発生してインストール出来ない

1,507 views
Skip to first unread message
Message has been deleted
Message has been deleted

sioaj...@gmail.com

unread,
Dec 28, 2022, 8:17:26 AM12/28/22
to Redmine Users (japanese)
しおあじと申します。
私は、こちらの方法で解決しました。

gem install mysql2 --platform=ruby -- --with-mysql-lib="C:/Program Files/MariaDB 10.10/lib"
bundle config set --local without 'development test'
bundle install

この後、Step 5 - セッションストア秘密鍵の生成に進みました。

補足:インストールガイドにもヒントがありました。
http://guide.redmine.jp/RedmineInstall/#windows

2022年12月9日金曜日 6:21:04 UTC+9 yoshihir...@gmail.com:
インストールガイド(http://guide.redmine.jp/RedmineInstall/)を参照し、
Windows 環境にRedmine5.0.4をインストールしたところ、
bundle install --without development test の実行で
以下のエラーが発生しました。
どうすればインストールできるでしょうか。


[エラー内容]
Installing mysql2 0.5.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/mysql2-0.5.4/ext/mysql2
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r
./siteconf20221209-3288-whwhv6.rb extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enc_interned_str() in ruby.h... no
*** 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.


[動作環境]
Windows Server 2016
Redmine 5.0.4
MariaDB 10.10.2
Ruby 2.7.7

Reply all
Reply to author
Forward
Message has been deleted
0 new messages