- Welcome to Geeksww.com
Installing Apache Portable Runtime (apr) Library on Ubuntu Linux
Apache Portable Runtime Project:
According to apr.apache.org,"The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementations. The primary goal is to provide an API to which software developers may code and be assured of predictable if not identical behaviour regardless of the platform on which their software is built, relieving them of the need to code special-case conditions to work around or take advantage of platform-specific deficiencies or features."
Before starting, please check to see if there is a more up-to-date version available to download. Visit http://apr.apache.org/ to find out about the available versions. IMPORTANT: See "Configuring Ubuntu Linux After Installation" to install the development tools required to compile and install apr from source code.Steps to download, compile, and install are as follows. Note: Replace 0.9.14 with your version number:
-
Downloading apr:
Run the command below,
wget http://apache.sunsite.ualberta.ca/apr/apr-0.9.14.tar.gz
Also, download the MD5 hash to verify the integrity of the downloaded file. In the same folder, where you downloaded the file, do the following:
wget http://www.apache.org/dist/apr/apr-0.9.14.tar.gz.md5
md5sum apr-0.9.14.tar.gz
cat apr-0.9.14.tar.gz.md5The last two commands (above) generate two strings of alpha-numeric characters. Check to see if both strings are identical or not. If not, repeat the steps above from "Downloading apr". If yes, your file has been downloaded properly.
-
Extracting files from the downloaded package:
tar -xvzf apr-0.9.14.tar.gz
Now, enter the directory where the package is extracted.cd apr-0.9.14
-
Configuring aapr Library:
./configure --prefix=/usr/local/apr --enable-debug --enable-profile --enable-threads --enable-other-child --disable-ipv6
Replace "/usr/local/apr" above with the directory path where you want to copy the files and folders. Note: check for any error message. -
Compiling apr:
make
Note: check for any error message.
-
Installing apr:
As root (for privileges on destination directory), run the following.
With sudo,sudo make install
Without sudo,make install
Note: check for any error messages.
That’s it. Library has bee successfully installed.
Did this tutorial help a little? How about buy me a cup of coffee?
Please feel free to use the comments form below if you have any questions or need more explanation on anything. I do not guarantee a response.
IMPORTANT: You must thoroughy test any instructions on a production-like test environment first before trying anything on production systems. And, make sure it is tested for security, privacy, and safety. See our terms here.
tags cloud
popular searches
free download for mysql database server 5.1.5, bison, gearman, source code, php, install cairo, java, laptop, install mysql, linux, mysql, mysql mysql, mysql initialization, tools, ubuntu
Similar Tutorials:
- Installing neon (webdav) on Ubuntu Linux
- How to install Python Gearman client module?
- Installing MySQL Client tools, binaries, and library on Ubuntu Linux
- Installing Libxslt on Ubuntu Linux
- How to install libevent on Debian/Ubuntu/Centos Linux?
Tutorials in 'Operating Systems > Linux' (more):
- Bash script to compare remote directory's files using file size
- Script to transfer files to remote server with verification
- setfacl: command not found
- How to download, compile, and install CMake on Linux
- How to download, compile, and install GNU ncurses on Debian/Ubuntu Linux?
Comments (write a comment):
I have followed the entire procedure and there was no error but it still shows apr not installed. :( Posted by: Anvika on Apr 08, 2016
@Anvika: How do you test if its not available? Posted by: shahryar on Apr 09, 2016
leave a comment