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 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.

0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post
NERV Open Source

Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.

Explore NERV on GitHub →