Rake db: create not working

I am trying to use a RoR project. I went through the installation steps.
Then I tried to run rake db:create and I get an error:

rake aborted!
Bundler couldn’t find some gems.Did you run bundle install?

On running gem list, I find


rack (1.0.1)
rails (2.3.5)
rake (0.9.2.2)

I tried rake db:create --trace and have attached the result.

Ruby Version: ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux]
Rails Version: Rails 2.3.5

OS: Ubuntu 12.04

I am a complete beginner, please help.(By the way, I connect to Internet
via proxy).

Thanks.

As suggested by the error message you received from your attempt to run
rake, make sure that you have installed the required gems using bundler:

bundle install

Run that from within the root of the project. Then you need to run rake
via bundle exec:

bundle exec rake db:create

That ensures that the correct version of rake is used.

-Jeremy

Thanks a lot. Could you help me with running bundle install from behind
a proxy?

Thanks.

I can’t help much, but this isn’t really the correct forum for such a
discussion anyway. My suggestion is that you search for how to
configure the gem command to make use of a proxy. Bundler should use
those same settings under the covers when it’s installing gems.

You may also find specific information about using proxies with bundler
itself, so take a look around if you haven’t already.

Finally, there is probably some sort of forum where the bundler folks
hang out. I’m not sure where that is offhand, but you should be able to
dig it up with a little effort.

Good luck!

-Jeremy

On Tue, 26 Jun 2012 22:51:23 +0900
Sakchhi S. [email protected] wrote:

Thanks a lot. Could you help me with running bundle install from
behind a proxy?

Use http_proxy environment variable

export http_proxy=http://user:password@host:port
bundle install


Sincerely yours,
Aleksey V. Zapparov A.K.A. ixti
FSF Member #7118
Mobile Phone: +34 677 990 688
Homepage: http://www.ixti.net
JID: [email protected]

*Origin: Happy Hacking!