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

install incorrect on Windows #8

Open
joshco opened this issue Apr 27, 2015 · 1 comment
Open

install incorrect on Windows #8

joshco opened this issue Apr 27, 2015 · 1 comment

Comments

@joshco
Copy link

joshco commented Apr 27, 2015

When installing the gem, it does not copy the executable into ruby/bin, nor does it create a bat file.
I manually copied the executable into ruby bin

copy C:\Ruby200\lib\ruby\gems\2.0.0\gems\ru-0.1.4\bin C:\Ruby200\bin

I needed to change the line

require_relative '../lib/ru'

to

require 'ru'

Are you doing something clever with where you expect the executable to be?

@rubycoder
Copy link

FYI, I installed ru2 on Windows 10 using Git Bash, and it seems to have worked fine:

wayne MINGW64 ~$ ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [i386-mingw32]

wayne MINGW64 ~$ gem install ru2
Successfully installed ru2-2.1.4
Parsing documentation for ru2-2.1.4
Installing ri documentation for ru2-2.1.4
Done installing documentation for ru2 after 1 seconds
1 gem installed

wayne MINGW64 ~$ which ru
/c/Ruby231/bin/ru

wayne MINGW64 ~$ printf "2\n3" | ru 'map(:to_i).sum'
5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants