LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 15
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
 
Old 02-16-2006, 01:57 PM   #2
raseel
LQ Newbie
 
Registered: Oct 2005
Distribution: Fedora Core 3
Posts: 20

Rep: Reputation: 0
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
 
Old 02-16-2006, 02:00 PM   #3
zeltak
Member
 
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?

thx

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

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


Reply


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 05:26 PM
help with command setenv J0sep Red Hat 3 06-22-2004 07:52 PM
Setenv IBP Linux - Software 3 12-20-2002 10:05 AM
setenv DISPLAY toxic53 Linux - Newbie 2 09-27-2001 02:47 AM
setenv ???? toxic53 Linux - Networking 1 09-26-2001 12:30 PM


All times are GMT -5. The time now is 05:43 AM.

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