Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

include error with stock Ruby on Mac #119

Closed
paxtonhare opened this issue Aug 7, 2013 · 5 comments
Closed

include error with stock Ruby on Mac #119

paxtonhare opened this issue Aug 7, 2013 · 5 comments

Comments

@paxtonhare
Copy link
Contributor

If using the system version of Ruby on mac 1.8.7... then bootstrap fails with this error:

./deploy/lib/MLClient.rb:16:in require': no such file to load -- io/console (LoadError) from ./deploy/lib/MLClient.rb:16 from ./deploy/lib/xcc.rb:19:inrequire'
from ./deploy/lib/xcc.rb:19
from ./deploy/lib/server_config.rb:21:in require' from ./deploy/lib/server_config.rb:21 from deploy/lib/ml.rb:17:inrequire'
from deploy/lib/ml.rb:17

Seems that io/console isn't present on stock mac.

@paxtonhare
Copy link
Contributor Author

A temp workaround is to comment out line 16 of MLClient.rb

require 'io/console'

the only thing you lose is the ability to input your password on the cmd line

@peterskim12
Copy link
Contributor

Yeah, I just ran into this trying to get Ruby installed on a fresh CentOS install. When I get some time, I'd like to clean up some of the documentation.

@dmcassel
Copy link
Collaborator

dmcassel commented Aug 8, 2013

The specific feature is being able to type a password without it showing on the screen. That pushed the required Ruby from 1.8.something to 1.9.3, including the need for io/console. I would love to know of a way that have fewer/lower requirements.

@paxtonhare
Copy link
Contributor Author

Require can be wrapped in begin/rescue/end. It would allow Roxy to work under older ruby sans the encrypted console.

paxtonhare added a commit that referenced this issue Aug 9, 2013
…d the user attempts to prompt for password
@dmcassel
Copy link
Collaborator

Great Paxton, thanks!

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

No branches or pull requests

3 participants