How I can install Heroku Gem?

Hello, I want install the Heroku Gem and I try, and try, but I haven't successfully.

Can someone help me?

Sorry, but I can search in Google and I don't found nothing.

Greetings

Hello, I want install the Heroku Gem and I try, and try, but I haven't successfully.

What happened when you tried ?

Fred

Hello Frederick, I am a newbie in the installation of gem for Ruby, but I try. To install a gem I do this:

  1. Open CMD.
  2. Write the path of my directory when I have the rails apps. In my case, C:\Users\Games\Documents\Ruby\rails_apps\
  3. Then, I go to the carpet vendor/rails of my app: C:\Users\Games\Documents\Ruby\rails_apps\rfb\vendor\rails\
  4. Here, I write this command: gem install heroku
  5. But, when I write says me:

ERROR: While executing gem … (Gem::GemNotFoundException) Could not find heroku (> 0) in any repository I think that these are the steps to follow, but I am not secure.

In the directory $path_of_rails_apps/rfb/vendor/rails/ I have the directory Heroku, and here is the files of the zip files data and metadata.

The files are:

  • /bin/heroku (file)
  • /lib/heroku.rb
  • /lib/heroku/client.rb
  • /lib/heroku/command.rb
  • /lib/heroku/commands/addons.rb
  • /lib/heroku/commands/app.rb
  • /lib/heroku/commands/auth.rb
  • /lib/heroku/commands/base.rb
  • /lib/heroku/commands/bundles.rb
  • /lib/heroku/commands/config.rb
  • /lib/heroku/commands/db.rb
  • /lib/heroku/commands/domains.rb
  • /lib/heroku/commands/help.rb
  • /lib/heroku/commands/keys.rb
  • /lib/heroku/commands/logs.rb
  • /lib/heroku/commands/maintenance.rb
  • /lib/heroku/commands/service.rb
  • /lib/heroku/commands/sharing.rb
  • /lib/heroku/commands/ssl.rb
  • /lib/heroku/commands/version.rb
  • /spec/base.rb
  • /spec/client_spec.rb
  • /spec/command_spec.rb
  • /spec/commands/addons_spec.rb
  • /spec/commands/app_spec.rb
  • /spec/commands/auth_spec.rb
  • /spec/commands/base_spec.rb
  • /spec/commands/bundles_spec.rb
  • /spec/commands/config_spec.rb
  • /spec/commands/db_spec.rb
  • /spec/commands/domains_spec.rb
  • /spec/commands/keys_spec.rb
  • /spec/commands/logs_spec.rb
  • /spec/commands/maintenance_spec.rb
  • /spec/commands/sharing_spec.rb
  • /spec/commands/ssl_spec.rb
  • /metada (file)
  • /rakefile (file)
  • /README (file) What do you think? I don’t know what is my problem.

Greetings.

Iván Hernández Cazorla wrote:

Hello Frederick, I am a newbie in the installation of gem for Ruby, but I try. To install a gem I do this:

   1. Open *CMD*.    2. Write the path of my directory when I have the rails apps. In my case,    C:\Users\Games\Documents\Ruby\rails_apps\    3. Then, I go to the carpet *vendor/rails* of my    app: C:\Users\Games\Documents\Ruby\rails_apps\rfb\vendor\rails\    4. Here, I write this command:    *gem install heroku*    5. But, when I write says me:    ERROR: While executing gem ... (Gem::GemNotFoundException)    Could not find heroku (> 0) in any repository

I think that these are the steps to follow, but I am not secure.

That should work. It sounds like your gem repositories are not set up correctly. What's the output of gem env ?

In the directory *$path_of_rails_apps/rfb/vendor/rails/* I have the directory Heroku, and here is the files of the zip files *data *and * metadata*.

That directory should not be in vendor/rails . Nothing should be in vendor/rails except what Rake puts in there.

Best,

Iván Hernández Cazorla wrote:

Hello Frederick, I am a newbie in the installation of gem for Ruby, but

I

try. To install a gem I do this:

  1. Open CMD.
  1. Write the path of my directory when I have the rails apps. In my case,

C:\Users\Games\Documents\Ruby\rails_apps\

  1. Then, I go to the carpet vendor/rails of my app: C:\Users\Games\Documents\Ruby\rails_apps\rfb\vendor\rails\
  1. Here, I write this command:

gem install heroku

  1. But, when I write says me: ERROR: While executing gem … (Gem::GemNotFoundException)

Could not find heroku (> 0) in any repository

I think that these are the steps to follow, but I am not secure.

That should work. It sounds like your gem repositories are not set up

correctly. What’s the output of gem env ?

I don’t understand these, ¿output of gem env? Sorry, that I am spanish.

In the directory $path_of_rails_apps/rfb/vendor/rails/ I have the

directory Heroku, and here is the files of the zip files *data *and *

metadata*.

That directory should not be in vendor/rails . Nothing should be in

vendor/rails except what Rake puts in there.

All right, althoug, where should be the gem directory?

Thanks :wink:

Greetings

Iván Hernández wrote:

> app: C:\Users\Games\Documents\Ruby\rails_apps\rfb\vendor\rails\ correctly. What's the output of gem env ?

I don't understand these, ¿output of gem env? Sorry, that I am spanish.

Run the command gem env and tell us the output. That's what I meant.

> > In the directory *$path_of_rails_apps/rfb/vendor/rails/* I have the > directory Heroku, and here is the files of the zip files *data *and * > metadata*.

That directory should not be in vendor/rails . Nothing should be in vendor/rails except what Rake puts in there.

All right, althoug, where should be the gem directory?

Either in your system gems (which is where the gem command installs things) or RAILS_ROOT/vendor/gems .

Thanks :wink:

Greetings

Best,

Iván Hernández wrote:

app: C:\Users\Games\Documents\Ruby\rails_apps\rfb\vendor\rails\

correctly. What’s the output of gem env ?

I don’t understand these, ¿output of gem env? Sorry, that I am spanish.

Run the command

gem env

and tell us the output. That’s what I meant.

Ok, now, I understand, this is the output message:

RubyGems Environment:

  • VERSION: 0.9.4 (0.9.4)
  • INSTALLATION DIRECTORY: C:/xampp/htdocs/ror/ruby/lib/ruby/gems/1.8
  • GEM PATH:
  • C:/xampp/htdocs/ror/ruby/lib/ruby/gems/1.8
  • REMOTE SOURCES:

I believe that I know already the problem, but, say me please.

In the directory $path_of_rails_apps/rfb/vendor/rails/ I have the

directory Heroku, and here is the files of the zip files *data *and *

metadata*.

That directory should not be in vendor/rails . Nothing should be in

vendor/rails except what Rake puts in there.

All right, althoug, where should be the gem directory?

Either in your system gems (which is where the gem command installs

things) or RAILS_ROOT/vendor/gems .

Ok, thanks.

I use Windows, because my Ubuntu is broken, tomorrow I can install the ubuntu again.

Greetings.

> Iván Hernández Cazorla wrote: > > Hello Frederick, I am a newbie in the installation of gem for Ruby, but > > I > > try. To install a gem I do this:

> > 1. Open *CMD*.

I am not an expert on doing rails stuff on Windows, but as far as I know, git will work better on cygwin or this -Google Code Archive - Long-term storage for Google Code Project Hosting. msysgit/

CMD is bad for git, I don't even know if it works. Maybe it does? But regardless, you should install the thing that I gave you above, and run your commands from that. (instead of CMD)

> > 2. Write the path of my directory when I have the rails apps. In my > > case, > > C:\Users\Games\Documents\Ruby\rails_apps\ > > 3. Then, I go to the carpet *vendor/rails* of my > > app: C:\Users\Games\Documents\Ruby\rails_apps\rfb\vendor\rails\

Be in the root of your app, not vendor\rails.

so be in C:\Users\Games\Documents\Ruby\rails_apps\rfb\

> > 4. Here, I write this command: > > *gem install heroku* > > 5. But, when I write says me: > > ERROR: While executing gem ... (Gem::GemNotFoundException) > > Could not find heroku (> 0) in any repository

> > I think that these are the steps to follow, but I am not secure.

Try-- gem install rubygems-update

in your command line

> That should work. It sounds like your gem repositories are not set up > correctly. What's the output of gem env ?

I don't understand these, ¿output of gem env? Sorry, that I am spanish.

type "gem env" (without the quotes) in the command line. thats what he meant

woops sorry for the repost, you guys beat me

Iván Hernández wrote:

Thanks David, then I try with this project that you show me.

Don’t worry and thanks for the help.

Greetings

Yeah, thank you very much.

The problem was the version of RubyGems.

Uff, thanks, you (David and Marnen) are my salvation.

Greetings.