halo / macosvpn

:wrench: Create macOS VPNs programmatically (L2TP & Cisco)
Other
442 stars 72 forks source link

Brew file install error #56

Closed davidwoodcock closed 1 year ago

davidwoodcock commented 2 years ago

When trying to use brew "macosvpn" in my brewfile i get an error. I can install by using brew install macosvpn, but cant figure out why I get a "Error: Invalid Brewfile: undefined local variable or method `“macsosvpn”' Any thoughts?

halo commented 2 years ago

In your Brewfile, what does the line with macosvpn look like?

It should be like this:

# Correct: We call the method `brew` and pass in the string `"macosvpn"`.
brew "macosvpn"

and not like this:

# Wrong: We call the method `brew` and also call an unknown command `macosvpn`.
brew macosvpn

The Brewfile is written in Ruby. And brew is a command inside your Brewfile. The word "macosvpn" would have to be a string (in quotation marks). If you call macosvpn as a command, you would get an "undefined local variable" error.

# Also correct: this is another way of writing it, for clarification
brew("macosvpn")
halo commented 1 year ago

I'll close this for now, since it is more related to brew internals, rather than this app. Feel free to open it again if you would like to provide more information.