How to compile irssi with specific path to glib-2.0
Mateusz PaĆosz <[email protected]> Sat, 6 Aug 2011 23:08:52 +0200
| Newsgroups | gmane.network.irc.irssi.user |
|---|---|
| Message-ID | <CAEZs96dVW4Mi6o7tyb_U68B0SVT2Xvcfx2u5S8MX_BGnHyUxDw@mail.gmail.com> |
Hi all,
I have box with RHEL4 without root access. I want to build newest
irssi (0.8.15) on it, but there is glib 2.4.7. So I downloaded and
compiled newest glib (2.6.6) with --configure=$home/r
I tried compile irssi like that:
export CPPFLAGS=-I$HOME/r/include/
export LDFLAGS=-L$HOME/r/lib/
export LD_LIBRARY_PATH=$HOME/r/lib
export GLIB_CFLAGS="-I$HOME/r/include/glib-2.0 -I$HOME/r/lib/glib-2.0/include"
export GLIB_LIBS="-lglib-2.0"
./configure --prefix=$HOME/r --includedir=$HOME/r/include
But still irssi doesn't see glib.
This is output of configure:
checking for GLIB - version >= 2.6.0... no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
*** 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.
part of config.log:
| #include <glib.h>
| #include <stdio.h>
|
| int
| main ()
| {
| return ((glib_major_version) || (glib_minor_version) ||
(glib_micro_version));
| ;
| return 0;
| }
configure:12657: error: GLIB is required to build irssi.
What I have to change to change path to glib for irssi? Thank in advance
--
Best regards,
Matthew P.