vlaci / openconnect-sso

Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs
GNU General Public License v3.0
299 stars 131 forks source link

MacOS ARM Install #127

Open Xandir150 opened 1 year ago

Xandir150 commented 1 year ago
  1. pip install --user pipx
  2. pipx install openconnect-sso
  3. brew install pyqt5
  4. move all from /opt/homebrew/Cellar/pyqt@5/5.15.7_2/lib/python3.11/site-packages => /Users/USERNAME/.local/pipx/venvs/openconnect-sso/lib/python3.11/site-packages
ducktordanny commented 1 year ago

A few months ago, I wrote a note for my coworkers, in case they will have an ARM Mac in the future. I could resolve this issue by using Rosetta and using this method to this day. Also, one of the new members of my team could do it with these steps, too. So, hope it could be useful:


ARM processor openconnect-sso (Apple silicon)

Tips and tricks to set up your Apple M1 for development

How to Install x86_64 Homebrew Packages on Apple M1 MacBook

Because openconnect-sso contains some libraries that are still not supported on ARM we have to run our terminal with rosetta and setup brew for x86_64. (you'll need the above PATHs to be added to .zshrc or .bashrc)

Then based on the above links (from Rosetta terminal):

(You might also need this: axbrew install python3)

axbrew install pipx

/usr/local/homebrew/Cellar/pipx/1.1.0/bin/pipx install "openconnect-sso[full]"

Another thing that you should install is (from normal terminal):

brew install openconnect

After these steps you will be able to use the VPN from Rosetta terminal:

openconnect-sso —-server <server>