Installling Qt 3.3.6 on Mac OS X - Problem with .profile
I want to install Qt 3.3.6 for Mac(free version) on Mac OS X 10.4.
Now the install manual instructs to create a .profile file (since my shell is bash) and set the environment variables there.
Now I am stuck at this point, where exactly do I create the file .profile ?
Pleease help me out!
Thanks in advance!
Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile
In your home-directory: /Users/<yourUsername>/
In Finder, press Command + Shift + H to go there.
Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile
Thanks a lot for the help! I did that. I have added the following lines it.
QTDIR=/Developer/qt-3.3.6
PATH=$QTDIR/bin:$PATH
DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
export QTDIR PATH DYLD_LIBRARY_PATH
I also logged out n logged.
After this I gave env command at the bash command, but the PATH does not list "$QTDIR/bin:$PATH".
Whats is going wrong? How do i figure out that the environment variables have been set?
Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile
Just in case this helps.... this is what i get on giving the 'env' command on bash:
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-color
TERM_PROGRAM_VERSION=133
USER=shambhavi
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/bin:/sbin:/usr/bin:/usr/sbin
PWD=/Users/shambhavi
HOME=/Users/shambhavi
SHLVL=2
LOGNAME=shambhavi
SECURITYSESSIONID=2f04e20
_=/usr/bin/env
OLDPWD=/Users/shambhavi
Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile
Is there already a .bash-profile file in addition to .profile in you home directory?
Re: Installling Qt 3.3.6 on Mac OS X - Problem with .profile
Thank you Dimitri and axeljaeger for your help. I have got it running now.
I did a silly thing, the .profile was of RTF format and so it could'nt be recognised. I recreated the file using vim, and now the variables are set.