I have an issue with a tutorial in this website


I want to install Windows 10 into a PC computer and have just a Mac to create an USB bootable system.

It’s complicated but I found this tutorial (here) : How to Make a Windows 10 USB Using Your Mac - Build a Bootable ISO From Your Mac's Terminal
By Quincy Larson

I followed it but I can’t progress anymore. I stopped at step 6.3 saying :

"Then use Homebrew to install a tool called wimlib with this terminal command:

`brew install wimlib`"

My terminal answer me :
zsh: command not found: brew

All the steps before was succefull. however I had this message after instlling brew : “Warning: /opt/homebrew/bin is not in your PATH.
==> Installation successful!”

I don’t know if it’s an important warning.

I’m not a programmer and not familiar with Terminal. (I just want to install Windows to sell my PC computer).

I’m on Macbook Air M1 with BigSur.

I hope someone can help me to complete this task.

Best regard.

Welcome there,

You are doing an excellent job getting through, if you are not a programmer.

Essentially, this is what is going on:

  • As you correctly noted, the first error is saying you needed to install brew.
  • After installing a package like brew, the installer will often present you with the option to add the executable to your PATH. The PATH (I do not know why it is always caps…) is a lookup table for your terminal - where it goes to find the commands you type.
  • If you did not select this option (sometimes you are not given the option, but no worries, either way), then you will need to manually add it to you PATH variables. I do not own a Mac, but I assume you could just search how to add the executable (I suppose for Mac it is not called this - so, let’s call it the binary/bin).
  • After some searching, it looks like the best way to add a bin to PATH is: https://stackoverflow.com/a/65493486

Edit your ~/.zshrc or ~/.bashrc with at the end of file :

export PATH=/opt/homebrew/bin:$PATH

After this, tap source ~/.zshrc in your terminal or restart it.

If you are unfamiliar, the easiest way to edit your ~/.zshrc (if you are not using zsh, then replace with .bashrc) file is:

  1. Type this in terminal: nano ~/.zshrc
  2. The nano editor should appear within the terminal. You cannot use the mouse to navigate the cursor, and should use the arrow keys.
  3. At the end of the file, add the above mentioned code - no extra spaces
  4. To save what you have added, and exit the editor, type CMD + X
  5. A prompt will ask if you want to save, type Y, and click ENTER
  6. A prompt will ask where to save (maybe): Click ENTER to save the default
  7. That should be it.

But, as I say, I have little experience with Mac, so your mileage may vary.

Now, your terminal should understand what you mean when you type brew.

I hope this helps in some way

Hi, thank you for your answer. I didn’t expect sush promptness.

In the same time I found another tutorial using a software named UNetbootin.
Link to the tuto (in French, my native language. I suppose you can find the same in english.) : Création Clé Bootable Windows 10 sur MAC ! - YouTube

It’s looks to work because I succed to boot on the Windows installator (but not started the installation yet).

So if I have a probleme and it doesn’t work I’ll come back here to try the solution you propose to me.

Whatever thank you :slight_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.