Mastodon: Error: gemfile syntax error?

Created on 21 Jun 2017  ·  11Comments  ·  Source: tootsuite/mastodon

[!] There was an error parsing `Gemfile`: no implicit conversion of Symbol into Integer. Bundler cannot continue.

 #  from /dir/mastodon/Gemfile:4
 #  -------------------------------------------
 #  source 'https://rubygems.org'
 >  ruby '>= 2.3.0', '< 2.5.0'
 #  
 #  -------------------------------------------

ruby version is 2.3.1 and Ubuntu 16.04.


  • [x ] I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • [x ] This bug happens on a tagged release and not on master (If you're a user, don't worry about this).
admin support

Most helpful comment

@almafeta

$ sudo apt-get remove ruby-bundler
$ sudo gem install bundler

All 11 comments

What is the version of bundler?

Bundler version 1.11.2

Plz run

$ gem update bundler

Output:

Nothing to update

It seems you are using ubuntu xenial's ruby-bundler package (https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=ruby+bundler&searchon=names).
Try uninstall bundler installed via apt and reinstall it via gem command.

Same here:

$ gem update bundler

Updating installed gems
Updating bundler
Fetching: bundler-1.15.1.gem (100%)
rbenv: cannot rehash: /home/mastodon/.rbenv/shims/.rbenv-shim exists
Successfully installed bundler-1.15.1
Gems updated: bundler

And:

$ rails -s

[!] There was an error parsing `Gemfile`: no implicit conversion of Symbol into Integer. Bundler cannot continue.

 #  from /home/mastodon/live/Gemfile:4
 #  -------------------------------------------
 #  source 'https://rubygems.org'
 >  ruby '>= 2.3.0', '< 2.5.0'
 #  
 #  -------------------------------------------

wow, yes. It worked for me after rbenv rehash.

@matyapiro31 Have you solved this issue?

I have the same issue with v1.5.0rc2 on the same platform - ruby 2.3.1, ubuntu 16.04.

@almafeta

$ sudo apt-get remove ruby-bundler
$ sudo gem install bundler
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ccoenen picture ccoenen  ·  3Comments

phryk picture phryk  ·  3Comments

Lewiscowles1986 picture Lewiscowles1986  ·  3Comments

almafeta picture almafeta  ·  3Comments

KellerFuchs picture KellerFuchs  ·  3Comments