# Some starting issues

**URL:** <https://www.ruby-forum.com/t/some-starting-issues/162353>\
**Category:** Ruby\
**Created:** [March 9, 2009, 5:23am UTC](https://www.ruby-forum.com/t/some-starting-issues/162353 "2009-03-09T05:23:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![uberkorp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7ab992/32.png) [@uberkorp](https://www.ruby-forum.com/u/uberkorp)\
**Post date:** [March 9, 2009, 5:23am UTC](https://www.ruby-forum.com/t/some-starting-issues/162353/1 "2009-03-09T05:23:01Z")

</div>

First off im on the latest/updated version of Mac OSX, on a macbook. I  
followed a tutorial…

> **[Dan Benjamin](https://danbenjamin.com)**
>
> Dan Benjamin's personal website.

And then followed the updated one as well and still get issues, i cant  
seem to get gem to install correctly? And or install correctly.

I have sort of pin pointed the issue down, i get an error like this each  
time i attempt to use gem.

/usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/package.rb:386:in  
`alias_method': undefined method `is\_file’ for class  
`Gem::Package::TarReader::Entry' (NameError) from /usr/local/lib/ruby/site_ruby/1.9.0/rubygems/package.rb:386:in `class:Entry’  
from /usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/package.rb:322:in  
`<class:TarReader>' from /usr/local/lib/ruby/site_ruby/1.9.0/rubygems/package.rb:310:in `module:Package’  
from /usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/package.rb:43:in  
`<top (required)>' from /usr/local/lib/ruby/site_ruby/1.9.0/rubygems/custom_require.rb:27:in `gem\_original\_require’  
from  
/usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/custom\_require.rb:27:in  
`require' from /usr/local/lib/ruby/site_ruby/1.9.0/rubygems/builder.rb:7:in `\<top (required)\>’  
from  
/usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/custom\_require.rb:27:in  
`gem_original_require' from /usr/local/lib/ruby/site_ruby/1.9.0/rubygems/custom_require.rb:27:in `require’  
from /usr/local/lib/ruby/site\_ruby/1.9.0/rubygems.rb:110:in  
`manage_gems' from gem_prelude.rb:182:in `method\_missing’  
from /usr/local/bin/gem:10:in `’

I notice it is looking to point to /1.9.0/ but when i browse to that  
folder i have 1.8. Is there any way to completely remove these installs?  
OR how can I ensure my install goes smooth so I can begin learning…

---

<div class="post-metadata">

**Author:** ![uberkorp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7ab992/32.png) [@uberkorp](https://www.ruby-forum.com/u/uberkorp)\
**Post date:** [March 9, 2009, 5:26am UTC](https://www.ruby-forum.com/t/some-starting-issues/162353/2 "2009-03-09T05:26:26Z")

</div>

I’d like to point out when i fresh download Gem, and attempt to run the  
setup, i get this error.

bash-3.2$ bash setup.rb  
setup.rb: line 13: syntax error near unexpected token `(' setup.rb: line 13:` config = defined?(RbConfig) ? RbConfig : Config’

---

<div class="post-metadata">

**Author:** ![uberkorp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7ab992/32.png) [@uberkorp](https://www.ruby-forum.com/u/uberkorp)\
**Post date:** [March 9, 2009, 6:18am UTC](https://www.ruby-forum.com/t/some-starting-issues/162353/3 "2009-03-09T06:18:19Z")

</div>

Scott Mcleod wrote:

> I’d like to point out when i fresh download Gem, and attempt to run the  
> setup, i get this error.
> 
> bash-3.2$ bash setup.rb  
> setup.rb: line 13: syntax error near unexpected token `(' setup.rb: line 13:` config = defined?(RbConfig) ? RbConfig : Config’

Don’t you mean to use ruby?

ruby setup.rb

---

<div class="post-metadata">

**Author:** ![uberkorp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7ab992/32.png) [@uberkorp](https://www.ruby-forum.com/u/uberkorp)\
**Post date:** [March 9, 2009, 3:19pm UTC](https://www.ruby-forum.com/t/some-starting-issues/162353/4 "2009-03-09T15:19:43Z")

</div>

Joel VanderWerf wrote:

> Scott Mcleod wrote:
> 
> > I’d like to point out when i fresh download Gem, and attempt to run the  
> > setup, i get this error.
> > 
> > bash-3.2$ bash setup.rb  
> > setup.rb: line 13: syntax error near unexpected token `(' setup.rb: line 13:` config = defined?(RbConfig) ? RbConfig : Config’
> 
> Don’t you mean to use ruby?
> 
> ruby setup.rb

bash-3.2$ ruby setup.rb  
/usr/local/lib/ruby/1.9.0/rubygems/requirement.rb:19: warning: already  
initialized constant OPS  
/usr/local/lib/ruby/1.9.0/rubygems/requirement.rb:29: warning: already  
initialized constant OP\_RE  
/usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/specification.rb:24:in  
`<module:Gem>': Platform is not a module (TypeError) from /usr/local/lib/ruby/site_ruby/1.9.0/rubygems/specification.rb:17:in`\<top (required)\>’  
from  
/usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/package.rb:15:in `require' from /usr/local/lib/ruby/site_ruby/1.9.0/rubygems/package.rb:15:in`\<top  
(required)\>’  
from  
/usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/builder.rb:7:in `require' from /usr/local/lib/ruby/site_ruby/1.9.0/rubygems/builder.rb:7:in`\<top  
(required)\>’  
from /Users/Scott/rubygems-1.3.1/lib/rubygems.rb:868:in  
`require' from /Users/Scott/rubygems-1.3.1/lib/rubygems.rb:868:in`\<top  
(required)\>’  
from gem\_prelude.rb:93:in `require' from gem_prelude.rb:93:in`load\_full\_rubygems\_library’  
from gem\_prelude.rb:175:in `const_missing' from setup.rb:109:in`’

Still the same error

---

<div class="post-metadata">

**Author:** ![uberkorp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7ab992/32.png) [@uberkorp](https://www.ruby-forum.com/u/uberkorp)\
**Post date:** [March 9, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/some-starting-issues/162353/5 "2009-03-09T19:14:31Z")

</div>

On Mar 8, 2009, at 21:21, Scott Mcleod wrote:

> First off im on the latest/updated version of Mac OSX, on a macbook.

You already have a version of ruby (1.8.6) and RubyGems installed if  
you’re on OS X 10.5, /usr/bin/ruby

You’ll want to update RubyGems for Apple’s ruby though.

> I have sort of pin pointed the issue down, i get an error like this  
> each  
> time i attempt to use gem.
> 
> /usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/package.rb:386:in  
> `alias_method': undefined method`is\_file’ for class  
> `Gem:📦:TarReader::Entry’ (NameError)

1.9.1 is the latest version of ruby and comes with the latest  
RubyGems. You probably have a prerelease version of 1.9.0 installed  
that has a broken RubyGems.

I imagine that `which ruby` will report /usr/local/bin/ruby, and `ruby -v` will report 1.9.0. If you want to use ruby 1.9 you should remove  
your current install of 1.9.0 in /usr/local and configure 1.9.1 with  
its own suffix:

./configure --program-suffix=19

So you get /usr/local/bin/ruby19 which won’t conflict with the 1.8.6  
install you have from Apple.

---

<div class="post-metadata">

**Author:** ![uberkorp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/7ab992/32.png) [@uberkorp](https://www.ruby-forum.com/u/uberkorp)\
**Post date:** [March 10, 2009, 1:10am UTC](https://www.ruby-forum.com/t/some-starting-issues/162353/6 "2009-03-10T01:10:32Z")

</div>

Eric H. wrote:

> On Mar 8, 2009, at 21:21, Scott Mcleod wrote:
> 
> > First off im on the latest/updated version of Mac OSX, on a macbook.
> 
> You already have a version of ruby (1.8.6) and RubyGems installed if  
> you’re on OS X 10.5, /usr/bin/ruby
> 
> You’ll want to update RubyGems for Apple’s ruby though.
> 
> > I have sort of pin pointed the issue down, i get an error like this  
> > each  
> > time i attempt to use gem.
> > 
> > /usr/local/lib/ruby/site\_ruby/1.9.0/rubygems/package.rb:386:in  
> > `alias_method': undefined method`is\_file’ for class  
> > `Gem:📦:TarReader::Entry’ (NameError)
> 
> 1.9.1 is the latest version of ruby and comes with the latest  
> RubyGems. You probably have a prerelease version of 1.9.0 installed  
> that has a broken RubyGems.
> 
> I imagine that `which ruby` will report /usr/local/bin/ruby, and `ruby -v` will report 1.9.0. If you want to use ruby 1.9 you should remove  
> your current install of 1.9.0 in /usr/local and configure 1.9.1 with  
> its own suffix:
> 
> ./configure --program-suffix=19
> 
> So you get /usr/local/bin/ruby19 which won’t conflict with the 1.8.6  
> install you have from Apple.

bash-3.2$ which ruby  
/usr/local/bin/ruby  
bash-3.2$ `ruby -v`  
ruby: No such file or directory – 1.9.0 (LoadError)

How would I go about removing ruby? If i try ruby -command- it gives me  
this  
ruby: No such file or directory – help (LoadError)
