Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: "/Volumes/Macintosh: Not a directory" #748

Closed
bradbergeron-us opened this issue Apr 22, 2015 · 12 comments
Closed

Error: "/Volumes/Macintosh: Not a directory" #748

bradbergeron-us opened this issue Apr 22, 2015 · 12 comments

Comments

@bradbergeron-us
Copy link

Installing ruby-2.2.2...
mkdir: /Volumes/Macintosh: Not a directory

##BUILD FAILED (OS X 10.10.3 using ruby-build 20150413)

###Inspect or clean up the working tree at /var/folders/58/fg59q9n577j9mfctgy63ylm00000gn/T/ruby-build.20150422063937.25340
Results logged to /var/folders/58/fg59q9n577j9mfctgy63ylm00000gn/T/ruby-build.20150422063937.25340.log

### Last 10 log lines:
Last-Modified: Mon, 13 Apr 2015 20:10:53 GMT
ETag: "326e99ddc75381c7b50c85f7089f3260"
Accept-Ranges: bytes
Server: AmazonS3
Age: 65639
X-Cache: Hit from cloudfront
Via: 1.1 0a17b6e7205e842c4e078772a70bf8c4.cloudfront.net (CloudFront)
X-Amz-Cf-Id: eo64Oxam2DxYbi3A20nu6FIyZYEVooU08ssb8yxy5gQrTLmHDX-4NA==

/var/folders/58/fg59q9n577j9mfctgy63ylm00000gn/T/ruby-build.20150422063937.25340/ruby-2.2.2 /var/folders/58/fg59q9n577j9mfctgy63ylm00000gn/T/ruby-build.20150422063937.25340 ~
@bradbergeron-us
Copy link
Author

I think my problem may be similar to Smace below

smace commented on Nov 20, 2014
I have found what was the problem, I'm using a SSD and a HDD in my MBP, / is mounted on my SSD and /user/home on my HDD, rbenv default directory is /user/home/.rbenv moving it to /usr/local/var/rbenv allowed to build ruby!

can you provide specific command line fix here as maybe this will help others in future

@mislav
Copy link
Member

mislav commented Apr 22, 2015

Thanks for reporting. I'm guessing this is because of a space in /Volumes/Macintosh HD/ path that the installer is supposed to work with. See #385 and rbenv/rbenv#558

@mislav
Copy link
Member

mislav commented Apr 22, 2015

  1. Is your rbenv root at default location? The default location is ~/.rbenv
  2. Can you tell us how your drives are mounted? df

@bradbergeron-us
Copy link
Author

~
❯ cd ~/.rbenv

~/.rbenv
❯ ls
shims versions

~/.rbenv
❯ cd ..

~
❯ df
Filesystem Size Used Avail Capacity iused ifree %iuse Mounted on
/dev/disk2 111Gi 80Gi 30Gi 73% 21039717 7964953 73% /
devfs 192Ki 192Ki 0Bi 100% 663 0 100% /dev
/dev/disk1s2 698Gi 180Gi 518Gi 26% 47246327 135687415 26% /Volumes/Macintosh HD

map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
map -fstab 0Bi 0Bi 0Bi 100% 0 0 100% /Network/Servers
//;AUTH=No%20User%20Authent@WDMyCloud.local./Public 1.8Ti 565Gi 1.2Ti 32% 148155667 321655423 32% /Volumes/Public-1

@bradbergeron-us
Copy link
Author

Tried changing names of hard drives and now can not even log in to my user profile

###F********
ed
My data was structures so that I would launch into the SSD drive and had OSX installed on both al my application data was transferred onto SSD although I think technically my home folder was located on the HDD "MIcrosoft HD" and for some reason I've had Rbenv working correctly before maybe 2 months ago.

Not sure what to do now, but if anyone can help I'd appreciate it.

@bradbergeron-us
Copy link
Author

Update : logged in under guest and corrected path to my designated "login folder" with the new HDD name without spaces.

##Root path to my login account is:

/Volumes/OSX_HD/users/#{login_name}

@mislav
Copy link
Member

mislav commented Apr 23, 2015

I don't suggest you make any system changes. Instead, install rubies in a location that is not in your home folder, to avoid installing to "Macintosh HD". E.g.:

sudo mkdir -p /opt/rubies
sudo chown "${USER}:staff" /opt/rubies
rm -rf ~/.rbenv/versions
ln -s /opt/rubies ~/.rbenv/versions

Now install Ruby version to /opt/rubies and they will be available as rbenv versions:

$ ruby-build 2.1.5 /opt/rubies/2.1.5
# (`rbenv install 2.1.5` might work as well; not sure)

$ rbenv global 2.1.5

@bradbergeron-us
Copy link
Author

Saved -- Thank You!

@mislav
Copy link
Member

mislav commented Apr 24, 2015

Sorry you had trouble with my syntax (valid bash) in zsh. Maybe this would be better (in the future):

chown "${USER}:staff" /opt/rubies

@mislav mislav changed the title Install Error with Rbenv and Ruby-Build Error: "/Volumes/Macintosh: Not a directory" Apr 27, 2015
@SerzhSergeev
Copy link

Thank you!
That's working for me too! 😜
Ruby-build 2.2.2, 10.10.3 OSX.

Installed ruby-2.2.2 to /opt/rubies/2.2.2

@mislav
Copy link
Member

mislav commented May 23, 2015

I've added this caveat to our wiki so now I feel I can close this. Thanks everyone for participation.

@mislav mislav closed this as completed May 23, 2015
@bradbergeron-us
Copy link
Author

Yes that problem was awful, similar issue that should be added to Wiki is when the file .rbenv.shim gets in the way of the executable path. It has been an issue prior. But I think that should be added into the documenation as well. **Although more related to rbenv* but these tools are all trying to aid in the same problem.

jgarber623 added a commit to jgarber623/dotfiles that referenced this issue May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@mislav @bradbergeron-us @SerzhSergeev and others