Project

General

Profile

ERROR: bundle install --without development test

Added by Adilson Costa over 9 years ago

I have this error to install bundle:

[!] There was an error parsing `Gemfile`: compile error - syntax error, unexpected ':', expecting $end
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
                             ^. Bundler cannot continue.

 #  from /home/teamproj/rails_apps/wickbold/Gemfile:18
 #  -------------------------------------------
 #  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
 >  gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
 #  gem "rbpdf", "~> 1.18.5" 
 #  -------------------------------------------

How fix it?


Replies (5)

RE: ERROR: bundle install --without development test - Added by Mischa The Evil over 9 years ago

I created #20068 for this syntax error. What bundler version are you using (bundle version)?

RE: ERROR: bundle install --without development test - Added by Toshi MARUYAMA over 9 years ago

"platforms:" is valid Ruby 1.9 hash syntax.
I think you use Ruby 1.8.7.

RE: ERROR: bundle install --without development test - Added by Jongpil Park over 8 years ago

Toshi MARUYAMA wrote:

"platforms:" is valid Ruby 1.9 hash syntax.
I think you use Ruby 1.8.7.

i also have same error. but i use Ruby 2.3.1

RE: ERROR: bundle install --without development test - Added by Toshi MARUYAMA over 8 years ago

Jongpil Park wrote:

Toshi MARUYAMA wrote:

"platforms:" is valid Ruby 1.9 hash syntax.
I think you use Ruby 1.8.7.

i also have same error. but i use Ruby 2.3.1

What is output "ruby --version"?

RE: ERROR: bundle install --without development test - Added by Oksana C almost 8 years ago

For Ruby version 1.9.3 and higher the syntax should be:

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', :platforms => [:mingw, :x64_mingw, :mswin, :jruby]

    (1-5/5)