![]() |
![]() |
|
Documentation
Resources
Support
|
Installing 4Suite™ on UNIX
Legal NoticeThis document can be freely translated and distributed. It's released under the LDP License. Abstract4Suite™ is a platform for XML and RDF application development. This document gives step-by step instructions for installing 4Suite on a UNIX-like system such as Linux, FreeBSD, or Mac OS X. Table Of Contents1 Introduction and Conventions
4.1 Python
4.2 4Suite
4.3 Final Step
5.2 Additional Links
1 Introduction and ConventionsThese instructions were originally written for Red Hat 7.1 Linux, but should work for most Linux distributions and other UNIX variants with few, if any, modifications. Ordinarily, the installation will occur in directories under /usr/local and /var/local. Ideally, you should perform these steps as a user who has write access in these directories. Some instructions require the user to modify their shell environment. If multiple users will be running and accessing the repository servers, you'll want to be careful to ensure the environment is set up correctly for each user. In command-line examples, "$" is used to represent the shell's command prompt. The actual prompt will vary from system to system. The part you are supposed to type is to the right of the "$". Sometimes there will be a great deal of output from an instruction. If there is nothing of particular interest in the output, it will be omitted and replaced with the text "SNIP". There are useful third-party resources mentioned in this document. Those that are necessary to follow instructions are directly linked from the text. Others are marked as endnotes and the links are available in the Resources section. 2 Quick Installation StepsThe Detailed Installation Guide sections that follow this section will further explain these steps.
3 CVS: bleeding-edge 4SuiteIf you need up-to-the-minute features or fixes for 4Suite, then you can install the latest version from the developers' CVS repository. It should be considered an unstable work-in-progress preview of the next official release; it is not recommended for ordinary users.
4 Detailed Installation Guide4.1 Python4Suite is written mostly in Python: a mature, robust, efficient programming language well-suited to object-oriented programming, functional programming, and procedural tasks of any complexity. In the few cases where Python is not sufficiently speedy, certain 4Suite components are implemented in C. Therefore, you need both an appropriate version of Python and an ANSI C compiler installed if you want to be able to use 4Suite. C compilers are standard on most UNIX systems, but Python is not always available. Specifically, Python 2.2.1 or higher is required for 4Suite. For best results, use Python 2.3 or 2.4. Your system might not have Python at all, or it might only have an older version, or it may have more than one version installed — some Linux distributions install Python 2.x as "python2", for example. You can have other versions of Python installed alongside the one you need for 4Suite, as long as when you use 4Suite's Python API, you be sure to load the modules with the interpreter that they were built for, and as long as the directory containing the correct python executable comes first in your executable path. Test that you have a good version of python in your path by issuing this command in your command shell: python -V (that's a capital V). The installation of Python is not covered in this guide. 4.2 4SuiteDownload the latest tarball from ftp://ftp.4suite.org/pub/4Suite/. Untar the source, then build and install via the usual procedure for installing a python application: invoke setup.py install in the top-level source directory. 4Suite will be installed in your python site-packages directory, the actual location of which will vary from system to system, but is usually in either /usr/lib/python2.x/site-packages or /usr/local/lib/python2.x/site-packages. It is possible to customize the installation locations by running setup.py config with certain arguments prior to running setup.py install; see the 4Suite Installation Locations documentation for details. An example of an installation session follows. $ cd /usr/local/src $ tar xzvf 4Suite-XML-1.0b3.tar.gz; cd 4Suite-1.0b3 SNIP $ python setup.py install SNIP 4.3 Final StepNow you can perform a quick test to make sure everything is installed correctly. First, open up a command prompt. From any directory outside of the 4Suite source or installation directories, run the following (you enter 'python and then the text to the right of the '>>> prompts): $ python Python 2.2.1 (#1, Jul 1 2002, 19:51:59) [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from Ft.Xml import Domlette >>> from Ft.Xml.Xslt import Processor >>> print Processor <module 'Ft.Xml.Xslt.Processor' from '/usr/local/lib/python2.2/site-packages/Ft/Xml/Xslt/Processor.pyc'> >>> The imports and the print should complete without error. Report any problems to the 4Suite mailing list. 4.4 Tests and Further SetupIf all you wish to use in 4Suite are the basic command-line tools and Python libraries, then you are done with installation and can proceed to use them. To make sure things are working, try running a few of the command-line tools with the -h option to get usage information. $ 4xml -h SNIP $ 4xslt -h SNIP $ 4xpath -h SNIP $ 4rdf -h SNIP If you want to use the XML/RDF repository and server features of 4Suite, then you will need to customize and install a configuration file, initialize a repository, and do some further tests. These topics are covered in the Quick Start documentation. 5 Resources5.2 Additional Links4suite.org - Documentation, Downloads, News, CVS, Developer Resources 4Suite Users Mailing List - Peer & Developer Support 4Suite Announcement Mailing List - Infrequent Announcements about 4Suite Fourthought, Inc. - Commercial Development, Consulting & Support 6 Appendix A: Notes on PyXML and 4SuitePyXML is a collection of XML processing libraries for Python. 4Suite and PyXML are complementary projects developed in tandem. There is minimal overlap in functionality. For example, where PyXML has a compliant, pure Python implementation of DOM Level 1, 4Suite has a lightweight, "Domlette" optimized for XPath processing and implemented mostly in C. Prior to the 4Suite 0.12.0a1 release, PyXML was required to use 4Suite. This is no longer the case with modern versions of 4Suite; PyXML is not needed at all. If you decide to install PyXML, you must install PyXML 0.8 or higher (try to install the most recent version) for compatibility with 4Suite. Avoid PyXML 0.8.1 — that specific version integrates a buggy version of Expat (1.95.5), which leads to core dumps in some situations. When installing PyXML, it is recommended that you use the --without-xpath --without-xslt options for setup.py install in order to ensure that the very old, deprecated XPath and XSLT implementations included with PyXML will not be installed. These implementations are ported from 4Suite 0.11.1 and using them alongside newer versions of 4Suite may be problematic. |
|
Home |
Copyright |
Downloads
|