no

How to Install Brew and Asciidoctor on Mac

I. Problem Recently, I'm trying to install asciidoctor using brew on my mac machine and I encountered all sorts of permission issues l...

I. Problem

Recently, I'm trying to install asciidoctor using brew on my mac machine and I encountered all sorts of permission issues like these ones:
  • Error: The following directories are not writable by your user: /usr/local/lib/pkgconfig
  • Errno::EPERM: Operation not permitted @ dir_s_mkdir - /usr/local/Cellar

II. Fix.

The solution is to uninstall and install the brew package.
// uninstall brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
// install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then finally, to install the asciidoctor:
brew install asciidoctor

TO use asciidoctor you must also install pygments: sudo gem install pygments.rb.

Related

troubleshooting 1965988359580965587

Post a Comment Default Comments

item