I have cloned a project and ran it locally on my machine. I'm getting an error when i run rake db:migrate.
Can anyone please explain this to me? I have attached an image showing the error I am receiving.
Error Received
You need to update your rails gem, from 3.2.19 to 3.2.22.
You can edit your gemfile to look like this:
gem 'rails', '3.2.22'
and then run
bundle update rails
Try following command:
rake db:scheme:load
Related
I am following this instruction, "Getting Started with Neo4j and Ruby", https://neo4j.com/developer/ruby-course/.
Here is how you would setup your asset portal Rails app:
rails new asset_portal -m http://neo4jrb.io/neo4j/neo4j.rb -O
cd asset_portal
rake neo4j:install[community-latest]
rake neo4j:start
But after I run
rake neo4j:install[community-latest]
I got this note
The `neo4j-rake_tasks` gem is no longer a dependency of the `neo4j-core` gem.
If you would like to use the rake tasks, you will need to explicitly include the `neo4j-rake_tasks` gem in your project.
Please note that the `neo4j-rake_tasks` gem is only for development and test environments (NOT for production).
Be sure to require the `neo4j-rake_tasks` gem AFTER the `neo4j-core` and `neo4j` gems.
For more details see the Neo4j.rb documentation
What can I do now to make this statement, rake neo4j:install[community-latest], work?
Thanks!
only add the flowing snippet
gem 'neo4j-rake_tasks'
bundle install
Hopefully would solve your problem.
I need to add the following lines to GemFile
gem 'neo4j-core'
gem 'neo4j-rake_tasks'
And then run the commands
bundle install
rake neo4j:install[community-latest]
rake neo4j:start
I am using Sinatra and ruby on AWS, I have tried with both 2.1 and 1.9.3 using the AWS cli to create my elasticbeanstalk application.
I have installed the mandrill-api gem on my local machine and ruin bundle install (although that may not be necessary) and included it in the Gemfile gem 'mandrill-api' and in the app.rb file require'mandrill-api'`
but I keep getting the "Load error" cannot load mandrill-api.
Has anybody encountered and resolved this problem?
Many thanks.
You need to require 'mandrill', not mandrill-api. See the docs
Here is the error on typing rake db:setup
git://github.com/leftbee/em-postgresql-adapter.git (at master) is not checked out. Please run `bundle install`
So i tried to run bundle install but after that still getting this error.
I'm following this getting started post
https://github.com/djones/grape-goliath-example
Try bundle exec rake db:setup instead.
I've wanted to have a look at Sinatra after a long hiatus so I looked for a boilerplate to get it up on running on heroku quickly and found this > https://github.com/froots/sinatra-heroku-boilerplate
It seems to have everything I would need so I did bundle install, but whenever I fire up shotgun I'm running into this error:
Something went wrong while loading config.ru
NameError: uninitialized constant Object::DataMapper
In the Gemfile, line 5 - it should be gem 'data_mapper', not gem "datamapper", ">=1.1.0"
Once you've updated the gemfile, do another bundle install
Update:
I've submitted a pull request for the author to fix his code: https://github.com/froots/sinatra-heroku-boilerplate/pull/2
I m trying to install the Octopress on my windows. As per their Tutorial on their website. But when I type the command
rake install
It gives me the following error
C:\Documents and Settings\admin\octopress>rake install
rake aborted!
You have already activated rake 0.9.2.2, but your Gemfile requires rake 0.9.2. U
sing bundle exec may solve this.
(See full trace by running task with --trace)
And as the error says I need to install rake 0.9.2
I tried it doing with the following command.
C:\Documents and Settings\admin\octopress>gem install rack -v=0.9.2.0
ERROR: Could not find a valid gem 'rack' (= 0.9.2.0) in any repository
ERROR: Possible alternatives: rack
I already have Ruby & Gems installed on my PC. But I m not able to figure out how to solve this issue. How do I even use the "bundle exec" to install Octopress ?
You probably need to use the bundle exec in this way
bundle exec rake install
This might just solve you problem.
I solve this with bundle update
it's a dependency problem and not big deal
The first time you spelled it rake and the second time you spelled it rack
First update the documentation to say,
bundle exec rake install
Then update the Gemfile.lock with,
bundle update