RubyGems setup

Hi: I have tried everything i can think of to install RubyGems, but no

    > success. I would be grateful for any assistance. In sum, my problem
    > is that i can't install the Gems' System (so obviously my problem is
    > not with a particular library/Gem-i haven't got that far yet).

    > 1. My rig: a MacBook Core 2 Duo; It's my personal Mac and i have the
    > admin password.

That is good. You will need the admin password for 'sudo' to install the
rubygems install.

    > 2. version of Ruby i'm running (v. 1.82)

This version of Ruby *should* work. Later upto date versions are available at
Darwinports though (see the link below):

         http://darwinports.com/

    > 3. What i've done: went to rubyforge, downloaded and upacked 0.9.4
    > RubyGems (tried one prior release just in case, same result)

Use the latest version.

    > 4. tried to do an install from my Terminal (% ruby setup.rb <--that's
    > hat the readme file says to do, and indeed, that file is in the
    > distribution.

That is correct. However, you need to install as root (via sudo).

[...]

    > 6. Here's my Terminal window output i got when i tried to run the
    > setup file (which i'll copy in tedious detail in case some small piece
    > of this is the key):

[...]

    > mkdir -p /usr/bin/ install gem
    > /usr/bin/ setup.rb:633:in `initialize':
    > Permission denied - /usr/bin/gem (Errno::EACCES) from setup.rb:633:in
          ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^

This says it all. You were trying to install using your normal user ID; you will
need a root ID (i.e., the 'Admin' user ID) to install the ruby gems system.

So, instead of typing the following in terminal:

    ruby setup.rb

Do this:

    sudo ruby setup.rb

and provide the admin password when the password prompt comes up.

[...]

    > 7. I used, i think, Macaroni or something similar to repair my
    > permissions (did this several times), then tried to re-install, same
    > result.

Your system permissions are fine. This was an access level issue.

HTH,

···

--
Anupam

Hello Anupam:

Yes that worked immediately, thanks! (it also worked when i just
installed a few libraries via R/G, e.g., Mechanize).

Regards,

-Alex

···

On Jul 9, 4:56 am, Anupam Sengupta <anupa...@gmail.com> wrote:

    > Hi: I have tried everything i can think of to install RubyGems, but no
    > success. I would be grateful for any assistance. In sum, my problem
    > is that i can't install the Gems' System (so obviously my problem is
    > not with a particular library/Gem-i haven't got that far yet).

    > 1. My rig: a MacBook Core 2 Duo; It's my personal Mac and i have the
    > admin password.

That is good. You will need the admin password for 'sudo' to install the
rubygems install.

    > 2. version of Ruby i'm running (v. 1.82)

This version of Ruby *should* work. Later upto date versions are available at
Darwinports though (see the link below):

         http://darwinports.com/

    > 3. What i've done: went to rubyforge, downloaded and upacked 0.9.4
    > RubyGems (tried one prior release just in case, same result)

Use the latest version.

    > 4. tried to do an install from my Terminal (% ruby setup.rb <--that's
    > hat the readme file says to do, and indeed, that file is in the
    > distribution.

That is correct. However, you need to install as root (via sudo).

[...]

    > 6. Here's my Terminal window output i got when i tried to run the
    > setup file (which i'll copy in tedious detail in case some small piece
    > of this is the key):

[...]

    > mkdir -p /usr/bin/ install gem
    > /usr/bin/ setup.rb:633:in `initialize':
    > Permission denied - /usr/bin/gem (Errno::EACCES) from setup.rb:633:in
          ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^

This says it all. You were trying to install using your normal user ID; you will
need a root ID (i.e., the 'Admin' user ID) to install the ruby gems system.

So, instead of typing the following in terminal:

    ruby setup.rb

Do this:

    sudo ruby setup.rb

and provide the admin password when the password prompt comes up.

[...]

    > 7. I used, i think, Macaroni or something similar to repair my
    > permissions (did this several times), then tried to re-install, same
    > result.

Your system permissions are fine. This was an access level issue.

HTH,
--
Anupam

Visit the Hivelogic tutorial.
Google this: hivelogic install ruby