GeneralInstalling PGF-TIKZ

LaTeX specific issues not fitting into one of the other forums of this category.
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Installing PGF-TIKZ

Post by jhapk »

Hi,

I am trying to install TIKZ package on my local account. I am on Fedora 10. I downloaded the PGF-2.0.0 from the sourceforge.net website and put the folders in the texmf folder in my home directory. Now, when I include \usepackage{tikz} in any document, I get the following error message:

Code: Select all

! Undefined control sequence.
l.15 \usepgflibrary
                   {plothandlers}
I did a search and found that this maybe due to incompatibility of newer version of pgf with older. When I do a

Code: Select all

$kpsewhich pgf.sty 
It returns me:

Code: Select all

/nfs/kris/usr2/local_net1/latex/pgf/pgf.sty
and for

Code: Select all

$kpsewhich pgflibraryplothandlers.sty 
I get

Code: Select all

/nfs/carv/d1/people/pradeep/texmf/tex/latex/pgf/compatibility/pgflibraryplothandlers.sty
Why is not reading from the new version in my home directory? Is there something else I should know? I don't have root permissions, so how can I get rid of the older pgf.sty? I checked my texmf and the new pgf.sty file does exist at

Code: Select all

~/texmf/tex/latex/pgf/basiclayer/pgf.sty
Thanks

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Installing PGF-TIKZ

Post by Stefan Kottwitz »

Hi jhapk,

check the TeX environment variables, like

Code: Select all

kpsewhich -var-value=TEXMFHOME
at the command prompt. The value should point to ~/texmf.

Stefan
LaTeX.org admin
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Re: Installing PGF-TIKZ

Post by jhapk »

Hi Stefan,

I did that and it does point to the texmf folder in my home directory.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Installing PGF-TIKZ

Post by Stefan Kottwitz »

Perhaps check

Code: Select all

kpsewhich -all pgf.sty
if the location below the home directory could be found even if it's not the first.
Check texmf.cnf for the search paths and their order. Use kpsewhich to locate texmf.cnf, use -all because there may be more than one texmf.cnf.

Stefan
LaTeX.org admin
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Installing PGF-TIKZ

Post by jhapk »

Hi Stefan,

here are the outputs for the two commands:

Code: Select all

[pradeep@scaramanga ~]$kpsewhich -all pgf.sty
/nfs/kris/usr2/local_net1/latex/pgf/pgf.sty
[pradeep@scaramanga ~]$kpsewhich -all texmf.cnf
/usr/share/texmf/web2c/texmf.cnf
None of them are pointing to the texmf folder in my home directory. I am not sure what the *.cnf file does, so not really sure what it is.

Thanks
User avatar
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Re: Installing PGF-TIKZ

Post by shadgrind »

Did you ever run texhash after installing the new TikZ?
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Re: Installing PGF-TIKZ

Post by jhapk »

yes, I did. There are a couple of other packages which are missing in the /usr directory and I installed them in my local texmf and they are working fine. It is only the tikz package that is giving me this problem.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Installing PGF-TIKZ

Post by Stefan Kottwitz »

jhapk wrote:I am not sure what the *.cnf file does, so not really sure what it is.
Open the file and read it, it's a text file, it contains the configuration together with an explanation.

Stefan
LaTeX.org admin
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Re: Installing PGF-TIKZ

Post by jhapk »

Hi Stefan,

I looked at the texmf.cnf file in the /usr/share/texmf/web2c folder. It looks fine to me. I don't have the permissions to edit it though. Any more clues how can I make pdflatex look at the pgf.sty file in my home directory?

Thanks
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Installing PGF-TIKZ

Post by Stefan Kottwitz »

Perhaps post the texmf.cnf file here as attachment to examine it. I guess there are no secrets inside. ;)

Stefan
LaTeX.org admin
Post Reply