Benches macOS

4

Error: You don't have write permissions …

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

while attempting a remote update of rails: (Terminal):

note: same thing happened to me with X11 bash prompt.

___________________________________________TERMINAL OUTPUT

emmanuels-macbook:~ emma$ gem update rails

Updating installed gems...

Bulk updating Gem source index for:
http://gems.rubyforge.org

Attempting remote update of rails

Install required dependency activesupport? [Yn] y

Install required dependency activerecord? [Yn] y

Install required dependency actionpack? [Yn] y

Install required dependency actionmailer? [Yn] y

Install required dependency activeresource? [Yn] y

ERROR: While executing gem ... (Gem::FilePermissionError)

You don't have write permissions into the /usr/bin directory.

emmanuels-macbook:~ emma$ gem install rails --include-dependencies

ERROR: While executing gem ... (Gem::FilePermissionError)

You don't have write permissions into the /usr/bin directory.

___________________________________________________________________endquote

note: tried same thing and same thing happened to me with X11 bash prompt.

why dont i have and how can i change file permissions for my usr/bin/ directory? this is my computer! heh.... any ideas?

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    emmanuel2012

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    also::::

    ---------

    bash-3.2$ /usr/bin

    bash: /usr/bin: is a directory

    bash-3.2$ chmod u+w /usr/bin

    bash-3.2$ gem update rails

    Updating installed gems...

    Attempting remote update of rails

    ERROR: While executing gem ... (Gem::FilePermissionError)

    You don't have write permissions into the /usr/bin directory.

    bash-3.2$ chmod o+w /usr/bin

    chmod: /usr/bin: Operation not permitted

    ---------

  2. 0

    William Lloyd

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    You probably need to do a sudo gem update rails

    You don't have access to write to /usr/bin (this is standard). You need to sudo to gain root access who can write to it. An admin is
    not root.

  3. 0

    emmanuel2012

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    thanks!

    it asked me for a password, i used my admin password and it worked. 😀

    ---------------------------------------------

    bash-3.2$ sudo gem update rails

    Password:

    Updating installed gems...

    Need to update 11 gems from
    http://gems.rubyforge.org

    ...........

    complete

    Attempting remote update of rails

    Successfully installed rails-2.0.2

    Gems: [rails] updated

    ----------------------------------------------

  4. 0

    Averiz

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I was having the same problem but when I use the sudo command It goes into a loop for my password. With any sudo command this happens. I had RoR working just fine on 10.4 power pc. Also I already updated the MySQL pref pane

    *michael-rizzos-mac-pro:~ intelg5$ . ~/.bash_login*

    *michael-rizzos-mac-pro:~ intelg5$ gem install -v=1.2.2 rails*

    *ERROR: While executing gem ... (Gem::FilePermissionError)*

    *You don't have write permissions into the /usr/bin directory.*

    *michael-rizzos-mac-pro:~ intelg5$ sudo gem update rails*

    *WARNING: Improper use of the sudo command could lead to data loss*

    *or the deletion of important system files. Please double-check your*

    *typing when using sudo. Type "man sudo" for more information.*

    *To proceed, enter your password, or type Ctrl-C to abort.*

    Password:

    *michael-rizzos-mac-pro:~ intelg5$ sudo gem update rails*

    *WARNING: Improper use of the sudo command could lead to data loss*

    *or the deletion of important system files. Please double-check your*

    *typing when using sudo. Type "man sudo" for more information.*

    *To proceed, enter your password, or type Ctrl-C to abort.*

    Password:

    *michael-rizzos-mac-pro:~ intelg5$*

    It does this over and over. I don't know what to do now.

    Thanks

    Mike