Forum: Ruby building ruby on ubuntu 14.04

0e6ac58dab6125c1cd2e7ac645076b6f?d=identicon&s=25 Joel VanderWerf (Guest)
on 2014-04-20 21:01
(Received via mailing list)
If you're running into the readline compile problem on ubuntu 14.04,
this is one fix:

Download the readline.patch file from this gist (click on "raw" and
download that link).

Go into your ruby-2.1.1 dir. Type this:

patch -p0 <path/to/the/readline.patch

I had to delete the last hunk from the patch file for it to work. (The
last hunk is only comments.)
39ca2d7a2722504ac2a7e9d70d3c2455?d=identicon&s=25 Michel (Guest)
on 2014-04-23 14:28
(Received via mailing list)
Joel, thanks for information.

I ran into this problem, but the patch command didn't work, seemed to
loop, even after deleting the last hunk.

I had to edit manually the readline.c and extconf.rb file like the patch
should have do it and then I was able to build ruby 2.1.1.

Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.