Bug #8559

Difficulty Installing on OS X 10.9 "Mavericks"

Added by Daniel Shannon 10 months ago. Updated 10 months ago.

[ruby-core:55587]
Status:Third Party's Issue
Priority:Normal
Assignee:Nobuyoshi Nakada
Category:build
Target version:2.1.0
ruby -v:ruby 2.0.0p195 (2013-05-14 revision 40734) [universal.x86_64-darwin13] Backport:

Description

I've been trying to use rvm to install Ruby 2.0.0-p195 on a machine running the beta version of OS X 10.9 ("Mavericks"), but I've been running into some trouble. It seems as though the build is choking on readline---which library rvm invoked Homebrew to set up for me. In particular, there's a function called rl_username_completion_function that causes the build to fail, as this gist of the make log indicates: https://gist.github.com/phyllisstein/5834561#file-mkmf-log-L646-L650. I'm at a bit of a loss for debugging, but I'm happy to toy around with it as more experienced users suggest; please let me know how I can help, and thanks in advance for any tips you can provide.

History

#1 Updated by Nobuyoshi Nakada 10 months ago

  • Status changed from Open to Feedback
  • Target version set to 2.1.0

=begin
As a linker error occurs at ((URL:https://gist.github.com/phyllisstein/5834561#file-mkmf-log-L565-L569)), it seems that the header has the function declaration but the library lacks the function definition.

What's your readline and how did you install it?
And what does the following command show?

nm /usr/local/opt/readline/lib/readline.dylib | grep usernamecompletionfunction
=end

#2 Updated by Daniel Shannon 10 months ago

nobu (Nobuyoshi Nakada) wrote:

=begin
As a linker error occurs at ((URL:https://gist.github.com/phyllisstein/5834561#file-mkmf-log-L565-L569)), it seems that the header has the function declaration but the library lacks the function definition.

What's your readline and how did you install it?
And what does the following command show?

nm /usr/local/opt/readline/lib/readline.dylib | grep usernamecompletionfunction
=end

I see. I had been trying with readline 6.2.4, which I installed with Homebrew. But since there was no dylib file in /usr/local/opt/readline/lib, I assume that the brew script is broken. When I compiled readline by hand and made sure to build the shared libraries, it worked just fine. Thanks for the pointer! Sorry to have bothered you with this.

#3 Updated by Nobuyoshi Nakada 10 months ago

  • Status changed from Feedback to Third Party's Issue

Also available in: Atom PDF