What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

From the Apple Developer Forum (account required): “The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions. -mmacosx-version-min tells the tools what OS versions you need to work with, so the tools can disable optimizations that won’t run on those OS versions. If you need to run on older … Read more

mvn command not found in OSX Mavrerick

Try following these if these might help: Since your installation works on the terminal you installed, all the exports you did, work on the current bash and its child process. but is not spawned to new terminals. env variables are lost if the session is closed; using .bash_profile, you can make it available in all sessions, since when a bash session starts, it … Read more

“code .” Not working in Command Line for Visual Studio Code on OSX/Mac

1. Make sure you drag Visual Studio Code app into the -Applications- folder Otherwise (as noted in the comments) you’ll have to go through this process again after reboot 2. Next, open Visual Studio Code Open the Command Palette via (⇧⌘P) and type shell command to find the Shell Command: Update: use Uninstall ‘code’ command in PATH** command before > Install … Read more

How to set or change the default Java (JDK) version on macOS?

First run /usr/libexec/java_home -V which will output something like the following: Pick the version you want to be the default (1.6.0_65-b14-462 for arguments sake) then: or you can specify just the major version, like: Now when you run java -version you will see: Add the export JAVA_HOME… line to your shell’s init file. For Bash (as stated by antonyh): For Fish (as stated … Read more

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