Tinderbox Forum

Notice for pandoc and Homebrew users upgrading to Apple M1 - steps for addressing installation error

Hi all, I am a pandoc users, which I manage and install through Homebrew (big thanks to @Bernard-0 and @rtalexander for helping me learn all this in the first place).

I recently upgraded to a new machine with the M1 chip. It appears that the M1 architecture has moved some things around and if you’re like me you’ll encounter an installation error.


Luckily there is an easy fix. @rtalexander helped me figure out how to execute the workflow. :pray:

USE THE FOLLOWING AT YOUR OWN RISK AS I AM NOT AN EXPERT (But, this flow did work for me).

Here is the summary, maybe Roger can explain in more detail.

  1. Open terminal (I use Iterm)
  2. Type ln .zshrc zshrc this will create a link to the z shell run control file so that yu can edit the .zshrc file
  3. Type `ls’ to see if zshrc link was successfully created
  4. Open zshrc with a text editor (I used BBEDIT)
  5. Paste export PATH=/opt/homebrew/bin:"$PATH" into the zshrc text file (see this [article]
  6. Save file
  7. Go back to the terminal
  8. Type ls /opt/homebrew' to check if check if homebrew is installed 9, Type source .zhrc`
  9. Type echo $PATH' to confirm they homebrew path is correct, I got ./opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin`
  10. Type rm -f zshrc to remove the link file you created in step 2. DO NOT PUT A . IN FRONT. This step is a cleanup exercise as you don’t need this file anymore.

Now you are done. Homebrew should be installed. Go ahead and install pandoc.

Now, if you’re like me and you’re using the Tinderbox run command to call pandoc you may find you get the following error, in this case I’m using is in the $HTMLPreviewCommand.

The error is occurring because I’m calling the wrong pandoc path. To confirm your pandoc path `/user/lcoal/bin/pandoc’. To confirm the right path, do the following:

  1. Open a terminal
  2. Type which pandoc, this will return the path, for me it is /opt/homebrew/bin/pandoc


Once you have the path, you can then update your stamp or action code (all depends on how you’re using pandoc) with the correct path.


Thanks for the tip. For me, Homebrew went south a few years back. I have one machine with it still installed but everything else is on macports now. More secure, the installations are so much cleaner. And it’s nice to not have to deal with what seemed to be more and more bad assumptions of users by the homebrew crew.

Cool! I’d never heard of macports, let knowing about alternatives.