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

REE is installed with wrong/no readline #41

Closed
jjb opened this issue Sep 17, 2011 · 6 comments
Closed

REE is installed with wrong/no readline #41

jjb opened this issue Sep 17, 2011 · 6 comments

Comments

@jjb
Copy link

jjb commented Sep 17, 2011

for REE, when I paste into irb or pry, the characters come in very slowly. it's the problem described here:

I'm working on a ruby-build solution for this now (although I'm not exactly sure what that is -- the discussions at those questions and elsewhere on the web is never quite clear about what the cause is -- a particular version of readline? I'm going to look at the RVM solution)

Is it worth fixing at the ruby-build level? Have others experience this problem? I'm on 10.6.8

@jjb
Copy link
Author

jjb commented Sep 17, 2011

Alright i'm done hacking around with this for tonight, I didn't make any progress installing readline from source. Tomorrow (translation: in a month) I should try using rvm to install readline, and then point ruby-build at it (with -c --with-readline-dir=/foo/bar/baz added to options in share/ruby-build/ree-1.8.7-2011.03)

http://stackoverflow.com/questions/5624740/rails-console-running-incredibly-slowly-when-editing-text/5931217#5931217

@tessro
Copy link
Contributor

tessro commented Sep 19, 2011

I patched ruby-build to support $CONFIGURE_OPTS in REE definitions. (See tessro/ruby-build@cf35539)

This worked for me (on OS X 10.7):

CONFIGURE_OPTS="-c --enable-shared -c --with-readline-dir=/usr/local/Cellar/readline/6.2.1/" ruby-build ree-1.8.7-2011.03 ~/.rbenv/versions/ree-1.8.7-2011.03/

@jjb
Copy link
Author

jjb commented Sep 19, 2011

nice -- and now you don't have the "slow paste" problem?

@tessro
Copy link
Contributor

tessro commented Sep 20, 2011

I thought this issue was resolved for me, but I can in fact replicate it on my machine. Bummer.

FWIW, this happens in both REE 1.8.6 and REE 1.8.7 when configured with Readline. AFAIK, RVM doesn't install Readline by default which is why this doesn't show up there.

@tessro
Copy link
Contributor

tessro commented Sep 20, 2011

I think this is the relevant patch from RVM:

https://github.com/wayneeseguin/rvm/blob/master/patches/ruby/1.8.7/readline-fix.diff

I'll test it locally when I have a bit more time.

@sstephenson
Copy link
Contributor

I don't think we want to get into the business of applying patches willy-nilly like RVM. Feel free to pass along whatever you want to $CONFIGURE_OPTS now, though.

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

3 participants