New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - Not able to set environment variables using .profile file.

Post Reply New Thread Subscribe

Thread Tools
Posts: n/a

I am trying to install Qt3.3.6 on my system. This requires a few variables to be set.

Now the install manual instructs to create a .profile file (since my
shell is bash) and set the environment variables there.
I created the .profile in /Users/xyz as follows:



I saved the .profile file and did a reboot. But the env variables have
not been set?
What is going wrong?
In the terminal $QTDIR is empty and the env command gives the following output:


Why are the variables $QTDIR and $PATH not updated?
How do I set these variables?

Please help I am newbie to Mac!

Thanks in advance.
QUOTE Thanks

xstep's Avatar
Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
xstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to allxstep is a name known to all
Mac Specs: 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid

xstep is offline
I cut & pasted that content to a virgin .profile file and it worked properly.

Open a Terminal window and type "echo $SHELL" without the quotes. If your really in the bash shell you'll see /bin/bash displayed.

If not, I can tell you how to fix it.

If your in the bash shell then type "cat .profile" to recheck the file.

By the way, unless the qt development path has substitutions for commands in the regular path, I'd set the path as PATH=$PATHQTDIR/bin
QUOTE Thanks
Posts: n/a

echo $SHELL did give me

while cat .profile gave
cat: .profile: No such file or directory.

While I can see the file being present (I have my show all files option of the Finder property turned ON)

The way i created my .profile was went to TextEdit pasted the content that goes into it. Saved it as .profle (the format was RTF the default) in my Users/<myUserName> folder. i.e in my $HOME folder.
QUOTE Thanks
Posts: n/a

Thanks a lot xstep for ur cues. I got it solved. The problem was with i saved the file in RTF format.
I recreated the file using VIM and now the variables are set.

:-) Thank U!
QUOTE Thanks

Post Reply New Thread Subscribe

« Airport status not showing in menubar | May be possible to get a Tiger 10.4 download place? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
File Icons & Associations confusion markwm OS X - Operating System 1 03-04-2006 10:38 PM
Not too pleased with new iMac JunMacTech Apple Desktops 14 12-05-2005 07:13 PM
Show Item Info inflexion OS X - Operating System 15 10-24-2005 10:34 PM
File copying frustrations - help? djmitch Switcher Hangout 5 06-27-2005 01:23 AM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 01:23 PM

All times are GMT -4. The time now is 08:07 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?