Installing Libxslt on Ubuntu Linux
Libxslt:According to xmlsoft.org,
"Libxslt is the XSLT C library developed for the GNOME project. XSLT itself is a an XML language to define transformation for XML. Libxslt is based on libxml2 the XML C library developed for the GNOME project. It also implements most of the EXSLT set of processor-portable extensions functions and some of Saxon's evaluate and expressions extensions."
Before starting, please check to see if there is a latest version available to download. Visit ftp://xmlsoft.org/libxslt/ to find out about the available versions. IMPORTANT: See "Configuring Ubuntu Linux After Installation" to install the development tools required to compile and install libxslt from source code. Install libxml2 before installing libxslt.
Steps to download, compile, and install are as follows. Note: Replace 1.1.21 with your version number:
Downloading Libxslt:Run the command below,
Extracting files from the downloaded package:
tar -xvzf libxslt-1.1.21.tar.gzNow, enter the directory where the package is extracted.
Configuring Libxslt Library:
./configure --prefix=/usr/local/libxslt --with-libxml-prefix=/usr/local/libxml2/Replace "/usr/local/libxslt" above with the directory path where you want to copy the files and folders. Also, replace "/usr/local/libxml2/" with the directory path where you installed libxml2. Note: check for any error message.
Note: check for any error message.
As root (for privileges on destination directory), run the following.With sudo,
sudo make installWithout sudo,
Note: check for any error messages.
That’s it. Library has bee successfully installed.
Please feel free to use the comments form below if you have any questions or need more explanation on anything. I recommend thoroughy testing on a production-like test system first before moving to production. Use the icons below to share this tutorial with your friends.