• About Me
  • Impressum
  • Privacy
  • Status Page

№42

... it's better to have good questions

Build pmacct on Mac OSX from source

2023-01-26 1 min read Monitoring Ronny Trommer

I need a way to generate real-world NetFlow data, and pmacct is a great tool that helped me with various things. I couldn’t find a precompiled package so I have compiled it from the source myself. To get it running on my MacBook Pro with Apple Silicon, I had to jump through a few hoops to get it running. Here is a quick guide to making it work for someone else, including my future self :)

Install some build dependencies using Homebrew.

brew install autoconf automake librdkafka

Clone the Git repository and change into the pmacct directory.

git clone https://github.com/pmacct/pmacct.git
cd pmacct

Add the librdkafka header files to your search path.

export C_INCLUDE_PATH=/opt/homebrew/Cellar/librdkafka/2.0.2/include
export LIBRARY_PATH=/opt/homebrew/Cellar/librdkafka/2.0.2/lib

You need to adapt the version number, at the point in time, I got version 2.0.2 installed.

Run the configure and make commands to build the tool.

./autogen.sh
./configure
make

The binary files are src directory. If you want to install them run make install and they will be copied to /usr/local/bin. You need root permissions to do it.

You can run it now with ./pmacctd -f /path/to/your/pmacctd.conf.

gl&hf

Netflow Pmacct
Latest posts
  • Using Two Claude Accounts Side by Side
  • Why You Should Care About Your Release Notes
  • How Docker Broke the Internet for Me
  • macOS with Apple Silicon and x86-64-v3 support
  • Streaming telemetry with gNMI
  • Go away or I replace you with a Makefile
  • SNMP Proxy ... wait what?
  • Hackathon on BGP monitoring using BMP in OpenNMS
  • Dealing with secrets in OpenNMS Horizon
  • Building container images for OpenNMS
Categories
  • OpenNMS (27)
  • Technology (27)
  • How-To (23)
  • Monitoring (13)
  • Container (8)
  • Tutorial (8)
  • Events (6)
  • Open-Source (6)
  • BGP (2)
  • Networking (2)
Social media
© 2026 made in 🇪🇺 by Ronny Trommer with ❤️ for Open Source
Bilberry Hugo Theme