rake gems:install throws error - ruby-on-rails

I am trying to install queue-tip on my asterisk server using the following guide:
http://queue-tip.rubyforge.org/install.html
However I am unable to proceed past the following step as it throws this error:
rake gems:install
rake aborted!
undefined method `name' for "abstract":String
Tasks: TOP => environment
Any help please?

To install a gem, use the gem command, e.g. gem install rails. If you're in a Rails 3.x environment, add to the file Gemfile.rb in a format similar to others already included, then run bundle install from your project directory.

Related

Rake aborts in Rails 3.2.8

I had create a empty new rails project with a scaffold successfully but when I try rake db:create, it throws me an error: rake aborted! uninitialized constant Rake::DSL.
As other SO post mentioned, I tried setting my Gemfile to gem 'rake', '0.8.7', but rake gives me another error:
You have requested: rake = 0.8.7
The bundle currently has rake locked at 0.9.2.2. Try running bundle
update rake Run bundle install to install missing gems.
Then I did as the message said and update rake and bundle install. Same error.
It is nice and easy experience to develop a project a rails but it is a nightmare porting between ruby versions, rails versions, difference gem and plugin versions..
Try to delete your Gemfile.lock, and type this on your terminal:
bundle install
I had create a empty new rails project with a scaffold successfully but when I try rake db:create, it throws me an error: rake aborted! uninitialized constant Rake::DSL.
for this problem I'd suggest running all rake tasks via bundle exec rake ...

rake db:migrate (error)!

Pranay-Tares-MacBook-Pro:music_library pranaytare$ rake db:migrate
(in /Users/pranaytare/Sites/music_library)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql
(See full trace by running task with --trace)
I got this error while running rake in ROR.. plz help..
I recently installed mysql on my Mac and configured it.
Either install the gem as the error message says, or put the mysql gem in your Gemfile and run bundle install. In the Gemfile, it would be like :
gem 'mysql2'

Error in rake path

I just created a new rails app in the RubyMine IDE and it tried to run rake but gave this error:
rubygems.rb:340:in 'bin_path': can't find executable rake for rake-0.8.7 <Gem::Exception>
from C:\Ruby192\bin\rake:19:in '<main>'
I then got the same error when I tried to run it outside the IDE in a console.
Can't somebody help or offer some advice?
Is the gem installed
gem list --local | grep rake
If not then
gem install rake

Rake gems:install says "could not find table", rake db:migrate says "required gems missing"

I just cloned a github repo on a fresh Ubuntu machine, running sqlite3 for all environments. rake db:create says development.sqlite3 already exists. rake db:migrate says I'm missing a bunch of required gems and should run rake gems:install. rake gems:install, of course, says it Could not find table 'studies', which sounds to me like something rake db:migrate should fix.
I looked around the net and while lots of people have gotten 'could not find table' errors, they all got them from rake db:migrate, not rake gems:install. I'm suspecting it's an application-specific error, but still, any ideas would be appreciated.
PS: Ruby 1.8.7, Rails 2.3.8.
You can always install separate gems with gem install -r <gem name> or gem install -v=<gem version> -r <gem name> command, not using rake.
Is this a Rails 3 app? If so, you should run:
bundle install
Rails 3 uses Bundler instead of the rake tasks to manage gems. http://gembundler.com/
Did you try running with the trace option? Might help pin down the failing gem:
rake -t gems:install

Rake Gems Install Error

I am getting the following error when trying to install gems:
Mohammad-Azams-MacBook-Pro:awesomecats azamsharp$ sudo rake gems:install
Password:
(in /Projects/awesomecats)
rake aborted!
Don't know how to build task 'gems:install'
(See full trace by running task with --trace)
Mohammad-Azams-MacBook-Pro:awesomecats azamsharp$
If the task isn't listed in the output of rake -T then it isn't defined and you can't run it.
Rails 3 removed this task in favor of using Gemfile and bundler as the official gem installation procedure as gems:install was often tricky to get working properly.

Resources