+John Teacake MVC Posted April 4, 2004 MVC Share Posted April 4, 2004 Im trying to install a program and it says i need to set an enviroment variable using setenv. But i get this error : bash : setenv : command not found im using Redhat 9. Please can someone help :( Link to comment Share on other sites More sharing options...
MrStaticVoid Posted April 4, 2004 Share Posted April 4, 2004 Use the "export" command instead. Link to comment Share on other sites More sharing options...
+John Teacake MVC Posted April 4, 2004 Author MVC Share Posted April 4, 2004 I was using this : setenv BKIT /root/.gnome #-desktop/BTOOL/BKIT How would i use the export command with that, I just replaced setenv with export and i get a valid identifyer error. Link to comment Share on other sites More sharing options...
the evn show Posted April 4, 2004 Share Posted April 4, 2004 Last login: Sun Apr 4 12:50:50 on ttyp1 Think different. (evn@evnbook:evn)$ export MYNAME="someguy" (evn@evnbook:evn)$ echo $MYNAME someguy The syntax changes slightly. Link to comment Share on other sites More sharing options...
+John Teacake MVC Posted April 4, 2004 Author MVC Share Posted April 4, 2004 Sorted it thanks. Link to comment Share on other sites More sharing options...
+John Teacake MVC Posted April 5, 2004 Author MVC Share Posted April 5, 2004 How do i add that so it sets it every time i log in/start up the computer ? Link to comment Share on other sites More sharing options...
kongit Posted April 5, 2004 Share Posted April 5, 2004 set it in your ~/.bashrc file Link to comment Share on other sites More sharing options...
+John Teacake MVC Posted April 5, 2004 Author MVC Share Posted April 5, 2004 So just add that comment in that file. Where is that file located ? Link to comment Share on other sites More sharing options...
semifamous Posted April 5, 2004 Share Posted April 5, 2004 ~/.bashrc is where it is. ~ means your home directory. .bashrc is the name of the file. Link to comment Share on other sites More sharing options...
HellBender Posted April 6, 2004 Share Posted April 6, 2004 The setenv command is for SPARC machines.. You press STOP + a to get to the openboot "ok " prompt, and you use setenv there.. AFAIK, its not available on linux boxes. Link to comment Share on other sites More sharing options...
MrStaticVoid Posted April 6, 2004 Share Posted April 6, 2004 setenv is used on the csh and its derivatives. export is used in bash. You can use either shell in Linux and Unix. Hmm...just noticed 500 posts! :) Link to comment Share on other sites More sharing options...
Recommended Posts