Bugs: Browse | Submit New | Admin

[#1506] gem setup fails on Mac OSX (wrong # of args for post-install.rb)

Date:
2005-02-16 17:51
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
`gem` commands (other)
State:
Closed
Summary:
gem setup fails on Mac OSX (wrong # of args for post-install.rb)

Detailed description
sudo ruby setup.rb
Password:
---> bin
<--- bin
---> lib
---> lib/rubygems
<--- lib/rubygems
<--- lib
---> bin
<--- bin
---> lib
---> lib/rubygems
<--- lib/rubygems
<--- lib
rm -f InstalledFiles
---> bin
mkdir -p /usr/bin/
install gem /usr/bin/
install gem_server /usr/bin/
install generate_yaml_index.rb /usr/bin/
install update_rubygems /usr/bin/
<--- bin
---> lib
mkdir -p /usr/local/lib/ruby/site_ruby/1.6/
install rubygems.rb /usr/local/lib/ruby/site_ruby/1.6/
install ubygems.rb /usr/local/lib/ruby/site_ruby/1.6/
---> lib/rubygems
mkdir -p /usr/local/lib/ruby/site_ruby/1.6/rubygems
install builder.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install cmd_manager.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install command.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install config_file.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install custom_require.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install doc_manager.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install format.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install gem_commands.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install gem_runner.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install installer.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install loadpath_manager.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install old_format.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install open-uri.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install package.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install remote_installer.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install rubygems_version.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install source_index.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install specification.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install timer.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install user_interaction.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install validator.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
install version.rb /usr/local/lib/ruby/site_ruby/1.6/rubygems
<--- lib/rubygems
<--- lib

As of RubyGems 0.8.0, library stubs are no longer needed.
Searching $LOAD_PATH for stubs to optionally delete (may take a while)...
...done.
hook /Users/cbeck/Desktop/rubygems-0.8.4/./post-install.rb failed:
wrong # of arguments(2 for 1)
Try 'ruby setup.rb --help' for detailed usage.



running Mac OS X 10.3.8

Add A Comment: Notepad

Please login


Followup

Message
Date: 2006-12-12 22:41
Sender: Eric Hodel

rubygems requires ruby 1.8.1+.  Install and use the correct ruby.
Date: 2006-06-22 18:06
Sender: Ryan W

I had the exact same problem on RedHat 8.  Turns out the wrong
version of ruby was in my path first.  I used the full path &
it fixed.  Will be un-installing old version here soon.
Date: 2005-04-09 11:12
Sender: Nobody

Logged In: NO 

i'm just getting into ruby (today) and came across the exact
same issue. none of the suggestions here worked for me. my solution
was to download ruby 1.8.2, configure, make, make install, then
install rubygems. worked just fine.
Date: 2005-03-27 16:07
Sender: Nobody

Logged In: NO 

You can run the install with the full path to get it to work.
/usr/local/bin/ruby setup.rb

However, gems may not work once you get it installed.  Your best
bet is to symlink in place of your default ruby like so.

cd /usr/bin
mv ruby ruby.orig
ln -s /usr/local/bin/ruby /usr/bin/ruby

This should fix you right up.

'njoy,
Mark
Date: 2005-03-25 11:18
Sender: Steve Beisner

Logged In: YES 
user_id=2182

I found the answer from a suggestion on TextDrive.  I
expect anyone installing on a recent OS-X may encounter
this problem.

The problem is an existing version 1.6.8 ruby executable
that is distributed (?) with OS-X.  It's located in
/usr/bin, and if that directory appears before
/usr/local/bin, where the new build installs by default,
then the install scripts for rubygems are run using
the old version of ruby. 

The fix is to, for example change the PATH definition
so /usr/local/bin comes before /usr/bin.

Date: 2005-03-25 09:23
Sender: Steve Beisner

Logged In: YES 
user_id=2182

I have *exactly* the same problem.
This is on a clean system, OS-X 10.3.8
recently reinstalled. Anybody have
any suggestions about what to try 
next?  I've gone through the install
procedure, starting with installing
ruby from the start several times.
All goes well until the error occurs
during installation of rubygems.
Help?

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2006-12-12 22:41drbrain
resolution_idNone2006-12-12 22:41drbrain
close_date2006-12-12 22:412006-12-12 22:41drbrain