trying to preform setenv, no command ?
hi
im trying to install the new mythTV with hyams amazing guide. in the middle it says to input: setenv QTDIR /usr/lib/qt3 but i get an error message saying there is no such command... can anyone tell me what im doing wrong? thx alot Zeltak |
Hi,
setenv is used to set an environment variable typically in the csh or tcsh shells. Which shell are you using ? Find out with : echo $SHELL Assuming you are using the bash or sh shell, instead of setenv command, : export QTDIR=/usr/lib/qt3 This varies with different shells. So depending upon which shell you have, you might have to Google a it and see how to set the environment variable in your shell |
thx raseel
the shell im using is /bin/bash. i tried using export but i didnt work. do you know what i should use? thx zeltak |
This doesn't appear to work on the command line, but does when entered in a configuration file.
Open the (invisible) bash config file .bashrc in a text editor, and add the following lines to it: QTDIR='/usr/lib/qt3' export QTDIR Then close and re-open the shell/Konsole, and the variable should be set. You can check this with: printenv | grep QTDIR Rob |
All times are GMT -5. The time now is 06:32 PM. |