[DRE-maint] Bug#533304: rubygems1.8: "gem install" points make to non-existing /opt/local/lib/ruby/1.8/i686-darwin9.2.2
Andreas Krüger
andreas.krueger at famsik.de
Tue Jun 16 11:48:57 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Package: rubygems1.8
Version: 1.2.0-3
Severity: important
Hello,
I'm trying to do use "gem install" to compile native stuff. It does not work.
I found that include files are not expected by the compilation process at the
place where they actually reside. The compilation process's expectancies are
governed by a Makefile, which, on my system, has
In detail:
"gem install sqlite3-ruby" fails, leaving the following log file content in
/var/lib/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out :
> /usr/bin/ruby1.8 extconf.rb install sqlite3-ruby
> checking for fdatasync() in -lrt... yes
> checking for sqlite3.h... no
>
> make
> make: *** No rule to make target `ruby.h', needed by `sqlite3_api_wrap.o'.
> Stop.
This include file ruby.h is available as /usr/lib/ruby/1.8/i486-linux/ruby.h.
Looking at the Makefile generated by the gem installation process, I think it is
looked for in /opt/local/lib/ruby/1.8/i686-darwin9.2.2 instead. I verified this
by providing /opt/local/lib/ruby/1.8/i686-darwin9.2.2/ruby.h. When doing this,
make apparently finds "ruby.h". It now stumbles over "defines.h" not being present.
I think the following lines of
/var/lib/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/Makefile
are part of the problem:
> topdir = /opt/local/lib/ruby/1.8/i686-darwin9.2.2
> INCFLAGS = -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9.2.2 -I.
> arch = i686-darwin9.2.2
> sitearch = i686-darwin9.2.2
> vendorarch = i686-darwin9.2.2
As an attempted workaround, at my trusted bash prompt, I installed rubygems from
scratch. This did not help. I continued to encounter the same problem.
Even though it did not help, here is what I tried:
aptitude purge rubygems1.8
# which also removed a whole lot of other things.
# Mainly left was
aptitude install ruby rdoc
wget http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz -O - |
tar xzf -
cd rubygems-1.3.4
export GEM_HOME=/usr/local/lib/ruby1.8/gems
ruby setup.rb --prefix=/usr/local/lib/ruby1.8
export RUBYLIB=/usr/local/lib/ruby1.8/lib
Regards, and thank you for providing fine software,
Andreas Krüger
- -- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages rubygems1.8 depends on:
ii rdoc1.8 1.8.7.72-3 Generate documentation from Ruby s
ii ruby1.8 1.8.7.72-3 Interpreter of object-oriented scr
rubygems1.8 recommends no packages.
Versions of packages rubygems1.8 suggests:
ii build-essential 11.4 Informational list of build-essent
ii ruby1.8-dev 1.8.7.72-3 Header files for compiling extensi
pn rubygems-doc <none> (no description available)
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAko3hqYACgkQnWrlKaIH40CeOgCgrsZXqg5HcIuCBw56/SlufiQu
ft0AnR+S1p8ZZCkvZy94wQ52yc9IMve6
=BhfO
-----END PGP SIGNATURE-----
More information about the Pkg-ruby-extras-maintainers
mailing list