[!] 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.
master (If you're a user, don't worry about this).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§ion=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'
#
# -------------------------------------------
@xvilo Did you check https://github.com/rbenv/rbenv/issues/759 ?
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
Most helpful comment
@almafeta