Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Sunday, August 23, 2009

Installing Apache httpd-2.2.11 from source in Ubuntu 9.04

I was trying to install httpd-2.2.11 from source in Ubuntu 9.04.When I tried to execute the first command which is 'configure' with some options like this:


$ ./configure --with-included-apr --enable-cache --enable-mem-cache --enable-ssl --enable-rewrite
--enable-so --enable-deflate


I got this error:


checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to
prerequisite failures


After doing some investigation, I found that zlib1g-dev was not installed. So I installed this using this command:


$ sudo apt-get install zlib1g-dev


Then I tried to install apache again. When I ran configure again, I got this error:


no OpenSSL headers found
checking for SSL-C version... checking sslc.h usability... no
checking sslc.h presence... no
checking for sslc.h... no
no SSL-C headers found
configure: error: ...No recognized SSL/TLS toolkit detected


That means either openssl or libssl-dev was not installed. I was sure that openssl was installed. So I installed libssl-dev using this command:


$ sudo apt-get install libssl-dev


Then I tried to install httpd again and it was successfully installed. :)

Friday, July 17, 2009

mysql-5.1.36 in Ubuntu 9.04: No curses/termcap library found

I was building mysql-5.1.36 in Ubuntu 9.04 - the Jaunty Jackalope and while trying to run:
$ ./configure --prefix=/usr/local/mysql

I got this error:

checking for termcap functions library... configure: error: No curses/termcap library found. After a bit thinking, I found that the ncurses stuff isn't installed for. To find which name Ubuntu uses for that library I did:

$ apt-cache search ncurses

and I found:

libncurses5-dev - Developer's libraries and docs for ncurses

and I installed it with:

$ sudo apt-get install libncurses5-dev

After this, I tried configuring mysql-5.1.36 again and it was a success:) Altough it was a simple workaround for the problem that I faced,
I can't resist myself of sharing this ;)

Thursday, January 1, 2009

Opening file having extension .z

This type of file is Unix Compressed File. This is an standard file format supported by many programs. This compression format is used to compress or "pack" files on Unix servers to save disk space; incorporates a simple compression algorithm that has been mostly replaced by GNUzip compression (which creates (.GZ files)).

File can be decompressed on a Unix machine by typing uncompress filename, where "filename" is the name of the file you want to decompress.

There is a lot of programs listed below for uncompressing/openning this type of file:

Sunday, July 27, 2008

apache didn't start after installing subversion

I installed apache long before. Recently I installed subversion and thought everything is OK. But actually it wasn't. When I tried to start apache, i got this error:

$ /usr/local/apache2/bin/apachectl start
[Mon Jul 28 11:13:10 2008] [warn] module ferite_module is already loaded, skipping
[Mon Jul 28 11:13:11 2008] [warn] module php5_module is already loaded, skipping
Syntax error on line 1048 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_dav_svn.so into server: /usr/local/apache2/modules/mod_dav_svn.so: undefined symbol: dav_xml_get_cdata

This time, it took little time to solve this problem. I reinstalled apache using these steps:

$ ./configure --prefix=/usr/local/apache2 --enable-dav --enable-so
$ make
$ sudo make install

And everything is ok now :)

Monday, July 21, 2008

Using svn and got "Unrecognized URL scheme."

This morning, I built subversion-1.5.0 from source using the ./configure, make and make install. Then I tried to check out a repository and got this error:
$ svn checkout http://svn.assembla.com/svn/blog1/ --username azim.babu
svn: Unrecognized URL scheme for 'http://svn.assembla.com/svn/blog1'

It seemed to be a curious problem to analyze. So I did some googling and found these from http://subversion.tigris.org/faq.html :

Subversion uses a plugin system to allow access to repositories. Currently there are three of these plugins: ra_local allows access to a local repository, ra_dav which allows access to a repository via WebDAV, and ra_svn allows local or remote access via the svnserve server. When you attempt to perform an operation in Subversion, the program tries to dynamically load a plugin based on the URL scheme. A `file://' URL will try to load ra_local, and an `http://' URL will try to load ra_dav.

The error you are seeing means that the dynamic linker/loader can't find the plugins to load. This normally happens when you build Subversion with shared libraries, then attempt to run it without first running 'make install'. Another possible cause is that you ran make install, but the libraries were installed in a location that the dynamic linker/loader doesn't recognize. Under Linux, you can allow the linker/loader to find the libraries by adding the library directory to /etc/ld.so.conf and running ldconfig. If you don't wish to do this, or you don't have root access, you can also specify the library directory in the LD_LIBRARY_PATH environment variable.

So what I got is that I was not able to setup the SVN on my ubuntu box properly. Here even after compiling the source I was not able to enable the support of ra_dav module for http and https protocol. So I did a little googling again and found that I was missing neon. So I download neon from http://www.webdav.org/neon/neon-0.28.1.tar.gz , extract the tarball and install neon using ./configure, make and make install.
Then I recompile subversion as follows:
$ ./configure --with-ssl --with-apr=/usr/local/apache2/bin/apr-config --with-apr-util=/usr/local/apache2/bin/apu-config --with-neon=/usr/local
$ make
$ sudo make install

A little explanation of the above options are:

--with-apr : prefix for installed APR, path to APR build tree, or the full path to apr-config

--with-apr-util : prefix for installed APU, path to APU build tree, or the full path to apu-config

--with-neon : Determine neon library configuration based on 'PREFIX/bin/neon-config'. Default is to search for in a subdirectory of the top source directory.

As I installaed neon without any option during configure, it should be /usr/local for my case :P

Although all these steps may seem to be very much intuitive for many, I think for newbies, this type of blog post may provide some sort of quick help. :)