Step 1 of new compilation download the latest package and SNV Manual

Source: Internet
Author: User

Download the latest Snv manual and find a problem. The manual is in XML format and needs to be converted to Html. Check the README and INSTALL files and finally understand how to convert them. The README explains how to convert them.

INSTALL describes the programs required for conversion. The most important thing is DocBook xml dtd. However, I do not know how to set the DocBook XML DTD in the optical drive, I had to reinstall it as stated in the INSTALL file. Currently, the latest DocBook DTD is version 4.5 and the CD is version 4.4. The most important thing is to run the following code as described in the Manual:

Write the following content into one and then give it the power to execute, run it, and then OK. Remember to run it with the root user permission.

If [! -E/etc/xml/docbook]; then xmlcatalog -- noout -- create/etc/xml/docbook fi & xmlcatalog -- noout -- add "public" \ "-// OASIS // DTD DocBook XML V4.5 // EN "\ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \/etc/xml/docbook & xmlcatalog -- noout -- add "public" \ "-// OASIS // DTD DocBook xml cals Table Model V4.5 // EN "\ "file: /// usr/share/xml/docbook/xml-dtd-4.5/calstblx. dtd "\/etc/xml/docbook & xmlcatalog -- noout -- add" public "\"-// OASIS // dtd xml Exchange Table Model 19990315/EN "\" file: /// usr/share/xml/docbook/xml-dtd-4.5/soextblx. dtd "\/etc/xml/docbook & xmlcatalog -- noout -- add" public "\"-// OASIS // ELEMENTS DocBook XML Information Pool V4.5 // EN "\" file: /// usr/share/xml/docbook/xml-dtd-4.5/dbpoolx. mod "\/etc/xml/docbook & xmlcatalog -- noout -- add" public "\"-// OASIS // ELEMENTS DocBook XML Document Hierarchy V4.5 // EN "\" file: /// usr/share/xml/docbook/xml-dtd-4.5/dbhierx. mod "\/etc/xml/docbook & xmlcatalog -- noout -- add" public "\"-// OASIS // ELEMENTS DocBook xml html Tables V4.5 // EN "\" file: /// usr/share/xml/docbook/xml-dtd-4.5/htmltblx. mod "\/etc/xml/docbook & xmlcatalog -- noout -- add" public "\"-// OASIS // ENTITIES DocBook XML Notations V4.5 // EN "\" file: /// usr/share/xml/docbook/xml-dtd-4.5/dbnotnx. mod "\/etc/xml/docbook & xmlcatalog -- noout -- add" public "\"-// OASIS // ENTITIES DocBook XML Character Entities V4.5 // EN "\" file: /// usr/share/xml/docbook/xml-dtd-4.5/dbcentx. mod "\/etc/xml/docbook & xmlcatalog -- noout -- add" public "\"-// OASIS // ENTITIES DocBook XML Additional General Entities V4.5 // EN "\" file: /// usr/share/xml/docbook/xml-dtd-4.5/dbgenent. mod "\/etc/xml/docbook & xmlcatalog -- noout -- add" rewriteSystem "\" http://www.oasis-open.org/docbook/xml/4.5 "\" file: /// usr/share/xml/docbook/xml-dtd-4.5 "\/etc/xml/docbook & xmlcatalog -- noout -- add" rewriteURI "\" http://www.oasis-open.org/docbook/xml/4.5 "\" file: /// usr/share/xml/docbook/xml-dtd-4.5 "\/etc/xml/docbook

Write the file as above and run it

If [! -E/etc/xml/catalog]; then xmlcatalog -- noout -- create/etc/xml/catalog fi & xmlcatalog -- noout -- add "delegatePublic" \ "-// OASIS // ENTITIES DocBook XML" \ "file: // etc/xml/docbook "\/etc/xml/catalog & xmlcatalog -- noout -- add" delegatePublic "\"-// OASIS // DTD DocBook XML "\" file: // etc/xml/docbook "\/etc/xml/catalog & xmlcatalog -- noout -- add" delegateSystem "\" http://www.oasis-open.org/docbook/ "\" file: // etc/xml/docbook "\/etc/xml/catalog & xmlcatalog -- noout -- add" delegateURI "\" http://www.oasis-open.org/docbook/ "\" file: /// etc/xml/docbook "\/etc/xml/catalog

In this way, two files are generated in the/etc/xml/directory, one is docbook and the other is catalog.

The installation of DocBook XSL Stylesheets and DocBook xml dtd is similar. Other programs are simple./configure and then make and install.

Finally, make BASEDIR =/directory under the SVN manual directory, and you can download all the CLFS packages according to the manual. OK, you can start compiling CLFS.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.