‘pip install MySQL-python’ fails with ‘IndexError’

Copy from this blog. By finding out the information that mysql-connector-cmight come to the conclusion that the configuration by brew installation may be incorrect , open the /usr/local/bin/mysql_config script to modify some of the contents of it: #Create options Libs = “-L$pkglibdir ” Libs = “$libs -l” change into: #Create options Libs = “-L$pkglibdir” Libs … Read more

How to auto-load MySQL on startup on OS X Yosemite / El Capitan

This is what fixed it: First, create a new file: /Library/LaunchDaemons/com.mysql.mysql.plist <?xml version=”1.0″ encoding=”UTF-8″?> <plist version=”1.0″> <dict> <key>KeepAlive</key> <true /> <key>Label</key> <string>com.mysql.mysqld</string> <key>ProgramArguments</key> <array> <string>/usr/local/mysql/bin/mysqld_safe</string> <string>–user=mysql</string> </array> </dict> </plist> Then update permissions and add it to launchctl: sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist

Autostart MySQL Server on Mac OS X Yosemite/El Capitan

@dcc was very close. This is how MySQL autostarts again on Yosemite: The com.mysql.mysql.plist in /Library/LaunchDaemons: <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>KeepAlive</key> <true/> <key>Label</key> <string>com.mysql.mysqld</string> <key>ProgramArguments</key> <array> <string>/usr/local/mysql/bin/mysqld_safe</string> <string>–user=mysql</string> </array> </dict> </plist> Additionally I’ve changed the permissions based on this answer sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist sudo chmod … Read more

brew install clang-omp not working

You can install llvm using brew since it now includes openmp. brew install llvm You can make a symlink if you want ln -s /usr/local/opt/llvm/bin/clang /usr/local/bin/clang-omp My makefile looks like this CPP = /usr/local/opt/llvm/bin/clang CPPFLAGS = -I/usr/local/opt/llvm/include -fopenmp LDFLAGS = -L/usr/local/opt/llvm/lib example: example.c $(CPP) $(CPPFLAGS) $^ -o $@ $(LDFLAGS)

ERROR: While executing gem … (Errno::EPERM) Operation not permitted [duplicate]

I found the answer on SASS issues: https://github.com/sass/sass/issues/1768 Since OSX el Capitan there is a new security function that prevents you from modifying system files called Rootless. So you have 2 options: If you install gems on /usr/local/bin there will be no problem because rootless doesn’t affect this path. sudo gem install -n /usr/local/bin GEM_NAME_HERE

MySQL Improperly Configured Reason: unsafe use of relative path

In OS X El Capitan (10.11), Apple added System Integrity Protection. This prevents programs in protected locations like /usr from calling a shared library that uses a relative reference to another shared library. In the case of _mysql.so, it contains a relative reference to the shared library libmysqlclient.18.dylib. In the future, the shared library _mysql.so … Read more

PDFtk Server on OS X 10.11

Thank you for your patience. I have successfully tested this pdftk installer and binary on OS X 10.11, El Capitan: https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg I will update our PDF Labs site soon to reflect this update. If you already have pdftk installed from the old installer, this should install right on top of it without a problem — … Read more

‘Library not loaded: @rpath/libcudart.7.5.dylib’ TensorFlow Error on Mac

This error message is displayed if you install the GPU-enabled Mac OS version of TensorFlow (available from release 0.10 onwards) on a machine that does not have CUDA installed. To fix the error, install the CPU version for Python 2.7 or 3.x, as follows: # Mac OS X, CPU only, Python 2.7: $ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py2-none-any.whl … Read more