On Mar 4, 2013, at 5:58 PM, Murray Eisenberg <[email protected]> wrote:

> In my ~/.profile, I've set:
> 
>  export JAVA_HOME=$(/usr/libexec/java_home)
>  export CATALINA_BASE=/opt/local/share/java/tomcat6
> 
> And re-loaded the profile into Terminal with: source ~/.profile
> 
> But wen I run 
> 
>  sudo /opt/local/share/tomcat6/bin/conf_setup.sh
> 
> I get message:  CATALINA_BASE must be set in my environment
> 
> How do I fix that?

By default, sudo executes commands with a minimal environment, so CATALINA_BASE 
won't be passed along. The easiest thing to try is explicitly specifying the 
variable in the sudo invocation.

    sudo CATALINA_BASE=$CATALINA_BASE /opt/local/share/tomcat6/bin/conf_setup.sh

vq
_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to