04-08-2006, 02:53 AM #1ShambhaviGuestNot able to set environment variables using .profile file.
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:
export QTDIR PATH DYLD_LIBRARY_PATH
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.
04-08-2006, 04:32 AM #2
- Member Since
- Jun 25, 2005
- On the road
- 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
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
04-08-2006, 04:58 AM #3ShambhaviGuest
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.
04-08-2006, 05:15 AM #4ShambhaviGuest
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!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By pines3 in forum OS X - Operating SystemReplies: 0Last Post: 01-25-2013, 03:17 AM
By pines3 in forum iOS DevelopmentReplies: 0Last Post: 01-23-2013, 08:39 PM
By Smacky311 in forum OS X - Development and DarwinReplies: 1Last Post: 10-03-2008, 07:33 PM
By oquimdcr in forum OS X - Operating SystemReplies: 9Last Post: 09-09-2008, 02:51 AM
By HSN in forum OS X - Apps and GamesReplies: 5Last Post: 12-06-2007, 11:19 PM