Skip to content

Ruby install failure #39

@abazlinton

Description

@abazlinton

I think this might be more of a FYI.

A student has a username of joebloggs but a home directory /Users/joebloggs 1

Configuring Ruby ...
Downloading ruby-2.4.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.bz2
Installing ruby-2.4.1...
mkdir: /Users/joebloggs: Permission denied

BUILD FAILED (OS X 10.14 using ruby-build 20180822)

I think this explains mkdir: /Users/joebloggs: Permission denied

I think rbenv might be making assumptions about the location of the home directory...

My solution was -

brew install ruby
edit ~./zshrc to add export PATH=/usr/local/Cellar/ruby/2.5.3_1/bin:$PATH

Which is side-stepping the issue. You can apparently rename the home folder.
https://support.apple.com/en-gb/HT201548

Assuming this is actually the issue.

Side note: this issue only became apparent when trying to install pry-byebug as ruby was defaulting to the system version and failing to install for some reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions