Error executing command ‘ant’ on Mac OS X 10.9 Mavericks when building for Android with PhoneGap/Cordova

The error message proved to be true as Apache Ant isn’t in the path of Mac OS X Mavericks anymore. Bulletproof solution: Download and install Homebrew by executing following command in terminal: ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” Install Apache Ant via Homebrew by executing brew install ant Run the PhoneGap build again and it should … Read more

How to set JAVA_HOME environment variable on Mac OS X 10.9?

If you’re using bash, all you have to do is: echo export “JAVA_HOME=\$(/usr/libexec/java_home)” >> ~/.bash_profile If you’re using zsh (which probably means you’re running macOS Catalina or newer), then it should instead be: echo export “JAVA_HOME=\$(/usr/libexec/java_home)” >> ~/.zshrc In either case, restart your shell. If you have multiple JDK versions installed and you want it … Read more

clang error: unknown argument: ‘-mno-fused-madd’ (python package installation failure)

You can tell clang to not raise this as an error by setting the following environment variables prior compilation: export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments Then pip install psycopg2should work. I had the same when trying to pip install lxml. Edit: if you are installing as superuser (which will likely be the case if you are trying … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)