In attempting to start Tomcat 7 on my MacBook Pro on El Capitan, I was getting the following error:
amp-macbook:Cellar anton$ catalina start
Cannot find /usr/local/Cellar/tomcat7/7.0.63/libexec/bin/setclasspath.sh
This file is needed to run this program
I found the issue to be due to my CATALINA_HOME environment variable. To resolve this, just do the following from your terminal:
I needed to do some file moving between users and noticed my admin account didn’t have access, so I tried “su” and “sudo” without success. Apparently, like it Yosemite, root access is disabled by default. Here’s how to enable it:
1. Open Directory Utility (I usually do it via CMD + spacebar, then type "dire")
2. Go to the Edit menu and select "Enable Root User".
3. Enter your desired root password twice.
4. That's it!
Test it out in the terminal by doing:
$ su -
Happy rooting, yo!
Since moving to OS X in 2011/2012 for work to do all my development, I’ve moved Homebrew to a must-have. Adding it here for archiving purposes.
From a terminal:
1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. brew tap caskroom/cask
The 2nd point is to install Homebrew Cask as well, which extends Homebrew’s functionality.
Now get brewing!
I had issues in Yosemite with IntelliJ always complaining that it couldn’t see my M2_HOME variable, even though I had it in my .bash_profile. Turns out that only works in the terminal.
In any case, this worked — I verified it on my Mac, which runs v10.10.5.
1. Save this plist in ~/Library/LaunchAgents/ as custom.startup.plist
launchctl setenv VARIABLE_NAME1 VARIABLE_VALUE1 | launchctl setenv VARIABLE_NAME2 VARIABLE_VALUE2 | launchctl setenv VARIABLE_NAME3 VARIABLE_VALUE3
2. Log out then back in
3. That's it!