差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| 環境構築:Redmine:gemインストール補足 [2022/11/30 08:44] – 削除 - 外部編集 (Unknown date) 127.0.0.1 | 環境構築:Redmine:gemインストール補足 [2025/04/12 05:15] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ### gemインストール補足 | ||
| + | |||
| + | 下記のコマンドを実行すると、正常にインストールすることは出来なかった。 | ||
| + | |||
| + | ``` | ||
| + | $ bundle install --without development test --path vendor/ | ||
| + | ``` | ||
| + | |||
| + | 下記が出力されたエラー文の抜粋 | ||
| + | |||
| + | ``` | ||
| + | Fetching mysql2 0.5.3 | ||
| + | Installing mysql2 0.5.3 with native extensions | ||
| + | Gem:: | ||
| + | |||
| + | current directory: / | ||
| + | / | ||
| + | ./ | ||
| + | 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 'sudo apt-get install libmariadb-dev', | ||
| + | install libmysqlclient-dev' | ||
| + | ----- | ||
| + | *** extconf.rb failed *** | ||
| + | Could not create Makefile due to some reason, probably lack of necessary | ||
| + | libraries and/or headers. | ||
| + | need configuration options. | ||
| + | ``` | ||
| + | |||
| + | エラー文より、「mysql client」が不足しているのが分かる。 | ||
| + | |||
| + | そこで、下記のコマンドを実行する。 | ||
| + | |||
| + | ``` | ||
| + | $ yum install mysql-client | ||
| + | ``` | ||
| + | |||
| + | しかし、またもエラーが出力される。下記は抜粋。 | ||
| + | |||
| + | ``` | ||
| + | curl#77 - " | ||
| + | ・・・ | ||
| + | ・・・ | ||
| + | The GPG keys listed for the "MySQL 8.0 Community Server" | ||
| + | Check that the correct key URLs are configured for this repository. | ||
| + | ``` | ||
| + | |||
| + | 1行目のエラーから、何かしら「SSL CA」に問題があることが分かる。 | ||
| + | |||
| + | とりあえず、エラーをそのままググると次のページが参考にできた。 | ||
| + | |||
| + | https:// | ||
| + | |||
| + | 上記サイトを参考に、CA証明書を削除して、再インストールを実施する。 | ||
| + | |||
| + | ``` | ||
| + | $ rm -f / | ||
| + | $ yum reinstall -y ca-certificates | ||
| + | ``` | ||
| + | |||
| + | その後、再度 //$ yum install mysql-client// | ||
| + | |||
| + | さらに、最終的に // $ bundle install --without development test --path vendor/ | ||
| + | |||
| + | ##### 参考サイト | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| + | |||