Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem running ruby.exe #483

Open
iamscottcox opened this Issue Oct 17, 2015 · 8 comments

Comments

Projects
None yet
6 participants
@iamscottcox
Copy link

iamscottcox commented Oct 17, 2015

Hello!

First of all, before I begin, thank you so much for Babun. It's such an incredible tool that is so easy to use!

I'm fairly new to coding so please excuse me if I'm doing something stupid, but I seem to be having a problem with Ruby. I followed the instructions on http://xjlin0.github.io/tech/2015/04/14/babun-the-new-cygwin-for-ruby-rails-sinatra-and-nodejs/ to install Ruby and the installation ran perfectly without any errors. However, when I type ruby -v or gem -v the command is ignored and it skips to a new line. I've checked to make sure that my environment variables are set up to include babun and cygwin and they are. I then went into the cygwin/bin folder to find the ruby.exe file and I tried to run it to see if there was a problem there. When I did that, it gave me an error saying:

"The procedure entry point getcontext could not be located in the dynamic link library C:\Users\Scott.babun\cygwin\bin\cygruby220.dll"

However, the cygruby220.dll file IS in that folder.

Do you have any advice on how I could solve this?

@kbuley

This comment has been minimized.

Copy link

kbuley commented Oct 20, 2015

I am seeing the same behavior.

@Evolution0

This comment has been minimized.

Copy link

Evolution0 commented Oct 22, 2015

Have you tried installing ruby the usual way (http://rubyinstaller.org/), making sure its added to your path, then trying to do ruby -v?

In my case I had ruby installed before ever installing babun and ruby -v gives me my version as it should.. most likely due to it already being in my PATH.

I also notice something strange about the error you posted, it should be:
C:\Users\Scott\.babun\cygwin\bin\cygruby220.dll

A backslash is getting removed.. so of course it can't find it, there is no directory named "Scott.babun" :P

Maybe something in the code that trips up upon finding a backslash (escape character) before a "."?

@joemooney

This comment has been minimized.

Copy link

joemooney commented Oct 25, 2015

I have the same issue. Windows 10. On a vanilla cygwin install, cygruby220.dll does not reference getcontext. For the moment I am pointing to that ruby instead of the babun ruby.

@kbuley

This comment has been minimized.

Copy link

kbuley commented Oct 27, 2015

On a whim, I fired off the "update.bat" in the .babun directory. After it completed...
$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [i386-cygwin]

$ gem -v
2.4.8

@djwelch

This comment has been minimized.

Copy link

djwelch commented Nov 3, 2015

Running update.bat also fixed the problem for me.

@numediaweb

This comment has been minimized.

Copy link

numediaweb commented Dec 1, 2015

firing the update.bat doesn't fix it

@numediaweb

This comment has been minimized.

Copy link

numediaweb commented Dec 1, 2015

Please see my answer here

@kbuley

This comment has been minimized.

Copy link

kbuley commented Dec 15, 2015

Your answer is incorrect. I mean... sure, you can get it to work that way, but updating and using pact to install works just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.