Backport #1942

irb not running after installation

Added by remco (Remco Horst) almost 3 years ago. Updated 5 months ago.

[ruby-core:24935]
Status:Closed Start date:08/16/2009
Priority:Normal Due date:
Assignee:kouji (Kouji Takao) % Done:

0%

Category:-
Target version:-

Description

After installing ruby 1.9.1p243, ./configure, make, make test and make install
And changing my path I was not able to run irb properly

$ irb
dyld: lazy symbol binding failed: Symbol not found: _remove_history
  Referenced from: /usr/local/lib/ruby/1.9.1/i386-darwin8.11.1/readline.bundle
  Expected in: flat namespace

dyld: Symbol not found: _remove_history
  Referenced from: /usr/local/lib/ruby/1.9.1/i386-darwin8.11.1/readline.bundle
  Expected in: flat namespace

Trace/BPT trap

$ make test 
...previous test deleted
test_proc.rb .................................bootstraptest.tmp.rb:5:in `<main>': ok (RuntimeError)
.
test_struct.rb .
test_syntax.rb ...............................................................................................................................................
test_thread.rb ..............................................
PASS 935 tests
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb  "./bootstraptest/runner.rb" --ruby="ruby"  ./KNOWNBUGS.rb
2009-08-16 08:01:12 +0200
Driver is ruby 1.9.1 (2009-07-16 patchlevel 243) [i386-darwin8.11.1]
Target is ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin8.11.1]

I expected it to be correct, but  

Running from
System version:	Mac OS X 10.4.11 (8S2167)
Kernel version:	Darwin 8.11.1

History

Updated by philpirj (Philipp Pirozhkov) over 2 years ago

It's simple:
In readline.c

#if !defined HAVE_CLEAR_HISTORY
	clear_history();

should be changed to
#if defined HAVE_CLEAR_HISTORY
	clear_history();

and everything works fine.

Cheers, Phil

Updated by yugui (Yuki Sonoda) over 2 years ago

  • Assignee set to kouji (Kouji Takao)

Updated by shyouhei (Shyouhei Urabe) over 1 year ago

  • Status changed from Open to Assigned

Updated by kouji (Kouji Takao) 5 months ago

  • Tracker changed from Bug to Backport
  • Status changed from Assigned to Closed
This issue should be fixed in r33626. I'm sorry for replying lately.

Also available in: Atom PDF