Skip to main content

Helpcenter

Linux Installation

This chapter shows you how to install and setup DocxFactory on Linux.

  1. Go to www.docxfactory.com and download the Linux installation package.

    For the Linux 32bit version download DocxFactoryLinux32.tar.gz.

    For the Linux 64bit version download DocxFactoryLinux64.tar.gz.

  2. Before starting, it is recommended that you login as root so you have all the necessary permissions to perform the installation.

    Enter the commands below in the command line.

$ su -

  1. Extract the DocxFactory/ directory into the /opt directory.

    Enter the commands below in the command line.

# cd /opt

# tar -zxvf DocxFactoryLinux32.tar.gz

Note: If there is an older version installed then delete the DocxFactory directory first (do not overwrite it).

  1. Add the DocxFactory/lib/ directory to the list of library directories to search when a program is run.

    Either permanently using ldconfig:

# echo /opt/DocxFactory/lib/ > /etc/ld.so.conf.d/DocxFactory.conf

# chmod 666 /etc/ld.so.conf.d/DocxFactory.conf

# ldconfig

Or temporarily using the LD_LIBRARY_PATH environment variable before the program is run:

# export LD_LIBRARY_PATH=/opt/DocxFactory/lib:$LD_LIBRARY_PATH

Note: You will need to restart all processes that use the DocxFactory.so (or simply restart the Computer) for the changes to take effect.

  1. Install the DocxFactory Python module:

    Enter the commands below in the command line.

# cd /opt/DocxFactory/python

# python setup.py install

Note: The python-devel package (for the Python version you are using) must be installed to compile the extension module (.so file). If the Python.h file exists in the Python installation include directory then the python-devel package is most likely installed.

You can also create a binary distribution (using distutils) for the same Python version with the compiled extension module that can be used to install the extension module without the python-devel package.