LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-01-2006, 09:11 PM   #1
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
could not locate docbookx.dtd for DocBook XML


my gnome build is erroring with this message:

could not locate docbookx.dtd for DocBook XML

I've reinstalled libxml2, and docbook-xsl-1.69.1.tar.bz2 (whatever that is). No luck. I can find things on the internet telling me just to install a package, but I not using package management for this system.

Anyone know where this magic docbookx.dtd is supplied from?
 
Old 02-02-2006, 01:52 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
google is your friend. Using the search function of the internet will solve 99% of your questions immediately
http://debian-xml-sgml.alioth.debian...-catalogs.html
 
Old 02-11-2006, 03:26 PM   #3
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
I know I'm being lazy, but I'm looking for a (tar xvfz file.tar.gz ; ./configure ; make ; make install ) type thing. That's a link to information about docbook, which I don't really care about right now. I just ran into this problem again, and once again I commented out the docbook line in the post-install.

Does anyone know an easy way to fix this without figuring out the details of XML, SGML, and docbook?
 
Old 02-11-2006, 04:55 PM   #4
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
now, after hacking my way through docbook and backtracking through configure scripts, I finally figured out that it's using the xmlcatalog (that garnome installed) somehow. I found the garnome/etc/xml/catalog file, which is suposed to be an XML catalog, I guess. I hacked around with symlinks, and figured out that if I link that file to docbkx/docbook.cat, or the 4.1.2 version of the docbook catalog, the configure script will locate it.

BUT WAIT!!!!

now I get this.

Code:
configure:4108: $XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl" >&2
No entry for SYSTEM http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
No entry for URI http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
configure:4111: $? = 4
configure:4116: result: not found
configure:4118: error: could not find DocBook XSL Stylesheets in XML catalog
This machine isn't directly on the internet. And that URL is HARDCODED into the configure script. This had better not be trying to access an external site just for some documentation tool.

Anyone have any ideas?
 
Old 02-11-2006, 05:03 PM   #5
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
I managed to force it to continue by adding this line to the catalog file ->

SYSTEM "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl" "chunk.xsl"

I fetched the file and put it in garnome/etc/xml. I can't find anything on the entire internet which gives me any instruction to do this.

Was I just supposed to magically know XML catalogs?
 
Old 02-14-2006, 02:12 AM   #6
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
how to update the xml catalog on debian ->

update-xmlcatalog --add --file docbookx.dtd --local /usr/glibc2/etc/xml/catalog --type public --verbose --id foobar

I guess xml tree manipulation is system-dependant. I didn't know that. And even that doesn't make the stock configure scripts of most libs find it. I still got a lot of hacking to do.

Last edited by dombrowsky; 02-14-2006 at 02:14 AM.
 
Old 02-14-2006, 02:39 AM   #7
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Original Poster
Rep: Reputation: 31
turns out you just have to dump the contents of the docbook archive files into a standard place to search for xml files. I copied the contents of docbkx412.zip and docbook-xsl-1.69.1.tar.bz2 into /usr/glibc2/opt/etc/xml (I had to use the garnome build dir), and then it worked. The garnome scripts (in libxml2) that needed it just used find(1) to get the files they needed anyway.
 
  


Reply



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
DocBook DTD merchtemeagle Slackware 1 09-29-2005 11:57 AM
dtd dicer-toaster daemon dutch1918 Linux - Networking 5 07-31-2005 12:52 PM
Docbook XSL Stylesheets /etc/xml/catalog Ironica Linux - Software 0 12-10-2004 03:03 AM
Need help installing docbook-xsl [docbook xsl stylesheet kmguy Linux - Software 0 09-10-2004 12:14 AM
docbook xml help bulliver Linux - General 0 02-01-2003 12:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 PM.

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
Open Source Consulting | Domain Registration