LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2018, 01:08 PM   #1
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 431

Rep: Reputation: 193Reputation: 193
texlive: texdoc not working


Slackware64-current, texlive 2018 upgraded. texlive-extra and texlive-docs upgraded from SBo. Older texlive-fonts removed before upgrade because fonts are now included in texlive-extra.

Using lua-5.1.5 from SBo.

Problem:
texdoc fails. Invoking texdoc to look for some documentation fails with the following:

Code:
eduardo:~]$ texdoc memoir
[string "/usr/share/texmf-dist/scripts/texdoc/search.t..."]:569: assertion failed!
This points out to line 569 of script search.tlu, which in its relevant part states:

Code:
-- get pre-hashed tlpdb info from a pseudo-cache file
function get_tlpinfo_from_dist()
(569)    local f = assert(kpse.find_file(C.data_tlpdb_name, 'texmfscripts'))
    s_meta, tlp_from_runfile, tlp_doclist = dofile(f)
end
Line 569 is marked by a parenthesis.

two things:

1. I ran mktexlsr both as a regular user and as root, to no avail.
2. Looks like texlive requires lua now, maybe an appropriate version should be included in Slackware, perhaps as an extra package.

Thanks in advance for any tips in resolving this annoyance.
 
Old 07-17-2018, 03:49 AM   #2
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 259

Rep: Reputation: 143Reputation: 143
I have no fix yet, sorry, something has changed with texdoc 3.0/texlive 2018.
I hope i find time the next days for further digging, i just wanted you to know that i saw your report.

Johannes
 
1 members found this post helpful.
Old 07-20-2018, 11:08 AM   #3
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 431

Original Poster
Rep: Reputation: 193Reputation: 193
Thanks Johannes.

I reported the bug upstream:

https://github.com/TeX-Live/texdoc/i...ment-406644351

This is what one of the developers wrote:

Quote:
Now, it is surely because of lacking `texlive.tlpdb`. Perhaps, the TeX Live from Slackware also removed the database. The destributor, if they want to activate Texdoc, have to include `texlive.tlpdb` or they should generate a pre-hashed cache file before releasing as we decided in #2.
Thus, texdoc does not work most probably because it needs the 'texlive.tlpdb' file. Could you please try this?

Thanks,

Eduardo
 
1 members found this post helpful.
Old 07-21-2018, 06:25 PM   #4
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 259

Rep: Reputation: 143Reputation: 143
Quote:
Originally Posted by sombragris View Post
Thus, texdoc does not work most probably because it needs the 'texlive.tlpdb' file. Could you please try this?
Here is the fix, which i will apply in a similar way to the
texlive package:
Code:
su -
mkdir /tlpkg
wget -O /tlpkg/texlive.tlpdb http://tug.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
texdoc -DlM texlive-en |& grep cache-tlpdb.lua
mv /root/.texlive2018/texmf-var/texdoc/cache-tlpdb.lua \
  /usr/share/texmf-dist/scripts/texdoc/Data.tlpdb.lua
mktexlsr
rm -rf /tlpkg

Last edited by franzen; 07-22-2018 at 05:55 AM. Reason: better texdoc fix
 
Old 07-22-2018, 01:15 PM   #5
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 431

Original Poster
Rep: Reputation: 193Reputation: 193
Quote:
Originally Posted by franzen View Post
Here is the fix, which i will apply in a similar way to the
texlive package:
Code:
su -
mkdir /tlpkg
wget -O /tlpkg/texlive.tlpdb http://tug.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
texdoc -DlM texlive-en |& grep cache-tlpdb.lua
mv /root/.texlive2018/texmf-var/texdoc/cache-tlpdb.lua \
  /usr/share/texmf-dist/scripts/texdoc/Data.tlpdb.lua
mktexlsr
rm -rf /tlpkg
It works!! Thank you!!
Marking the thread as solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TexLive on Fedora 18 sryzdn Linux - Newbie 3 04-11-2013 06:29 AM
ffmpeg needs texlive? BobNutfield Slackware 14 05-03-2012 10:32 AM
update texlive (tlmgr): no texlive.tlpdb tramni1980 Slackware 3 03-30-2011 07:30 AM
[SOLVED] texlive interndan Slackware 5 12-09-2010 01:26 PM
TexLive ahallam Red Hat 1 11-08-2006 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration