Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144469 - dev-ruby/ruby-postgres-0.7.1.20051221 failed
Summary: dev-ruby/ruby-postgres-0.7.1.20051221 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-19 17:01 UTC by Michael Labhard
Modified: 2006-08-30 14:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Labhard 2006-08-19 17:01:26 UTC
>>> Emerging (1 of 1) dev-ruby/ruby-postgres-0.7.1.20051221 to /
>>> Unpacking source...
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/ruby-postgres-0.7.1.20051221/work ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-ruby/ruby-postgres-0.7.1.20051221

>>> Install ruby-postgres-0.7.1.20051221 into /var/tmp/portage/ruby-postgres-0.7.1.20051221/image/ category dev-ruby
/usr/portage/eclass/gems.eclass: line 34: ruby: command not found
install: missing file operand
Try `install --help' for more information.
/usr/portage/eclass/gems.eclass: line 59: gem: command not found


emerge --info:

Portage 2.1-r2 (default-linux/amd64/2005.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 AMD Opteron(tm) Processor 246
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/resin/conf /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2"
DISTDIR="/opt/no_archive/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.ccccom.com http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/opt/no_archive/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts cdr cli crypt cups dlloader doc dri eds emboss encode foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg kde libg++ log4cpp lzw lzw-tiff mozilla mp3 mpeg nas ncurses nls nptl nsplugin opengl pam pcre pdflib perl plotutils png postgres pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts usb wxwindows xinerama xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nvidia video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-20 00:31:32 UTC
Do you have ruby installed?
Comment 2 Michael Labhard 2006-08-20 09:45:16 UTC
goliath ~ # equery l dev-lang/ruby
[ Searching for package 'ruby' in 'dev-lang' among: ]
 * installed packages
[I--] [  ] dev-lang/ruby-1.8.4-r3 (1.8)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-20 10:03:53 UTC
Reopen.
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2006-08-23 12:31:24 UTC
what's the output of 'which ruby'

and ls -l /usr/bin/ruby
Comment 5 Michael Labhard 2006-08-23 19:51:41 UTC
(none) ~ # which ruby
which: no ruby in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/3.4.6:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/kde/3.4/sbin:/usr/kde/3.4/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin)
(none) ~ # ls -la /usr/bin/ruby
lrwxrwxrwx 1 root root 6 Sep  5  2005 /usr/bin/ruby -> ruby16
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2006-08-24 04:55:53 UTC
The fact that you don't have gem or ruby18 installed is concerning.  I don't have an answer as to how that is; either you're running an old eclass in your overlay or something else.

You need to re-emerge ruby and rubygems and this should be fixed.
Comment 7 Michael Labhard 2006-08-24 21:40:18 UTC
Sorry.  Didn't work.  rubygems doesn't install:

>>> Unpacking rubygems-0.9.0.tgz to /var/tmp/portage/rubygems-0.9.0/work
 * Applying no_post_install.patch ...                                      [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/rubygems-0.9.0/work/rubygems-0.9.0 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-ruby/rubygems-0.9.0

>>> Install rubygems-0.9.0 into /var/tmp/portage/rubygems-0.9.0/image/ category dev-ruby
/usr/portage/dev-ruby/rubygems/rubygems-0.9.0.ebuild: line 28: /usr/bin/ruby: No such file or directory
/usr/portage/eclass/ruby.eclass: line 127: /usr/bin/ruby: No such file or directory

!!! ERROR: dev-ruby/rubygems-0.9.0 failed.

(none) ~ # equery l ruby
[ Searching for package 'ruby' in all categories among: ]
 * installed packages
[I--] [  ] dev-lang/ruby-1.8.4-r3 (1.8)
[I--] [  ] dev-ruby/ruby-config-0.3.1 (0)
[I--] [  ] dev-ruby/ruby-postgres-0.7.1 (0)
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2006-08-25 04:02:35 UTC
You emerged ruby first, right?

Does /usr/bin/ruby18 exist?

You probably also need to use 'ruby-config' to select ruby18 as your default ruby interpreter.  I'd recommend getting rid of ruby16 (by un-emerging) unless you need it for some reason.

Can you do an equery on the ruby-1.8 package and see what files it has installed on your system (I think it's equery f ).  Why you don't have a ruby interpreter is beyond me.

Comment 9 Aaron Kulbe (RETIRED) gentoo-dev 2006-08-30 00:06:06 UTC
I just wanted to add to this that any gems you installed prior to upgrading ruby will need to be reinstalled.
Comment 10 Michael Labhard 2006-08-30 14:58:55 UTC
Yes, reconfiguring ruby with ruby-config solved the problem.  I no longer have the ruby16 ebuild on my machine so not sure how I'm going to remove it.  But at least everything installs.  Thank you for the assistance.