General ⇒ What's wrong with my texhash usage ?
What's wrong with my texhash usage ?
Hello,
It's probably a stupid question, there must be something preventing me from seeing what's wrong ...
I tried to install biblatex, but latex doesn't seem to find it.
Here's what I did :
- I downloaded biblatex.zip from CTAN and put it in /usr/share/texmf
- unzip biblatex.zip
- I ran texhash (as root)
But running pdflatex on my tex file tells me :
! LaTeX Error: File `biblatex.sty' not found.
However, biblatex is present on the system :
# find . -name biblatex.sty
./biblatex/latex/biblatex.sty
# grep biblatex.sty ls-R
biblatex.sty
However,
# kpsewhich biblatex.sty
doesn't return anything.
What am I doing wrong ?
Thanks in advance,
Jos
# pdflatex --version
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
# uname -a
Linux localhost.localdomain 2.6.32-358.18.1.el6.centos.plus.x86_64 #1 SMP Wed Aug 28 16:14:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
It's probably a stupid question, there must be something preventing me from seeing what's wrong ...
I tried to install biblatex, but latex doesn't seem to find it.
Here's what I did :
- I downloaded biblatex.zip from CTAN and put it in /usr/share/texmf
- unzip biblatex.zip
- I ran texhash (as root)
But running pdflatex on my tex file tells me :
! LaTeX Error: File `biblatex.sty' not found.
However, biblatex is present on the system :
# find . -name biblatex.sty
./biblatex/latex/biblatex.sty
# grep biblatex.sty ls-R
biblatex.sty
However,
# kpsewhich biblatex.sty
doesn't return anything.
What am I doing wrong ?
Thanks in advance,
Jos
# pdflatex --version
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
# uname -a
Linux localhost.localdomain 2.6.32-358.18.1.el6.centos.plus.x86_64 #1 SMP Wed Aug 28 16:14:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: What's wrong with my texhash usage ?
Hmmm, it seems that installing biblatex deeper in the texmf tree (e.g. /usr/share/texmf/tex/latex/) instead of directly at /usr/share/texmf/ solves the problem.
kpsewhich doesn't seem to be looking in new directories created directly at /usr/share/texmf/.
Is this normal behaviour ? Can one change this ?
Cheers,
Jos
kpsewhich doesn't seem to be looking in new directories created directly at /usr/share/texmf/.
Is this normal behaviour ? Can one change this ?
Cheers,
Jos
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: What's wrong with my texhash usage ?
I'd suggest to use an up-to-date TeX system and install packages by the package manager.
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
What's wrong with my texhash usage ?
Well ... when you say "package manager", you mean the system's package manager ? Or does texlive have one ?
I know, CentOS is not known for shipping the latest packages...
Could you indicate how to get an up-to-date tex installation on rhel-like systems ? I'm, of course, not going to change my linux distribution just for the sake of tex.
Thanks,
Jos
Code: Select all
[root@localhost latex]# yum install texlive
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.fr.planethoster.net
* centosplus: centos.mirror.fr.planethoster.net
* contrib: centos.mirror.fr.planethoster.net
* elrepo: mirrors.ircam.fr
* epel: mirror.ibcp.fr
* extras: mirrors.ircam.fr
* rpmfusion-free-updates: ftp-stud.hs-esslingen.de
* rpmfusion-nonfree-updates: ftp-stud.hs-esslingen.de
* updates: mirror.ate.info
Setting up Install Process
Package texlive-2007-57.el6_2.x86_64 already installed and latest version
Nothing to do
Could you indicate how to get an up-to-date tex installation on rhel-like systems ? I'm, of course, not going to change my linux distribution just for the sake of tex.
Thanks,
Jos
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
What's wrong with my texhash usage ?
A vanilla TeX Live has TLmgr (Tex Live Manager) for maintenance of the TeX system and its packages. TeX systems delivered by Linux distributions mostly lack this tool.jossojjos wrote:Well ... when you say "package manager", you mean the system's package manager ? Or does texlive have one ?[…]
Regardless of that you should be able to set up a local TeX tree in your home directory (
~/texmf
). It has to follow the TeX Directory Structure standard (TDS). After additions this has to be updated with texhash
as normal user.How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: What's wrong with my texhash usage ?
OK, I'm installing texlive from scratch ... I just hope it doesn't waste my day 

What's wrong with my texhash usage ?
Installation finished ... and everything seems OK
I just needed to remove all the remains of the packaged, previously installed texlive, just deleting the old texmf tree was not enough :
Removing texlive through yum threathened to remove lyx and R as well, which I definitively did not want. And LyX seems to work fine with the new texlive installation !
Three other packages that depended on texlive : dvipdfmx, xdvipdfmx and tetex-tex4ht, should they be removed as well, or would they function just fine with the fresh installation of texlive ?
Well, I guess this post should be renamed or deleted ... whatever you want.
Thanks,
Jos

I just needed to remove all the remains of the packaged, previously installed texlive, just deleting the old texmf tree was not enough :
Code: Select all
rpm -e --nodeps texlive texlive-utils texlive-latex texlive-xetex texlive-dvips texlive-context texinfo-tex tex-preview
Three other packages that depended on texlive : dvipdfmx, xdvipdfmx and tetex-tex4ht, should they be removed as well, or would they function just fine with the fresh installation of texlive ?
Well, I guess this post should be renamed or deleted ... whatever you want.
Thanks,
Jos