Hi all,
I have recently installed Kile 1.9.3 (make/make install) and TexLive 2007 on Mepis 6.0-1. I am having some difficulty accessing the Tex binaries from within Kile. I can explicitly add the path for each application (e.g bibtex, latex etc.) in the build options but this does not seem that elegant. Does anybody know how I can set the default path to 'tex' apps (similar to the setup options in MikTex) I have been scouring configuration files, the source code of Kile (albeit briefly) and the web but can not find any reference to this issue. My paths are correct for TexLive (added to /etc/profile - and confirmed by running latex --version in the Kile konsole tab), although I cannot compile documents. I am new to Linux (well I used it in the mid 90's during University) and still getting to grips with the plethora of configuration files available. I am reading on 'make' at the moment to see if the default path is included here.
Any help anyone could provide would be appreciated,
Cheers
Kile ⇒ Default paths in Kile
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 15
- Joined: Fri Feb 23, 2007 9:29 am
Default paths in Kile
The short answer is probably: just use your PATH variable.
Here's a longer digression (but i'm no expert):
Kile should be able to read your environment variables and thus locate pdftex,latex, bibtex et cetera from your $PATH variable. For other things like .bib and .sty files you may have to define the BIBINPUTS and BSTINPUTS from the Kile menu as follows:
In Kile click on the Settings Menu then go to Configure Kile > Latex > General in the lefthand tree menu, then see the right hand panel should have some input fields named "Environment Variables", add the appropriate paths on your system for TEXINPUTS, BIBINPUTS and BSTINPUTS.
Again, you'll probbaly only need those custom settings if your environment variables are absent. Certainly, the binaries for running tex, latex, and metafont should all be accessable via your account PATH variable. If latex, bibtex, pdftex, etc., are not in /usr/bin then find out where they are and add those paths to your PATH.
Then it also helps to have the following in your env,
TEXMFLOCAL=$HOME/texmf ( or TEXMFLOCAL=/usr/share/texmf---according to your taste)
HOMETEXMF=$HOME/texmf
TEXMFMAIN=/usr/share/texmf
or
TEXMFLOCAL=/usr/local/share/texmf
To see what you already have for your TeX/LaTeX environment stuff run,
If nothing is set then add appropriate lines in your $HOME/.bashrc file, such as,
You can use any other folder for $HOMETEXMF, e.g., HOMETEXMF=$HOME/localtexmf or HOMETEXMF=$HOME/tex/tetex/localtexstuff or whatever you like, just as long as you put all new TeX/LaTeX related style and auxiliary files somewhere in that directory. This is just that same with MiKTeX or any other TeX distribution.
So you should put all your extra class and style files and bib files anywhere in $HOMETEXMF and then as root run,
to update the file name database (do so whenever you download new style files or bst definitions to your $HOMETEXMF tree. For MiKTeX users one would run `initexmf --update-fndb`.
Let us know if you still can't run latex or bibtex. You might need to reinstall tetex and kile if things are really messed up, but I suspect a little tampering with your Kile configuration and your account environment variables should solve the problem.
One trap is that you will not want to use Kile to redefine any system environment variables! That could cause problems, it's always better to be able to check first that you can run latex from a shell console command line, then Kile should be seen as just a wrapper and editor and it should therefore run latex and bibtex with exactly the same settings that you have on a shell command line.
Cheers.
Here's a longer digression (but i'm no expert):
Kile should be able to read your environment variables and thus locate pdftex,latex, bibtex et cetera from your $PATH variable. For other things like .bib and .sty files you may have to define the BIBINPUTS and BSTINPUTS from the Kile menu as follows:
In Kile click on the Settings Menu then go to Configure Kile > Latex > General in the lefthand tree menu, then see the right hand panel should have some input fields named "Environment Variables", add the appropriate paths on your system for TEXINPUTS, BIBINPUTS and BSTINPUTS.
Again, you'll probbaly only need those custom settings if your environment variables are absent. Certainly, the binaries for running tex, latex, and metafont should all be accessable via your account PATH variable. If latex, bibtex, pdftex, etc., are not in /usr/bin then find out where they are and add those paths to your PATH.
Then it also helps to have the following in your env,
TEXMFLOCAL=$HOME/texmf ( or TEXMFLOCAL=/usr/share/texmf---according to your taste)
HOMETEXMF=$HOME/texmf
TEXMFMAIN=/usr/share/texmf
or
TEXMFLOCAL=/usr/local/share/texmf
To see what you already have for your TeX/LaTeX environment stuff run,
Code: Select all
env | grep TEX
Code: Select all
export TEXMFMAIN=/usr/share/texmf
So you should put all your extra class and style files and bib files anywhere in $HOMETEXMF and then as root run,
Code: Select all
texhash
Let us know if you still can't run latex or bibtex. You might need to reinstall tetex and kile if things are really messed up, but I suspect a little tampering with your Kile configuration and your account environment variables should solve the problem.
One trap is that you will not want to use Kile to redefine any system environment variables! That could cause problems, it's always better to be able to check first that you can run latex from a shell console command line, then Kile should be seen as just a wrapper and editor and it should therefore run latex and bibtex with exactly the same settings that you have on a shell command line.
Cheers.
Support Free Software---It's Made for Everyone