Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bundle install gives undefined method `ruby' for #<Bundler::Dsl:0x00000001c4e1f8>

Tags:

ruby

bundler

bundle install is giving:

> undefined method `ruby' for #<Bundler::Dsl:0x00000001c4e1f8>

Any idea how to fix? I'm using Ruby 1.9.3-p125.

like image 434
junky Avatar asked Jul 14 '12 02:07

junky


2 Answers

Version 1.2 of Gembundler introduced a ruby method to the dsl that allows you to specify the Ruby version your app should use.

It looks like the Gemfile you’re using was written for this new version, but the version of bundler you have doesn’t support the ruby method. You need to either install the latest bundler (gem install bundler should do it) or remove the line from your Gemfile.

like image 142
matt Avatar answered Nov 13 '22 15:11

matt


Run these commands the problem will fix

step 1: install bundler gem install bundler
step 2: bundle install

it will fix the issue..

like image 40
errakeshpd Avatar answered Nov 13 '22 16:11

errakeshpd