wireguard tools cannot be installed on macos

My mac os version is Sonoma 14.4

I am installing wireguard tools from:

https://git.zx2c4.com/wireguard-tools/about/


Here are the steps I followed:

1) git clone <url above>

2) cd src; make

3) make install

At step 3 I get this error:

install: chmod 755 /usr/bin: Operation not permitted

install: /usr/bin/wg: Operation not permitted

make: *** [install] Error 71


I tried:

1) sudo make install

sudo does not accept my password

2) sudo -s

Again I got the error messages above even though I was root.

bash-3.2# whoami

root


The /etc/sudoers file does contain 'admin'.

# root and users in group wheel can run anything on any machine as any user

root      ALL = (ALL) ALL

%admin     ALL = (ALL) ALL


How should I proceed ?


Many thanks.


MacBook Air 13″, macOS 14.4

Posted on Mar 24, 2024 7:00 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 24, 2024 7:19 PM

The build directions you’re following are inapplicable to macOS.


Here’s a ready-built app: https://apps.apple.com/us/app/wireguard/id1451685025?mt=12


If you want to use source code, Homebrew has (an older) version of WireGuard Tools and WireGuard Go.

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

wireguard tools cannot be installed on macos

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.