The purpose of this guide is to serve as a troubleshooting knowledge base for DBaaS, helping the team to better communicate and avoiding that the same problem is rediscovered and solved multiple times by different developers.
You might get this error for two reasons:
-
You need to install mysql on your computer.
-
After the installation, you didn't create the environment variable for mysql.
export PATH=$PATH:/usr/local/mysql/bin
This error is related to Pillow or python-ldap installation inside the virtual environment and is most likely to happen because of three main reasons:
-
Xcode Command Line Tools are not installed on your Mac
xcode-select --install
-
Some libs are not installed
brew install libtiff libjpeg webp little-cms2 openssl
-
The compiler can't find the headers on the default directory. You need to create a symbolic link to the actual directory.
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11 /usr/local/include/X11
When executing make pip
, you might have some problem with python-ldap lib. Other than the solutions above, this issue found to be originated from some reasons:
-
You need to check if xcode is installed on your machine. Just type CMD + Space: xcode.
-
If the compiler's still not finding it. Try exporting CFLAGS such that it adds an include path to the sasl headers already installed by Xcode:
export CFLAGS="-I$(xcrun --show-sdk-path)/usr/include/sasl"
-
Just in case the problem persists, try to reinstall opensll and set LIBRARY_PATH.
brew install openssl
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/