Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2011 14:31:15 -0800
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        "Aaron D. Gifford" <astounding@gmail.com>
Cc:        ruby@freebsd.org
Subject:   Re: What changed? (gem command missing in 1.9)
Message-ID:  <20111111143115.5bf5d195.stas@FreeBSD.org>
In-Reply-To: <CAGDxMR66_1GexKFbN2bu9%2B-T%2BrxJ-UHW5WsfLJQvqMG7M=m66A@mail.gmail.com>
References:  <CAGDxMR66_1GexKFbN2bu9%2B-T%2BrxJ-UHW5WsfLJQvqMG7M=m66A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 11 Nov 2011 14:55:06 -0700
"Aaron D. Gifford" <astounding@gmail.com> mentioned:

> Hi,
> 
> I've been using RUBY_DEFAULT_VER=1.9 in my /etc/make.conf for months
> now successfully to ensure that gem, ri, irb, ruby, etc. were
> correctly symlinked in /usr/local/bin/ to the *19 commands.  However
> today upon building the /usr/ports/lang/ruby19 port and installing it
> afresh, I discovered that the other *19 commands are there EXCEPT for
> the gem command:
> 
> user@host:/usr/local/bin$ ls -ld *19
> -rwxr-xr-x  2 root  wheel  4401 Nov 11 14:48 erb19
> -rwxr-xr-x  2 root  wheel   322 Nov 11 14:48 irb19
> -rwxr-xr-x  2 root  wheel   701 Nov 11 14:48 rdoc19
> -rwxr-xr-x  2 root  wheel    77 Nov 11 14:48 ri19
> -rwxr-xr-x  2 root  wheel  5448 Nov 11 14:48 ruby19
> -rwxr-xr-x  2 root  wheel   251 Nov 11 14:48 testrb19
> user@host:/usr/local/bin$ ls -l erb irb rdoc ri ruby testrb gem
> ls: gem: No such file or directory
> -rwxr-xr-x  2 root  wheel  4401 Nov 11 14:48 erb
> -rwxr-xr-x  2 root  wheel   322 Nov 11 14:48 irb
> -rwxr-xr-x  2 root  wheel   701 Nov 11 14:48 rdoc
> -rwxr-xr-x  2 root  wheel    77 Nov 11 14:48 ri
> -rwxr-xr-x  2 root  wheel  5448 Nov 11 14:48 ruby
> -rwxr-xr-x  2 root  wheel   251 Nov 11 14:48 testrb
> 
> What happened?  What changed?  Where did the gem command go? Is there
> a new environment variable I need while building the port now?
> 

Hi!

The gem version distributed in ruby 1.9 is too old for some ports,
so FreeBSD uses the rubygem from ports instead.  To get the gem
command back just install the ruby-gems port.

-- 
Stanislav Sedov
ST4096-RIPE

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111111143115.5bf5d195.stas>