Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-10-2004, 01:34 PM   #1
Registered: Feb 2004
Location: Homeless
Distribution: PCLinuxOS
Posts: 170

Rep: Reputation: 30
Info needed on export command

I have tried man for export and came up with nothing. Googling for info on this command finds things that are over my head or in a different context from what I am using it for. Perhaps someone could provide me some insight for using it in my situation.

I use a debian-style installed Kanotix and am looking to install some KDE apps that do not have deb packages available. For instance, kexi. I have run into the problem when installing other apps that debian puts files in places the config doesn't know to look. In these cases I have edited the config files per the readmes or install instructions. In the case of kexi, they are advising to use the export command for several debian specific path problems and I am not at all familiar with export. Such as:

Some distros (like Debian) split KDE into several directories.

In Debian configure doesn't recognize the kde HTML directory. For correct
installation of the handbook in Debian do:

export kde_htmldir=/usr/share/doc/kde/HTML

This was tested with debian woody and KDE 3.1.2 but it's probably needed
for other distros too.

Now comes the pure noobish question(s): just where/when do I enter this command in the install procedure? Before beginning with ./ configure? From what I have googled up on export it changes a default path in the bash shell. Is this change "permanent"? for want of a better word. Anyway, could someone give me an easier to understand explanation of what export does at least in this circumstance? I also run up against Debian putting KDE in /usr and the instructions are recommending to use export for this as well, KDEDIR=/usr
Old 07-10-2004, 03:27 PM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 69
Well, export sets the environment variable. To see all the environment variables for that session, open up a terminal and type 'env' without the single quotes. I believe that the variable is set until the next time your bashrc, bash_profile or /etc/profile are sourced, which happens when you open up a new terminal or switch consoles. So if you are ready to compile something that needs a specific environment variable, you can set it prior to doing the configure step:
export whatever=wherever

Should be appropriate. I don't know if that helps, but that's about as good as I understand it without going into programming terms that I don't understand

Old 07-10-2004, 03:45 PM   #3
Registered: Feb 2004
Location: Homeless
Distribution: PCLinuxOS
Posts: 170

Original Poster
Rep: Reputation: 30
Thank you that is exactly what I wanted to know about it. Knowing this, I assume I can just start off with these export commands before doing the configure, make and install. My concern was that the "environment" I was setting up would be permanent (although even if it was, it is only telling the "truth" where those files are located, right? )


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
Export Video to view in Windoze help needed SteveSch Linux - Software 4 07-12-2005 07:15 PM
export command rohr Mandriva 1 04-11-2005 06:24 AM
set/export command? blackzone Linux - Newbie 1 03-05-2005 08:11 PM
BASH export command galalleni Slackware 4 09-08-2003 01:44 AM
Export Command choawk Linux - General 1 06-06-2003 02:26 AM > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration