want to set PATH for qt and having trouble
Hi i am a newbie !!
I have bash I installed Qt libs and want to set environmental variable PATH, I tried some stuff from qt tutorials.. here is what i tried: Code:
In .profile added the following lines: so i tried Code:
PATH=$PATH:/usr/local/qt-everywhere-opensource-src-4.6.3/bin Code:
echo $PATH 1) the make gives error that header not found( probably make don't have the path) 2) when i closed the terminal and opened it again the PATH I newly entered was not there !! thanks in advance !!! |
1 Attachment(s)
I would suggest that you try placing
Code:
PATH="/path of bin:$PATH" Make sure that your .profile includes something to this affect: Code:
# if running bash Code:
if [ "`id -u`" -eq 0 ]; then As for the make procedure, I haven't built Qt from source, so there you will have to check further into their documentation, but if there is a configure step, e.g. Code:
$ configure --bin-directory=DIR --your-chosen switches Code:
./configure --help If I understand what you're trying to do with Qt, (You may be duplicating effort, but it's fun to experiment. :)) you might also find the attached text file useful. It's info I compiled from various sources some time back. While it doesn't apply exactly to your situation, I suspect that the issue I had to overcome may be the same as what you're trying to do now. One thing I would add is, don't overwrite existing PATHs. Before making changes, check the output of Code:
echo $VARIABLE_YOU_ARE_LOOKING_FOR Code:
$ export "$PATH:$NEW_PATH" |
You might also want to post the contents of PKG_CONFIG_PATH:
Code:
echo $PKG_CONFIG_PATH |
firstly thanks all !!
Unfortunately what ofaring said is not working , nothing is happening and path is still the same !! is there any alternative way to install Qt automatically (like using synaptic) is there any .deb package of Qt available which will perform the tasks such as setting the environmental variables etc. |
All times are GMT -5. The time now is 03:18 AM. |