geerlingguy / macos-virtualbox-vm

Instructions and script to help you create a VirtualBox VM running macOS.
MIT License
2.55k stars 314 forks source link

hdiutil command does not exist on Fedora 27 #50

Closed phracek closed 5 years ago

phracek commented 6 years ago

I am trying to install macOSSierra on my Fedora 27 machine, but hdiutil does not exist. Do you have a solution for it?

$ ./prepare-iso.sh 
./prepare-iso.sh: line 143: hdiutil: command not found
xargs: hdiutil: No such file or directory
Could not find installer for Yosemite (10.10), El Capitan (10.11) or Sierra (10.12).
$ uname -a
Linux auris.stone 4.16.7-200.fc27.x86_64 #1 SMP Wed May 2 20:33:31 UTC 2018 x86_64 x86_64 
$ cat /etc/redhat-release 
Fedora release 27 (Twenty Seven)
$ 
qrkourier commented 6 years ago

I ran in to this problem too and I suspect the script was written for BASH on Darwin Unix only.

geerlingguy commented 5 years ago

Yeah, this script is only meant for macOS / Darwin... there are a lot of little bits that will break on Linux/non-macOS environments. Technically you could build the iso on a Mac then move it to a non-Mac... but that is untested, technically outside the scope of the macOS license, and unsupported by this project ;)