"make px4_sitl gazebo" giving multiple errors

I followed the set up instructions and I can run a simulation with JMAVSim but when I try to run gazebo I get errors such as …

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/usr/include/c++/v1/cmath:329:9: error: no member named ‘isless’ in the global namespace
using ::isless;
Which looks like this issue is with my systems current C/C++ version not having certain libraries

Fail error incase this is helpful…

FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build /Users/alejandropasillas/Desktop/NASA_Academy/PX4-Autopilot/build/px4_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-build

cd /Users/alejandropasillas/Desktop/NASA_Academy/PX4-Autopilot/build/px4_sitl_default/build_gazebo && /usr/local/Cellar/cmake/3.21.4/bin/cmake --build /Users/alejandropasillas/Desktop/NASA_Academy/PX4-Autopilot/build/px4_sitl_default/build_gazebo – -j 10

ninja: build stopped: subcommand failed.

make: *** [px4_sitl] Error 1

Try redownloading Gazebo plugins:

sudo apt-get install libprotobuf-dev libprotoc-dev protobuf-compiler libeigen3-dev libxml2-utils python-rospkg python-jinja2

sudo apt-get install libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly -y

I think this will solve your problem. However, if you get another error, you may have to try:

sudo rm /tmp/px4-sock-0