Redmine 2.5をCentOS 6.5にインストールする際に下記のサイトを参考にしたが、Gemパッケージのインストールで、下記のエラーを表示した。
参考にしたサイト
http://blog.redmine.jp/articles/2_5/installation_centos/
#Gemパッケージのインストール
# 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.
Could not locate Gemfile or .bundle/ directory
Gemfileが見つからないとの事なので、findでGemfileを探す
# find / -name Gemfile
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.13.5/lib/bundler/templates/Gemfile
/var/lib/redmine/Gemfile
/var/lib/redmine/Gemfileにあるとの事
cd でvar/lib/redmine/ 配下に移動しbundle installを再実施
# cd /var/lib/redmine/
# 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.
Fetching gem metadata from https://rubygems.org/..............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies....
Rubygems 2.0.14 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
Installing rake 11.3.0
Installing i18n 0.7.0
Installing multi_json 1.12.1
Installing builder 3.0.0
Installing erubis 2.7.0
Installing journey 1.0.4
Installing rack 1.4.7
Installing hike 1.2.3
Installing tilt 1.4.1
Installing mime-types 1.25.1
Installing polyglot 0.3.5
Installing arel 3.0.3
Installing tzinfo 0.3.51
Using bundler 1.13.5
Installing coderay 1.1.1
Installing json 1.8.3 with native extensions
Installing thor 0.19.1
Installing mysql2 0.3.21 with native extensions
Installing net-ldap 0.3.1
Installing ruby-openid 2.3.0
Installing redcarpet 2.3.0 with native extensions
Installing rmagick 2.16.0 with native extensions
Installing activesupport 3.2.17
Installing rack-cache 1.6.1
Installing rack-test 0.6.3
Installing rack-ssl 1.3.4
Installing sprockets 2.2.3
Installing treetop 1.4.15
Installing rdoc 3.12.2
Installing rack-openid 1.4.2
Installing activemodel 3.2.17
Installing mail 2.5.4
Installing actionpack 3.2.17
Installing activerecord 3.2.17
Installing activeresource 3.2.17
Installing actionmailer 3.2.17
Installing railties 3.2.17
Installing awesome_nested_set 2.1.6
Installing jquery-rails 2.0.3
Installing rails 3.2.17
Bundle complete! 21 Gemfile dependencies, 40 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
#
最後に何かメッセージがあるが
1.9.2以上なら関係ないよとの事
うまくいった模様