Bugs: Browse | Submit New | Admin

[#29108] Gem doesn't Install for ruby 1.9.2

Date:
2011-03-31 16:23
Priority:
3
Submitted By:
John Stevens (jstevens85)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Gem doesn't Install for ruby 1.9.2

Detailed description
I installed ruby 1.9.2p180 from source.

The libxml-ruby-1.1.4 gem installs, but does not properly build RDoc documentation (the solution I found for that breaks
RDoc installation for other things, so I gave up on it).

The libxslt-ruby gem fails to install due to the inability to properly resolve libxml-ruby references to symbols that
reside in the libruby-static library during a configuration test.

"gcc -o conftest -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward
-I/usr/local/include/ruby-1.9.1 -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4/ext -I/usr/include/libxml2
-I/usr/include/libxslt -I/usr/include/libexslt  -D_FILE_OFFSET_BITS=64   -O3 -ggdb -Wextra -Wno-unused-parameter
-Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c  -L.
-L/usr/local/lib -Wl,-R/usr/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib
-L/usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4/lib -Wl,-R/usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4/lib
-L.  -rdynamic -Wl,-export-dynamic    -lexslt -lxslt -lxml2 -lz -lm  -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static
-l:libxml_ruby.so -lexslt -lxslt -lxml2 -lz -lm  -lpthread -lrt -ldl -lcrypt -lm   -lc"
/usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4/lib/libxml_ruby.so: undefined reference to
`rb_class_new_instance'
/usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4/lib/libxml_ruby.so: undefined reference to `rb_eTypeError'
/usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4/lib/libxml_ruby.so: undefined reference to `rb_ivar_set'
/usr/local/lib/ruby/gems/1.9.1/gems/libxml-ruby-1.1.4/lib/libxml_ruby.so: undefined reference to `ruby_snprintf'

and etc. for conftest.c:

/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: int main() {return 0;}
5: int t() { rxml_document_wrap(); return 0; }
/* end */

I can copy the above GCC command and get it to run without error by making yet-another-copy of the -lruby-static
-l:libxml_ruby.so just before -lpthread, but I am at a loss of how to configure the gem install to do this, so I'm stuck
right here.

Any hints?

Thanks!

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item