macos-big-sur
ld: library not found for -lzstd while bundle install for mysql2 gem Ruby on macOS Big Sur 11.4 Apple M1
Step 1: confirm you have both openssl and MySQL installed via brew brew install mysql brew install openssl or if you have previous version of openssl try brew reinstall openssl@3 Step 2: Run this on your Rails app to make sure you can get through bundler: gem install mysql2 -v ‘0.5.3’ — –with-opt-dir=$(brew –prefix openssl) … Read more
How can I run two isolated installations of Homebrew?
Install Homebrew natively on Apple Silicon (will install to /opt/homebrew by default): /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” Install Intel-emulated Homebrew (will install to /usr/local by default): arch –x86_64 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” If you haven’t yet installed Rosetta 2, you’ll need to run softwareupdate –install-rosetta first. Create an alias for Intel homebrew. I’m calling … Read more
Develop using OpenGL 4.x on OSX Big Sur
Built-in OpenGL on macOS works a little bit different from other platforms like Windows or Linux. On Windows, system-provided opengl32.dll doesn’t actually implement OpenGL but is rather a proxy-library dynamically loading functions from a driver provided by a graphics card vendor. Graphics card vendors provide drivers independently from Microsoft and OpenGL capabilities can be implemented … Read more
pyenv configure: error: C compiler cannot create executables
This worked for me: I removed the command line tools as root and reinstalled … Your Command Line Tools (CLT) does not support macOS 11. It is either outdated or was modified. Please update your Command Line Tools (CLT) or delete it if no updates are available. Update them from Software Update in System Preferences … Read more
“zsh: illegal hardware instruction python” when installing Tensorflow on macbook pro M1 [duplicate]
This worked for me after trying a bunch of solutions to no avail. Step 1 Using pyenv install python version 3.8.5 and set it as your default python version. This tutorial(https://realpython.com/intro-to-pyenv/) is helpful for getting pyenv configured properly. Step 1.1 Use this post(https://github.com/pyenv/pyenv/issues/1446) if you have troubles running pyenv in zsh. Step 1.2 Once you … Read more
Terminal slow to start first time due to xcodebuild
Switch Apple Git to Git, the problem will go away. Run brew install git to do it. Relate link: https://blog.smittytone.net/2021/05/21/how-to-fix-xcodebuild-macos-terminal-slow-downs/ Another option is to accept the Xcode License sudo xcodebuild -license accept You can find this referring to the reference in the linked article.
Wrong JAVA_HOME after upgrade to macOS Big Sur v11.0.1
Seems in macOS Big Sur v11.0.1 the behavior of the /usr/libexec/java_home -v … command has changed: it is sensitive to the previously set value of JAVA_HOME environment variable. Exact behavior is not clear, I couldn’t find any documentation on this, but in my experiments it reported the version already set in JAVA_HOME, regardless of the … Read more
expressGraphQL is not a function
Please replace your expressGraphQL with graphqlHTTP as it was destructured Use: const { graphqlHTTP } = require(‘express-graphql’); or const expressGraphQL = require(‘express-graphql’).graphqlHTTP This is because a method called graphqlHTTP exist in the express-graphql module and you are destructure with another method name that does not exist in the module I also noticed that you have … Read more