Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 328705

Summary: dev-util/netbeans-6.9-r2: does work with ruby, auto_gem required
Product: Gentoo Linux Reporter: Oleg <O01eg>
Component: [OLD] JavaAssignee: Miroslav Šulc <fordfrog>
Status: RESOLVED WONTFIX    
Severity: normal CC: java
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 237562    

Description Oleg 2010-07-17 10:24:48 UTC
When I try to open gems list with jruby I got next error message:
:1: no such file to load -- auto_gen (LoadError)
...internal jruby stack elided...
from (unknown).(unknown)(:1)

Reproducible: Always

Steps to Reproduce:
1. Run Netbeans with install jruby
2. Choose Tools -> Ruby Gems

Actual Results:  
Show error dialog window with error:
:1: no such file to load -- auto_gen (LoadError)
...internal jruby stack elided...
from (unknown).(unknown)(:1)

Expected Results:  
List of gems

Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-Windowoz-Seven
Timestamp of tree: Fri, 16 Jul 2010 01:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.6.3-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=core2 -pipe -msse -msse2 -msse3 -mssse3 -mmmx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -mtune=core2 -pipe -msse -msse2 -msse3 -mssse3 -mmmx"
DISTDIR="/mnt/other/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-O1"
LINGUAS="ru en ja eo el yi"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/anime/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/rion /usr/local/portage/layman/x11 /usr/local/portage/layman/sunrise /usr/local/portage/my"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl acpi alsa amd64 amr anthy archive audacious audiofile bash-completion bidi bluetooth branding bzip2 cairo canna cdda cdr cg chasen cjk cli consolekit cracklib crypt css cups curl cxx dbus dga djvu dts dv dvb dvd dvdr dvdread emboss enca encode exif expat fam fbcon ffmpeg fftw firefox flac fontconfig fontforge fortran freewnn ftp fuse gallium gcj gd ggi gif gimp ginac git glut gmp gnuplot gpm graphviz gsl gsm gstreamer gtk gzip hal hddtemp icc iconv id3 id3tag ieee1394 imagemagick imap imlib ipv6 irc irda jabber jadetex java java6 jbig jingle joystick jpeg jpeg2k kate lame lapack lash latex lcms ldap libcaca libmpd libnotify libwww lm_sensors lzma lzo mad matroska mbrola midi migemo mikmod mime mmap mmx mmxext mng modules mozilla mp3 mp4 mpd mpeg mpi mplayer msn mudflap mule multilib musepack mysql ncurses nimgif nls nntp nocd nptl nptlonly nsplugin ntfs nvidia ogg openal openexr opengl openmp osc oscar pango pch pcre pdf pgf png portaudio posix ppds pppd qt3support quicktime rar raw readline reflection rle romio rss ruby samba scanner schroedinger scripts sdl session sharedmem shorten slang smp sndfile sockets socks5 sourceview sox speex spell spl sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs syslog system-sqlite szip taglib tcpd teletext theora threads thunar tiff timidity truetype unicode usb v4l v4l2 vcd vdpau vhook videos vim-syntax vorbis vpack vpx wma wmf x264 xattr xcb xfce xft xhtml xml xorg xosd xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy proxy_http" DVB_CARDS="ttpci" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en ja eo el yi" NETBEANS_MODULES="apisupport cnd groovy ide java mobility xml dlight enterprise harness profiler webcommon websvccommon nb" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Miroslav Šulc gentoo-dev 2010-07-19 17:16:29 UTC
ruby support is little bit crippled in gentoo now as i was not able to build one module of it so it is partially disabled. you can try to emerge netbeans following way to try to enable it:
JAVA_PKG_NB_TRY_JRUBY="true" emerge netbeans

also make sure you have correctly set ruby in Tools -> Options ... to existing system jruby. maybe checking 'eselect ruby' might be good place to check too.
Comment 2 Miroslav Šulc gentoo-dev 2010-08-05 13:58:48 UTC
any news from reporter to this bug?
Comment 3 Asfand Yar Qazi 2010-11-14 06:35:45 UTC
To be honest, I've always been a bit annoyed at Gentoo's auto_gem use - it tries to automatically load rubygems whenever a Ruby interpreter starts which is totally nonstandard behaviour.  So if I use a non-Gentoo package managed version of Ruby, for example that I compiled myself, it breaks.

So what I do is, in /etc/env.d, create a file called '11rubygems.local', in which I put:

RUBYOPT=""

You will need to run env-update to update /etc/profile.env, then log off and log on again.

This reverts Ruby to its standard behaviour.  Try that.
Comment 4 Miroslav Šulc gentoo-dev 2011-10-25 00:46:25 UTC
version 6.9 is obsolete now and new versions do not contain ruby cluster at all