Setting Environment Variables

Joined
Sep 8, 2008
Messages
6
Reaction score
0
Points
1
I already searched past threads, but it is not very clear to me as I'm fairly new to Mac OS.

I've read several things from editing launchd.conf, which I was never able to find, to copy bashrc to my home and edit it to make the variables permanent. Nothing seems to work so far. So I was hoping some good samaritan would help me through setting these variables so I can get to work...

export ANT_HOME=/Applications/apache-ant-1.7.1/
export CATALINA_HOME=/Applications/apache-tomcat-5.5.25/
export SMARTFOX_HOME=/Applications/smartfox/
export FLEX_HOME=/Applications/Adobe Flex Builder 3/sdks/3.0.0

Any help would be GREATLY appreciated.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
sure, you can do the following.... (in terminal)

echo "
export ANT_HOME=/Applications/apache-ant-1.7.1/
export CATALINA_HOME=/Applications/apache-tomcat-5.5.25/
export SMARTFOX_HOME=/Applications/smartfox/
export FLEX_HOME=/Applications/Adobe Flex Builder 3/sdks/3.0.0" >> .profile

then do a . ./.profile

that will set those variables whenever you log in.
 
OP
O
Joined
Sep 8, 2008
Messages
6
Reaction score
0
Points
1
Thanks a lot for the quick reply. It's telling me that...

3/sdks/3.0.0 is not a valid identifier

... and I know the path is right. Any idea why this could be happening?
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Does it tell you that when you do the initial echo or when you log in? (run the profile)
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Does it give you the same error when you issue the command manually? If not tail .profile and check the syntax
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
It's the spaces.

Try export FLEX_HOME='/Applications/Adobe Flex Builder 3/sdks/3.0.0'

use the single quotes. You can simply vi or nano the .profile and swap the line.
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
No problem, glad it's worked and sorry I missed the spaces the first timeO:)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top