Environment variables via brew formla


(Parth Verma) #1

I am trying to create a new brew formula of the package PCP for macOS. But it needs a variable $PCP_DIR with the location of the installed directory after installation. Is there a way to declare the variable in the formula itself or create symlinks for the required directory?

For example, I need “sudo ln -s /usr/local/Cellar/pcp/4.1.1/etc/pcp.env /etc/pcp.env” this symlink to be created. How should i incorporate this in the formula?


(Sean Molenaar) #2

If it’s the software from pcp.io you can just use the “build from source” instructions from the website.