Generalproblem with using tikz in TeX Live under linux

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
fenghedo
Posts: 19
Joined: Sat Oct 04, 2008 3:01 pm

problem with using tikz in TeX Live under linux

Post by fenghedo »

Hi,

I have been using TeXnicCenter in windows with MikTeX. But it has turned real slow as I am doing a lot of pictures for compiling. So I want to try compile my files using our much faster linux server with KDE. We have TeX Live installed on the server (probably a long time ago). When I tried to compile my tex file by "pdflatex mytex.tex", it complains that it could not find the file "pgfplots.sty", which I used. It could also not find some other packages that I tried to use.

Since I don't have administration privileges on the server, I installed TeX Live 2008 in my local directory again. Then I installed the packages beamer, pgf and xcolor by putting them into the directory texlive/texmf-local/tex/latex/. Then I used "texhash [directory]" to rehash the directories for the packages I installed.

However, when I try to compile my tex file using the command "pdflatex mytex.tex", I can see that it was still using the old TeX Live installed a long time ago. Then it complained about the same thing (could not find the packages).

Could somebody tell me how I could solve this problem?

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: problem with using tikz in TeX Live under linux

Post by frabjous »

Did you try editing your $PATH environmental variable to go first to where you installed TeXlive 2008 first, and other places only afterwards?
fenghedo
Posts: 19
Joined: Sat Oct 04, 2008 3:01 pm

problem with using tikz in TeX Live under linux

Post by fenghedo »

Thanks for your reply. I did do the following (I saw this in the texlive installation document):
PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2008/texmf/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2008/texmf/doc/info:$INFOPATH; export INFOPATH
Instead of the /usr/local/... paths, I pointed to the local directory that I installed texlive 2008. However, I went in the directories and did not see any subdirectory under /texlive/2008/ that is called "bin" or "texmf". I only saw the following directories:
temp, texmf-config, texmf-var, tlpkg.

Did I fail the installation?
frabjous wrote:Did you try editing your $PATH environmental variable to go first to where you installed TeXlive 2008 first, and other places only afterwards?
fenghedo
Posts: 19
Joined: Sat Oct 04, 2008 3:01 pm

problem with using tikz in TeX Live under linux

Post by fenghedo »

Alright. I finally figured out what was wrong. My first try of installation did fail (I remember the command line saying something about configuration was not completed). I tried to install it again in my home directory and was successful. Then I tried to compile my tex file and it is proceeding normally.

But now I got a failed installation with all the files on my first try. Could somebody tell me how I can remove this installation. Do I just remove the whole directory?
fenghedo wrote:Thanks for your reply. I did do the following (I saw this in the texlive installation document):
PATH=/usr/local/texlive/2008/bin/i386-linux:$PATH; export PATH
MANPATH=/usr/local/texlive/2008/texmf/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2008/texmf/doc/info:$INFOPATH; export INFOPATH
Instead of the /usr/local/... paths, I pointed to the local directory that I installed texlive 2008. However, I went in the directories and did not see any subdirectory under /texlive/2008/ that is called "bin" or "texmf". I only saw the following directories:
temp, texmf-config, texmf-var, tlpkg.

Did I fail the installation?
frabjous wrote:Did you try editing your $PATH environmental variable to go first to where you installed TeXlive 2008 first, and other places only afterwards?
Post Reply