Archive for July 2010


Installing Subversion on Linux

July 26th, 2010 — 2:06pm

Apache2 Subversion or also known as svn or SVN, is an open source software version of the controller that can manage software development process undertaken by a separate group of programmers to trace and orderly. CollabNet Subversion is created by holding the trademark “Subversion” and still maintain this project. Subversion is available in a version of Linux, Windows, FreeBSD, OpenBSD, Solaris, Mac OS X and OS/400. Check the Latest version of Subversion is on Subversion.tigris.org.

Requirement
* Apache2

Installing Neon

ervan:~# wget http://webdav.org/neon/neon-0.29.3.tar.gz
ervan:~# tar -zxvf neon-0.29.3.tar.gz
ervan:~# cd neon-0.29.3
ervan:~/neon-0.29.3# ./configure --prefix=/usr/local/neon/
ervan:~/neon-0.29.3# make && make install

Installing Expat library and make sure linked to another

ervan:~# apt-get install expat
ervan:~# ls /usr/lib/ | grep expat
libexpat.so.1
libexpat.so.1.5.2
libexpatw.so.1
libexpatw.so.1.5.2
ervan:~# ln -s libexpat.so.1 libexpat.so
ervan:~# ls -al /usr/lib/ | grep expat
lrwxrwxrwx  1 root root      13 Jul 26 09:53 libexpat.so -> libexpat.so.1
lrwxrwxrwx  1 root root      17 Jun  6 09:58 libexpat.so.1 -> libexpat.so.1.5.2
-rw-r--r--  1 root root  151468 Jun  9  2008 libexpat.so.1.5.2
lrwxrwxrwx  1 root root      18 Jun  6 09:58 libexpatw.so.1 -> libexpatw.so.1.5.2
-rw-r--r--  1 root root  152172 Jun  9  2008 libexpatw.so.1.5.2

Installing SQLite

ervan:~# wget http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
ervan:~# tar -zxvf sqlite-amalgamation-3.6.13.tar.gz
ervan:~# cd sqlite-3.6.13/
ervan:~# ./configure
ervan:~# make && make install

Installing Subversion

ervan:~# cd subversion-1.6.12
ervan:~# ./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apache2/bin/apr-1-config --with-apr-util=/usr/local/apache2/bin/apu-1-config --disable-neon-version-check --with-neon=/usr/local/neon
ervan:~# make && make install

Restart your apache2 service.

ervan:~# /usr/local/apache2/bin/apachectl restart

Comment » | Linux

Installing OCI8 On Debian 5.0 i686

July 23rd, 2010 — 1:49pm

OCI8 is an extension for providing APIs to Oracle database management system.

Requirement
* PHP
* Oracle Instant Client

Autoconf installation

root@linux:~# wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
root@linux:~# tar -zvxf m4-1.4.9.tar.gz
root@linux:~# cd m4-1.4.9/
root@linux:~# ./configure && make && make install
root@linux:~# cd ..
root@linux:~# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
root@linux:~# tar -zvxf autoconf-2.62.tar.gz
root@linux:~# cd autoconf-2.62/
root@linux:~# ./configure && make && make install

Register and Download Oracle Instant Client. Choose your platform compatibility, if the package not compatible with your platform then installation process will failed. At least, we just need Basic and SDK. Then put on /opt/oracle or whatever directory did you liked.

root@linux:~# mkdir -p /opt/oracle
root@linux:~# cd /opt/oracle
root@linux:~# unzip instantclient-basic-linux32-11.2.0.1.zip
root@linux:~# unzip instantclient-sdk-linux32-11.2.0.1.zip
root@linux:~# mv /opt/oracle/instantclient_11_2 /opt/oracle/instantclient

Create symbolic links for dinamic library and Add instant client to system ld.

root@linux:~# cd /opt/oracle/instantclient
root@linux:~# ln -s libclntsh.so.11.1 libclntsh.so
root@linux:~# ln -s libocci.so.11.1 libocci.so
root@linux:~# echo /opt/oracle/instantclient > /etc/ld.so.conf

Compiling OCI8 and enter instantclient,/opt/oracle/instantclient when you are prompted.

root@linux:~# pecl install oci8

Enable oci8 extension on php.ini then restart apache2 web server

root@linux:~# echo extension=oci8.so > /usr/local/lib/php.ini
root@linux:~# echo extension=oci8.so > /etc/php5/cli/php.ini
root@linux:~# sudo /etc/init.d/apache2 restart

Then check phpinfo() and the successfull installation should be :

I’ve got an error before, the error are no oci8 extensions on phpinfo() after installation finished and oci8.so added to php.ini. We can manually check with php command on console. And just install libaio with apt.

root@linux:~# php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/oci8.so' - libaio.so.1: cannot open shared object file: No such file or directory in Unknown on line 0
root@linux:~# apt-get install libaio

Comment » | Linux

Back to top