| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
|
Guest
Posts: n/a
|
Hi,
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: QTDIR=/Developer/qt PATH=$QTDIR/bin PATHDYLD_LIBRARY_PATH=$QTDIR/lib DYLD_LIBRARY_PATHexport 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: TERM_PROGRAM=Apple_Terminal TERM=xterm-color SHELL=/bin/bash TERM_PROGRAM_VERSION=133 USER=xyz __CF_USER_TEXT_ENCODING=0x1F5:0:0 PATH=/bin:/sbin:/usr/bin:/usr/sbin PWD=/Users/xyz SHLVL=1 HOME=/Users/xyz LOGNAME=xyz SECURITYSESSIONID=584bf0 _=/usr/bin/env 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 | |
![]() Member Since: Jun 25, 2005
Location: On the road
Posts: 3,231
![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 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=$PATH QTDIR/bin
|
| QUOTE Thanks | |
|
Guest
Posts: n/a
|
/bin/bash 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 | |||||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
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 05:11 PM.
Powered by vBulletin