Syntax error: put 0 before dot - ruby '2.4.1'

1,165 views
Skip to first unread message

Luke Connell

unread,
Apr 29, 2017, 3:58:46 AM4/29/17
to Ruby or Rails Oceania
Hello all. Anyone have an idea how to fix this issue?

My first error said:

Lukes-MacBook-Pro:ruby-getting-started lukeconnell$ bundle install

Your Ruby version is 2.4.1, but your Gemfile specified 2.3.4


To fix this I edited the gemfile to update the ruby version. The new error I receive is below:


Lukes-MacBook-Pro:ruby-getting-started lukeconnell$ bundle install


[!] There was an error parsing `Gemfile`: no .<digit> floating literal anymore; put 0 before dot - ruby ‘2.4.1’

          ^

/Users/lukeconnell/ruby-getting-started/Gemfile:2: syntax error, unexpected tFLOAT, expecting '('

ruby ‘2.4.1’

             ^. Bundler cannot continue.


 #  from /Users/lukeconnell/ruby-getting-started/Gemfile:2

 #  -------------------------------------------

 #  source 'https://rubygems.org'

 >  ruby ‘2.4.1’

 #  

 #  -------------------------------------------

Lukes-MacBook-Pro:ruby-getting-started lukeconnell$

Pat Allan

unread,
Apr 29, 2017, 4:01:13 AM4/29/17
to rails-...@googlegroups.com
Hi Luke

It looks like you’re using the wrong quote type around the version number - they should be straight (like you’ve got around the source value), rather than angled/curly quotes.

— 
Pat

-- 
You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-oceani...@googlegroups.com.
To post to this group, send email to rails-...@googlegroups.com.
Visit this group at https://groups.google.com/group/rails-oceania.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages