It is not possible to run a hero or a tramp in cygwin, but OK in cmd

Somehow I can't defeat a tramp or hero in cygwin. It works fine when I use the standard cmd application for Windows, but in cygwin I get this error for strollers:

C: /vagrant/vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb: 247: in to_specs': could not find the firewall (> = 0) among [] (Gem :: LoadError) from C: /vagrant/vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb: 256: in_spec 'from C: /vagrant/vagrant/embedded/lib/ruby/site_ruby/1.9. 1 / rubygems.rb: 1231: in gem 'from C: / vagrant / vagrant / embedded / gems / bin / vagrant: 22: in'

And for heroku:

C: \ Program Files (x86) \ ruby-1.9.2 \ bin \ ruby.exe: there is no such file or directory - / cygdrive / c / Program Files (x86) / Heroku / bin / heroku (LoadError)

What is this ruby? I have no idea what I should do - development in windows is a real pain, can anyone let me know how I can solve this problem?

Appreciate any help. Thank!

+5
source share
4 answers

I ran into the same issue using Rails and Heroku on Windows.

It seems that Toolbelt is not supported by the Cygwin . In addition, colors do not always display correctly (for example, I was unable to display the colors of the hero’s logs, even after using ansicon -i ).

I also considered using CMD Prompt, complemented by GOW , but that means you have to add “.bat” to each command, and colors still remain a problem.

Git Bash, RailsInstaller . , , (, , rspec, ..).

+5

, , , , Windows Cygwin.

-, Cygwin, , , ( ):

/ruby: No such file or directoryin/heroku: line 4: /cygdrive/d/Development/Heroku/ruby-1.9.2/bin

, Cygwin , / .., , .

, Heroku Cygwin:

(1) RubyGem 1.9.3 http://rubyforge.org/frs/download.php/76072/rubygems-1.8.24.zip

(2) -

$ unzip rubygems-1.8.24.zip
$ cd rubygems-1.8.24/rubygems-1.8.24
$ ruby setup.rb install
$ gem update --system
$ gem install heroku

(3) -

$ heroku version
heroku-gem/2.28.10 (i386-cygwin) ruby/1.8.7

, heroku Cygwin Windows.

+4

@ . :

1) RubyGem zip: https://rubygems.org/pages/download

2) gem heroku

alias gem='C:/ruby/bin/gem'
alias heroku='"C:/Program Files (x86)/Heroku/bin/heroku.bat"'

3) ,

ruby setup.rb install
gem update --system
gem install heroku

4)

heroku login
+1

, .

alias heroku=c:/Program\\\ Files\\\ \\\(x86\\\)/Heroku/bin/heroku.bat

Then I can just use the command herokudirectly with Cygwin.

The only thing I came across was heroku login(and by extension, git push heroku master), which is why I am invited to use cmd.exe. For this part, I simply open the Git Bash window from the corresponding folder, log in and click from there.

0
source

All Articles