PDA

View Full Version : Installling Qt 3.3.6 on Mac OS X - Problem with .profile



Shambhavi
5th April 2006, 12:18
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!

axeljaeger
5th April 2006, 16:37
In your home-directory: /Users/<yourUsername>/

In Finder, press Command + Shift + H to go there.

Shambhavi
6th April 2006, 09:17
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?

Shambhavi
6th April 2006, 09:21
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

dimitri
8th April 2006, 09:45
Is there already a .bash-profile file in addition to .profile in you home directory?

Shambhavi
8th April 2006, 11:04
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.