Summary: | require 'mkmf' can't find header files for ruby | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joerg Plate <plate> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Ruby Team <ruby> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | amd64, mark, matsuu |
Priority: | Highest | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
/usr/lib/ruby/1.8/x86_64-linux/rbconfig.rb
ruby-1.8.2-r2.diff |
Description
Joerg Plate
2005-01-01 17:55:06 UTC
Found an errata in /usr/lib/ruby/1.8/x86_64-linux/rbconfig.rb. --- rbconfig.rb.old 2005-01-13 13:29:43.581254776 +0900 +++ rbconfig.rb 2005-01-13 13:29:47.055726576 +0900 @@ -29,7 +29,7 @@ CONFIG["sysconfdir"] = "$(DESTDIR)/etc" CONFIG["sharedstatedir"] = "$(prefix)/com" CONFIG["localstatedir"] = "$(DESTDIR)/var/lib" - CONFIG["libdir"] = "$(DESTDIR)//usr/lib" + CONFIG["libdir"] = "$(DESTDIR)/usr/lib" CONFIG["includedir"] = "$(prefix)/include" CONFIG["oldincludedir"] = "/usr/include" CONFIG["infodir"] = "$(DESTDIR)/usr/share/info" Can you please attach your /usr/lib/ruby/1.8/x86_64-pc-linux-gnu/rbconfig.rb file? Created attachment 49815 [details]
/usr/lib/ruby/1.8/x86_64-linux/rbconfig.rb
The only rbconfig.rb i have is /usr/lib/ruby/1.8/x86_64-linux/rbconfig.rb
The error disappears if you use CONFIG["srcdir"] = "/usr/include" in rbconfig.rb. But i doubt it is a valid solution... >>> md5 src_uri ;-) sqlite-ruby-2.2.3.tar.bz2
>>> Unpacking source...
>>> Unpacking sqlite-ruby-2.2.3.tar.bz2 to /var/tmp/portage/sqlite-ruby-2.2.3/work
>>> Source unpacked.
can't find header files for ruby.
!!! ERROR: dev-ruby/sqlite-ruby-2.2.3 failed.
!!! Function src_compile, Line 27, Exitcode 1
!!! ruby extconf.rb failed
I had same problem triying to emerge ruby-glib2:
>>> Source unpacked.
can't find header files for ruby.
!!! ERROR: dev-ruby/ruby-glib2-0.12.0 failed.
!!! Function ruby-gnome2_src_compile, Line 33, Exitcode 1
!!! extconf.rb failed
Solved it editing the rbconfig.rb at line 32:
/usr/lib/ruby/1.8/x86_64-linux/rbconfig.rb
- CONFIG["libdir"] = "$(DESTDIR)/usr/lib64"
+ CONFIG["libdir"] = "$(DESTDIR)/usr/lib"
Created attachment 56516 [details, diff]
ruby-1.8.2-r2.diff
better solution :)
my amd64 has same problem. It is multilib problem. Please apply a patch. *** Bug 89463 has been marked as a duplicate of this bug. *** matsuu, please apply your patch and close the bug. (The patch seems ok but I cannot test it on 64bit arch) Fixed (ruby-1.8.2-r1.ebuild): 20 Apr 2005; Herbie Hopkins <herbs@gentoo.org> ruby-1.8.2-r1.ebuild: Fix my sed statement... bug #89736. 19 Apr 2005; Herbie Hopkins <herbs@gentoo.org> ruby-1.8.2-r1.ebuild: Correct a hard-coded lib path in the configure script to close bug #76111 (for real this time) |