Thursday, September 16, 2010

Building packages for IRSSI Relay Chat

Irssi compile and install
For this build I downloaded the tar ball file, and untarred it into my home directory, as per build requirement. Upon execution of the configure script, I encountered a few errors, as is common with some builds. The following are snippets of the program preparation for compile:

1.  checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for socket... yes
checking for inet_addr... yes
checking for socklen_t... yes
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of off_t... 8
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GLIB - version >= 2.6.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
*** trying without -lgmodule
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GLIB - version >= 2.6.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.

*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org/pub/glib/
*** We recommend you get the latest stable GLIB 2 version.
*** Compile and install it, and make sure pkg-config finds it,
*** by adding the path where the .pc file is located to PKG_CONFIG_PATH

configure: error: GLIB is required to build irssi.
As you can see glib package stalled the configure process of the build. I proceeded to yum install the glib package, which was successfully installed. However, my second attempt at running the configure command unfortunately did not yield a positive result.  My research via the web did eventually generate the outcome I anticipated. Thanks to the information posted on the following website: http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,37/func,view/id,17120/

More snippets
config.status: creating src/perl/Makefile
config.status: creating src/perl/common/Makefile.PL
config.status: creating src/perl/irc/Makefile.PL
config.status: creating src/perl/ui/Makefile.PL
config.status: creating src/perl/textui/Makefile.PL
config.status: creating scripts/Makefile
config.status: creating scripts/examples/Makefile
config.status: creating docs/Makefile
config.status: creating docs/help/Makefile
config.status: creating docs/help/in/Makefile
config.status: creating irssi-config
config.status: creating irssi-config.h
config.status: executing depfiles commands

Building text frontend ........... : yes, using terminfo
Building irssi bot ............... : no
Building irssi proxy ............. : no
Building with module support ..... : yes
Building with Perl support ....... : no
Install prefix ................... : /usr/local

Building with IPv6 support ....... : yes
Building with SSL support ........ : no
Building with 64bit DCC support .. : yes
Building with garbage collector .. : no
If there are any problems, read the INSTALL file.

2. Here the compilation process of Irssi is completed
make[3]: Leaving directory `/home/sbr/Desktop/irssi-0.8.13/scripts'
make[2]: Leaving directory `/home/sbr/Desktop/irssi-0.8.13/scripts'
make[2]: Entering directory `/home/sbr/Desktop/irssi-0.8.13'
./irssi-version.sh . > irssi-version.h.tmp
cmp -s irssi-version.h.tmp irssi-version.h || mv irssi-version.h.tmp irssi-version.h
rm -f irssi-version.h.tmp
make[2]: Leaving directory `/home/sbr/Desktop/irssi-0.8.13'
make[1]: Leaving directory `/home/sbr/Desktop/irssi-0.8.13'

  










Conclusion
From the root environment I executed the command make install, which completed the build process. The entire build process took just over an hour.

No comments: