GeneralWhat's wrong with my texhash usage ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jossojjos
Posts: 27
Joined: Tue Feb 07, 2012 4:52 pm

What's wrong with my texhash usage ?

Post by jossojjos »

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

Recommended reading 2024:

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

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

jossojjos
Posts: 27
Joined: Tue Feb 07, 2012 4:52 pm

Re: What's wrong with my texhash usage ?

Post by jossojjos »

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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: What's wrong with my texhash usage ?

Post by localghost »

I'd suggest to use an up-to-date TeX system and install packages by the package manager.


Thorsten
jossojjos
Posts: 27
Joined: Tue Feb 07, 2012 4:52 pm

What's wrong with my texhash usage ?

Post by jossojjos »

Well ... when you say "package manager", you mean the system's package manager ? Or does texlive have one ?

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
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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

What's wrong with my texhash usage ?

Post by localghost »

jossojjos wrote:Well ... when you say "package manager", you mean the system's package manager ? Or does texlive have one ?[…]
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.

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.
jossojjos
Posts: 27
Joined: Tue Feb 07, 2012 4:52 pm

Re: What's wrong with my texhash usage ?

Post by jossojjos »

OK, I'm installing texlive from scratch ... I just hope it doesn't waste my day :)
jossojjos
Posts: 27
Joined: Tue Feb 07, 2012 4:52 pm

What's wrong with my texhash usage ?

Post by jossojjos »

Installation finished ... and everything seems OK 8-)

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
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
Post Reply