java - Where to set BASEDIR with Tomcat 7 installed with Homebrew -


on mac, have tomcat set solr 1.4 , solr 3.5 under /library/home in following locations:

/library/tomcat/home  

where /home symlinked /library/tomcat/apache-tomcat-6.0.32

/library/tomcat/home/webapps/solr 

with individual cores under

/library/tomcat/solr 

java installed @

/library/java/home  

where /home symlinked /system/library/frameworks/javavm.framework/home

i having issues getting solr 4.10.4 running in conjunction tomcat, , i'm using homebrew mysql , php, thought i'd try using tomcat7 , solr4 homewbrew. installed tomcat7 to

/usr/local/cellar/tomcat7/7.0.61 

the problem arises when try start tomcat using

/usr/local/cellar/tomcat7/7.0.61/libexec/bin/startup.sh 

i error:

the basedir environment variable not defined environment variable needed run program

i've been searching around, , i've seen various suggestions fixing this, can 't work. first, i'm not sure if supposed same catalina_home. have java_home , catalina_home set in profile (i did change catalina_home /usr/local/cellar/tomcat7/7.0.61/libexec). tried setting basedir in profile same path catalina_home, still same error when try start tomcat.

i don't remember having previous installation of tomcat 6 , solr 3. basedir need set to, , set it?

thanks.