yukka-1223
@yukka-1223

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

bundle install がエラーになってしまう

※超初心者です。

Ubuntu 22.04.5 LTS に以下のサイトを参考にRedmine5.1 を構築しようとしていますが
bundle install を実行するとエラーとなってしまいます。

エラーになってしまう原因、解決策をご教授お願いいたします。

発生している問題・エラー

root@tas-redmine-service:/var/lib/redmine# sudo bundle install
Don't run Bundler as root. Installing your bundle as root will break this application for all non-root users on this
machine.
Fetching source index from https://rubygems.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <Net::OpenTimeout: Failed to open TCP connection to rubygems.org:443 (execution expired) (https://rubygems.org/specs.4.8.gz)>

Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <Net::OpenTimeout: Failed to open TCP connection to rubygems.org:443 (execution expired) (https://rubygems.org/specs.4.8.gz)>

Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ due to underlying error <Net::OpenTimeout: Failed to open TCP connection to rubygems.org:443 (execution expired) (https://rubygems.org/specs.4.8.gz)>

Could not fetch specs from https://rubygems.org/ due to underlying error <Net::OpenTimeout: Failed to open TCP connection
to rubygems.org:443 (execution expired) (https://rubygems.org/specs.4.8.gz)>

自分で試したこと

wget で specs.4.8.gz を取得することはできています。

0

1Answer

Don't run Bundler as root. Installing your bundle as root will break this application for all non-root users on this
machine.

rootでインストールするな、ということでは?

0Like

Your answer might help someone💌