Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Not able to set environment variables using .profile file.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Shambhavi" data-source="post: 201392"><p>Hi,</p><p>I am trying to install Qt3.3.6 on my system. This requires a few variables to be set.</p><p></p><p>Now the install manual instructs to create a .profile file (since my</p><p>shell is bash) and set the environment variables there.</p><p>I created the .profile in /Users/xyz as follows:</p><p></p><p>QTDIR=/Developer/qt</p><p>PATH=$QTDIR/bin<img src="/mac_images/images/smilies/Money-Mouth.png" class="smilie" loading="lazy" alt=":$" title="Money Mouth :$" data-shortname=":$" />PATH</p><p>DYLD_LIBRARY_PATH=$QTDIR/lib<img src="/mac_images/images/smilies/Money-Mouth.png" class="smilie" loading="lazy" alt=":$" title="Money Mouth :$" data-shortname=":$" />DYLD_LIBRARY_PATH</p><p></p><p>export QTDIR PATH DYLD_LIBRARY_PATH</p><p></p><p>I saved the .profile file and did a reboot. But the env variables have</p><p>not been set?</p><p>What is going wrong?</p><p>In the terminal $QTDIR is empty and the env command gives the following output:</p><p></p><p>TERM_PROGRAM=Apple_Terminal</p><p>TERM=xterm-color</p><p>SHELL=/bin/bash</p><p>TERM_PROGRAM_VERSION=133</p><p>USER=xyz</p><p>__CF_USER_TEXT_ENCODING=0x1F5:0:0</p><p>PATH=/bin:/sbin:/usr/bin:/usr/sbin</p><p>PWD=/Users/xyz</p><p>SHLVL=1</p><p>HOME=/Users/xyz</p><p>LOGNAME=xyz</p><p>SECURITYSESSIONID=584bf0</p><p>_=/usr/bin/env</p><p></p><p>Why are the variables $QTDIR and $PATH not updated?</p><p>How do I set these variables?</p><p></p><p>Please help I am newbie to Mac!</p><p></p><p>Thanks in advance.</p></blockquote><p></p>
[QUOTE="Shambhavi, post: 201392"] 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:$PATH DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH 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: 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]
Verification
Name this item 🌈
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Not able to set environment variables using .profile file.
Top