Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-16-2006, 12:47 PM   #1
Registered: Feb 2006
Distribution: kubuntu dapper
Posts: 61

Rep: Reputation: 15
trying to preform setenv, no command ?


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

Old 02-16-2006, 12:57 PM   #2
LQ Newbie
Registered: Oct 2005
Distribution: Fedora Core 3
Posts: 20

Rep: Reputation: 0
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
Old 02-16-2006, 01:00 PM   #3
Registered: Feb 2006
Distribution: kubuntu dapper
Posts: 61

Original Poster
Rep: Reputation: 15
thx raseel

the shell im using is /bin/bash. i tried using export but i didnt work. do you know what i should use?


Old 02-16-2006, 01:08 PM   #4
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
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:


export QTDIR

Then close and re-open the shell/Konsole, and the variable should be set. You can check this with:

printenv | grep QTDIR



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setenv CLASSPATH ? mickeyboa Fedora 1 07-24-2005 04:26 PM
help with command setenv J0sep Red Hat 3 06-22-2004 06:52 PM
Setenv IBP Linux - Software 3 12-20-2002 09:05 AM
setenv DISPLAY toxic53 Linux - Newbie 2 09-27-2001 01:47 AM
setenv ???? toxic53 Linux - Networking 1 09-26-2001 11:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration