title: How can I get nasm to work as a command in terminal in MacOS?
body: <p>I have been trying to get nasm to work as a command in terminal, but nothing seems to be working. I just keep getting the error: </p>
  
  <pre><code>nasm: error: unable to find utility "nasm", not a developer tool or in PATH
  </code></pre>
  
  <p>So, first, I tried updating my PATH variable. I tried editing the PATH variable: </p>
  
  <pre><code>safecrackers-MacBook-Pro-2:Library safecracker$ export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Libraries/nasm-2.14/
  safecrackers-MacBook-Pro-2:Library safecracker$ nasm
  nasm: error: unable to find utility "nasm", not a developer tool or in PATH
  safecrackers-MacBook-Pro-2:Library safecracker$ echo $PATH
  /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Library/Libraries/nasm-2.14/
  safecrackers-MacBook-Pro-2:Library safecracker$ cd /Library/Libraries/nasm-2.14/
  safecrackers-MacBook-Pro-2:nasm-2.14 safecracker$ ls
  LICENSE     man1        ndisasm     rdf2ihx     rdfdump
  README      nasm        rdf2bin     rdf2ith     rdflib
  ldrdf       nasmdoc.pdf rdf2com     rdf2srec    rdx
  </code></pre>
  
  <p>I got the same error. Next, I tried installing nasm with homebrew:</p>
  
  <pre><code>safecrackers-MacBook-Pro-2:~ safecracker$ brew reinstall nasm
  ==&gt; Reinstalling nasm 
  ==&gt; Downloading https://homebrew.bintray.com/bottles/nasm-2.14.02.mojave.bottle.tar.gz
  Already downloaded: /Users/safecracker/Library/Caches/Homebrew/downloads/8581149c56e4f6aa40f6c17f75921aeec141f01373082bda3c7c8afa5cf5fbd5--nasm-2.14.02.mojave.bottle.tar.gz
  ==&gt; Pouring nasm-2.14.02.mojave.bottle.tar.gz
    /usr/local/Cellar/nasm/2.14.02: 30 files, 2.7MB
  safecrackers-MacBook-Pro-2:~ safecracker$ nasm
  nasm: error: unable to find utility "nasm", not a developer tool or in PATH
  </code></pre>
  
  <p>Again, I got the same error. I would love to finally figure this out.</p>