On 12/25/05, Jim Menard <
jim.menard@...> wrote:
> On 12/24/05, J. Ryan Sobol <
ryansobol@...> wrote:
> >
> > On Dec 24, 2005, at 12:58 PM, Daniel Harple wrote:
> >
> > > Is anyone else having this problem?
>
> Yes, I am. I don't want to install Fink or Darwin ports. I got
> readline working with 1.8.2, and am now struggling to get it to work
> with 1.8.4. readline.bundle is in ruby/1.8/powerpc-darwin8.3.0.
>
> I used "./configure --with-readline --enable-shared" to configure
> Ruby, then make, then make install. When I tried running "rake test"
> on a random Rails 1.0 project, the unit tests fail with
>
> /usr/local/bin/ruby -Ilib:test
> "/usr/local/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb"
> "test/unit/bookmark_test.rb" "test/unit/group_test.rb"
> "test/unit/inbox_test.rb" "test/unit/user_test.rb"
> dyld: NSLinkModule() error
> dyld: Symbol not found: _rl_filename_completion_function
> Referenced from: /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/readline.bundle
> Expected in: flat namespace
>
> rake aborted!
> Command failed with status (): [/usr/local/bin/ruby -Ilib:test "/usr/local...]
>
Hello
Your extension was not properly linked when ruby was built. If you did
the ruby tests it would probably reveal that. Since ruby does link
with -undefined suppress it happily builds and installs extensions
that do not work.
You can find the LDFLAGS change among the fink patches for ruby. I do
not know why ruby does this. I tried to post the patch here or to some
bugtracking system but I never noticed any explanation coming my way
nor was the patch applied.
Thanks
Michal
--
Support the freedom of music!
Maybe it's a weird genre .. but weird is *not* illegal.
Maybe next time they will send a special forces commando
to your picnic .. because they think you are weird.
www.music-versus-guns.org
http://en.policejnistat.cz