I have the same problem as here Unable to run "on Heroku
As recommended in the resolution of the above publication, I already have Cygwin installed - not a new installation, since it has been sitting on my machine for several months. Since all the gems necessary for the application are installed, and the test application has been successfully deployed and works on Heroku, I believe that I do not need to do any additional (gems or other) settings through the Cygwin window. When I run the "heroku run rails console --app" command on Cygwin, it gives me the same error as when running the command on a Windows terminal -
C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.2.4/lib/heroku/helpers.rb:213:in ``': No such file or directory - tput cols (Errno::ENOENT)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.2.4/lib/heroku/helpers.rb:213:in `get_terminal_environment'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.2.4/lib/heroku/command/run.rb:16:in `index'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.2.4/lib/heroku/command.rb:114:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/heroku-2.2.4/bin/heroku:14:in `<top (required)>'
from C:/Ruby192/bin/heroku:19:in `load'
from C:/Ruby192/bin/heroku:19:in `<main>'
Now it seems strange that Cygwin is referencing the path through C: /, whereas I expect it to take it from / cygdrive / c /. To make sure that I ran the simple gem list command from the rails application directory in Cygwin and of course I got this error
$ gem list
C:\Ruby192\bin\ruby.exe: No such file or directory -- /cygdrive/c/Ruby192/bin/gem (LoadError)
However, if I run the same gem list command when I am in the C: \ Ruby192 \ bin directory where the ruby and gem commands are installed, the command works fine and lists all my gems. Apparently, somehow Cygwin gets C: / paths, which it does not seem to know how to interpret.
Looks like I missed something in common on how to get Cygwin to read these paths correctly.
It seems I don’t see what I am missing here.
Thanks for your thoughts on how to solve this problem.
-S
source
share