Project

General

Profile

need help: cannot install rack-cache (done)

Added by Bright Shen over 8 years ago

It is reported error when I try to install redmine 3.1.1.1 in centOS 6.5
after bundler installed.

[root@test2 redmine]# rake db:migrate RAILS_ENV="production"
(in /usr/local/redmine)
Gemfile syntax error:
/usr/local/redmine/Gemfile:20: syntax error, unexpected ':', expecting $end
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
^
[root@test2 redmine]# bundle install
Gemfile syntax error:
/usr/local/redmine/Gemfile:20: syntax error, unexpected ':', expecting $end
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]

how to fix it? ^
Any suggestion is welcome!

I tried with redmine 2.6.7. It looks OK now.
but new error:

[root@test2 config]# bundle install
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies.............
Using rake (10.4.2)
Using i18n (0.6.11)
Using multi_json (1.11.2)
Using activesupport (3.2.22)
Using builder (3.0.4)
Using activemodel (3.2.22)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.7)

Gem::InstallError: rack-cache requires Ruby version >= 1.9.3.
An error occurred while installing rack-cache (1.5.1), and Bundler cannot continue.
Make sure that `gem install rack-cache -v '1.5.1'` succeeds before bundling.
[root@test2 config]# gem install rack-cache -v '1.5.1'
ERROR: Error installing rack-cache:
rack-cache requires Ruby version >= 1.9.3.

[root@test2 config]# sudo yum install ruby
Loaded plugins: security
Setting up Install Process
Package ruby-1.8.7.374-4.el6_6.i686 already installed and latest version
Nothing to do

I updated to 2.0, redmine installed successfully!


Replies (2)

RE: need help: Gemfile syntax error - Added by Toshi MARUYAMA over 8 years ago

You use Ruby 1.8.7.

RE: need help: Gemfile syntax error - Added by Toshi MARUYAMA over 8 years ago

Toshi MARUYAMA wrote:

You use Ruby 1.8.7.

It is for "syntax error, unexpected ':'".

    (1-2/2)