質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Redmine

Redmineは、プロジェクトのタスク管理、進捗管理、情報共有が可能な、 オープンソースプロジェクト管理ソフトウェアです。

Q&A

0回答

2343閲覧

CentOSでのRedmineインストールにて、bundle installが失敗する

Sutasyu127

総合スコア11

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Redmine

Redmineは、プロジェクトのタスク管理、進捗管理、情報共有が可能な、 オープンソースプロジェクト管理ソフトウェアです。

0グッド

0クリップ

投稿2019/01/24 01:59

前提・実現したいこと

CentOS 7.6にRedmine4.0をインストールしたいです。

ruby 2.6.0p0
Bundler version 2.0.1
mysql 5.7.25

発生している問題・エラーメッセージ

http://guide.redmine.jp/RedmineInstall/#step-1-redmine
↑を見ながらインストールを進めました。

しかし、Step4の
bundle install --without development test
を実行したところ、以下のメッセージが表示され失敗しました。

[root@ほげ]# bundle install --without development test Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`. Fetching gem metadata from https://rubygems.org/.......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Using rake 12.3.2 Using concurrent-ruby 1.1.4 Fetching i18n 0.7.0 Installing i18n 0.7.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using activesupport 5.2.2 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.1 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.0.4 Using actionview 5.2.2 Using rack 2.0.6 Using rack-test 1.1.0 Using actionpack 5.2.2 Using nio4r 2.3.1 Using websocket-extensions 0.1.3 Using websocket-driver 0.7.0 Using actioncable 5.2.2 Using globalid 0.4.2 Using activejob 5.2.2 Using mini_mime 1.0.1 Using mail 2.7.1 Using actionmailer 5.2.2 Using method_source 0.9.2 Using thor 0.20.3 Using railties 5.2.2 Fetching actionpack-xml_parser 2.0.1 Installing actionpack-xml_parser 2.0.1 Using activemodel 5.2.2 Using arel 9.0.0 Using activerecord 5.2.2 Using mimemagic 0.3.3 Using marcel 0.3.3 Using activestorage 5.2.2 Fetching public_suffix 3.0.3 Installing public_suffix 3.0.3 Fetching addressable 2.6.0 Installing addressable 2.6.0 Using bundler 2.0.1 Fetching css_parser 1.6.0 Installing css_parser 1.6.0 Fetching htmlentities 4.3.4 Installing htmlentities 4.3.4 Fetching mysql2 0.5.2 Installing mysql2 0.5.2 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /root/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2/ext/mysql2 /root/.rbenv/versions/2.6.0/bin/ruby -I /root/.rbenv/versions/2.6.0/lib/ruby/2.6.0 -r ./siteconf20190124-19559-8210ug.rbextconf.rb checking for rb_absint_size()... yes checking for rb_absint_singlebit_p()... yes checking for rb_wait_for_single_fd()... yes checking for -lmysqlclient... no ----- mysql client is missing. You may need to 'apt-get install libmysqlclient-dev' or'yum install mysql-devel', and try again. ----- *** 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=/root/.rbenv/versions/2.6.0/bin/$(RUBY_BASE_NAME) --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysql-config --without-mysql-config --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysqlclientlib --without-mysqlclientlib To see why this extension failed to compile, please check the mkmf.log which canbe found here: /root/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0-static/mysql2-0.5.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /root/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/mysql2-0.5.2 for inspection. Results logged to /root/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0-static/mysql2-0.5.2/gem_make.out An error occurred while installing mysql2 (0.5.2), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.5.2' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: mysql2

エラーメッセージにならって、
yum install mysql-devel
を実行すると、こちらも失敗し、下記メッセージが表示されました。

[root@ほげ redmine-4.0.1]# yum install mysql-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * ius: hkg.mirror.rackspace.com * remi-safe: ftp.riken.jp * updates: ftp.iij.ad.jp Resolving Dependencies --> Running transaction check ---> Package mariadb101u-devel.x86_64 1:10.1.35-1.ius.centos7 will be installed --> Processing Dependency: mariadb101u-libs(x86-64) = 1:10.1.35-1.ius.centos7 for package: 1:mariadb101u-devel-10.1.35-1.ius.centos7.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:mariadb101u-devel-10.1.35-1.ius.centos7.x86_64 --> Running transaction check ---> Package mariadb101u-libs.x86_64 1:10.1.35-1.ius.centos7 will be installed --> Processing Dependency: mariadb101u-common(x86-64) = 1:10.1.35-1.ius.centos7 for package: 1:mariadb101u-libs-10.1.35-1.ius.centos7.x86_64 --> Running transaction check ---> Package mariadb101u-common.x86_64 1:10.1.35-1.ius.centos7 will be installed--> Processing Dependency: mariadb101u-config(x86-64) = 1:10.1.35-1.ius.centos7 for package: 1:mariadb101u-common-10.1.35-1.ius.centos7.x86_64 --> Running transaction check ---> Package mariadb101u-config.x86_64 1:10.1.35-1.ius.centos7 will be installed--> Processing Conflict: 1:mariadb101u-config-10.1.35-1.ius.centos7.x86_64 conflicts mysql-community-server --> Processing Conflict: 1:mariadb101u-common-10.1.35-1.ius.centos7.x86_64 conflicts mysql-community-common --> Processing Conflict: 1:mariadb101u-libs-10.1.35-1.ius.centos7.x86_64 conflicts mysql-community-libs --> Finished Dependency Resolution Error: mariadb101u-config conflicts with mysql-community-server-5.7.25-1.el7.x86_64 Error: mariadb101u-common conflicts with mysql-community-common-5.7.25-1.el7.x86_64 Error: mariadb101u-libs conflicts with mysql-community-libs-5.7.25-1.el7.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

mariadb101u-configが既存のmysqlを競合していることはわかるのですが、
今回はmysqlをDBとして運用したいため、下手に削除したくないと思っています。
また、その競合解決方法も色々調べたんですがなかなか出てこず・・・。

こういった場合はどうすればよろしいでしょうか?
宜しくお願い致します。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

otn

2019/01/24 02:09

mariadbをアンインストールできないのですか?両方使う??
Sutasyu127

2019/01/24 02:32

matsuand様 ありがとうございます。 試した結果、ダウンロード成功し、その後も依存性の問題などありましたが、 無事にインストールできました。 ご回答ありがとうございました。 otn様 わかりづらくてすみません。 今回はMySQLでの運用のため、MariaDBはアンストール済みです。
otn

2019/01/24 03:04

コンフリクトと書いてあったので、メッセージをちゃんと読んでませんでした。 追加リポジトリから mysql-communityをインストールしていたのに、 今回、追加リポジトリの mysql-community-devel ではなくて、標準リポジトリの mysql-devel をインストールしようとしたからですね。
Sutasyu127

2019/01/24 03:46

otn様 そうですね・・・。すっかり見落としておりました。 この度はご回答ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問