Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: hitman012 on September 03, 2006, 11:24:44 PM

Title: Installing libxml/glib
Post by: hitman012 on September 03, 2006, 11:24:44 PM
Hi,

I'm trying to install an IRC proxy/bouncer on my SME installation, but am having some problems. After getting and compiling pkg-config (which its configure script needs), I recieve this error:

Code: [Select]
checking for libxml-2.0 glib-2.0 gmodule-2.0... configure: error: libxml and glib are required

I've tried various variations of this with yum in order to try and download but have had no luck. I also tried compiling the latest version of glib but the script still gives me this error (do I need to reboot after that?).

Thanks :)
Title: Re: Installing libxml/glib
Post by: cactus on September 04, 2006, 11:53:35 AM
Quote from: "hitman012"
Hi,

I'm trying to install an IRC proxy/bouncer on my SME installation, but am having some problems. After getting and compiling pkg-config (which its configure script needs), I recieve this error:

Code: [Select]
checking for libxml-2.0 glib-2.0 gmodule-2.0... configure: error: libxml and glib are required

I've tried various variations of this with yum in order to try and download but have had no luck. I also tried compiling the latest version of glib but the script still gives me this error (do I need to reboot after that?).

Thanks :)
Which repositories do you have enabled? Do you also have the 3rd Party Yum repositories (http://no.longer.valid/phpwiki/index.php/3rdPartyYumRepositories) enabled? Maybe those repositories also hold an rpm for the package you are trying to install, this will save you building the package. I mainly use the dries, dag en atrpms repositories in case I cannot find it in the default repositories. Be sure to use Centos or RHEL RPM's, they have worked for me all the time.
Title: Installing libxml/glib
Post by: hitman012 on September 04, 2006, 12:21:57 PM
Nope... couldn't find an up-to-date version in the repositories you suggest :(
Title: Installing libxml/glib
Post by: william_syd on September 04, 2006, 01:40:48 PM
Quote from: "hitman012"
Nope... couldn't find an up-to-date version in the repositories you suggest :(


Whats an uptodate one ?

Try
Code: [Select]
yum --enablerepo=base --enablerepo=updates list libxml2 glib2

Which for me gives
Code: [Select]
[root@tiger ~]# yum --enablerepo=base --enablerepo=updates list libxml2 glib2
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Setting up repositories
Reading repository metadata in from local files
Installed Packages
glib2.i386                               2.4.7-1                installed
libxml2.i386                             2.6.16-6               installed
================================================================
No new rpms were installed. No additional commands are required.
================================================================
[root@tiger ~]#


To see which repositories are on your system..
Code: [Select]
db yum_repositories show | more

Take note of the Visible and status fields.

If Visible is 'no' then they wont be seen in the Server-Manager and staus 'no' means they wont be used by yum unless you specify them with the --enablerepo option.
Title: Installing libxml/glib
Post by: hitman012 on September 04, 2006, 01:45:46 PM
Interesting - that returns that they're installed. In that case, I must be missing gmodule?

Thanks for your replies so far.
Title: Installing libxml/glib
Post by: william_syd on September 04, 2006, 01:59:59 PM
Quote from: "hitman012"
Interesting - that returns that they're installed. In that case, I must be missing gmodule?

Thanks for your replies so far.



What exactly are you trying to install ?
Title: Installing libxml/glib
Post by: hitman012 on September 04, 2006, 02:01:48 PM
I'm trying to install ctrlproxy 2.6.2 (located here (http://ctrlproxy.vernstok.nl/)).
Title: Installing libxml/glib
Post by: william_syd on September 04, 2006, 02:42:33 PM
Quote from: "hitman012"
I'm trying to install ctrlproxy 2.6.2 (located here (http://ctrlproxy.vernstok.nl/)).


Try
Code: [Select]

yum --enablerepo=base --enablerepo=updates install cpp gcc libxml2-devel glib2-devel
wget http://ctrlproxy.vernstok.nl/releases/ctrlproxy-2.6.2.tar.gz
tar -xzf ctrlproxy-2.6.2.tar.gz
cd ctrlproxy-2.6.2
./configure
make
make install


It appears to have worked for me.
Title: Installing libxml/glib
Post by: hitman012 on September 04, 2006, 02:49:53 PM
The packages installed fine, but unfortunately it's still giving me the same error. I've tried restarting the system but to no avail.
Title: Installing libxml/glib
Post by: william_syd on September 04, 2006, 02:55:45 PM
Quote from: "hitman012"
The packages installed fine, but unfortunately it's still giving me the same error. I've tried restarting the system but to no avail.


Hmm

I'm sure thats all I did..
Code: [Select]
yum --enablerepo=base --enablerepo=updates install cpp gcc libxml2-devel glib2-devel
wget http://ctrlproxy.vernstok.nl/releases/ctrlproxy-2.6.2.tar.gz
tar -xzf ctrlproxy-2.6.2.tar.gz
cd ctrlproxy-2.6.2
./configure
make
make install


You replied while I was editing the yum line.
Title: Installing libxml/glib
Post by: hitman012 on September 04, 2006, 03:06:34 PM
Interesting - I ran your updated yum line and it added another package. However, it still returns that error when obviously they are installed. Perhaps through trying to compile glib myself I inadvertently caused this? If so, is there a way to remove glib completely and start again to eliminate the possibility?
Title: Installing libxml/glib
Post by: william_syd on September 04, 2006, 03:13:48 PM
Quote from: "hitman012"
Interesting - I ran your updated yum line and it added another package. However, it still returns that error when obviously they are installed. Perhaps through trying to compile glib myself I inadvertently caused this? If so, is there a way to remove glib completely and start again to eliminate the possibility?


I have no idea.

I gather
Code: [Select]
yum --enablerepo=base --enablerepo=updates remove glib
says nothing to do.
If so try
Code: [Select]
yum --enablerepo=base --enablerepo=updates install glib
Title: Installing libxml/glib
Post by: william_syd on September 04, 2006, 03:31:07 PM
Had to do this as well..
Code: [Select]
yum --enablerepo=base --enablerepo=updates install pkgconfig
Title: Installing libxml/glib
Post by: hitman012 on September 04, 2006, 07:39:30 PM
Nope.. that doesn't seem to do it either. I've tried removing the packages and installing them again, but with no success. This is a strange one :-?
Title: Installing libxml/glib
Post by: william_syd on September 05, 2006, 01:21:32 AM
Quote from: "hitman012"
Nope.. that doesn't seem to do it either. I've tried removing the packages and installing them again, but with no success. This is a strange one :-?


Just to make sure I didn't miss anything I tried it again on a stock SME 7 install ( in VMware ).

List of the commands I used..
Code: [Select]
[root@vmsme2 ctrlproxy-2.6.2]# history
    1  yum --enablerepo=base --enablerepo=updates install cpp gcc libxml2-devel glib2-devel pkgconfig
    2  wget http://ctrlproxy.vernstok.nl/releases/ctrlproxy-2.6.2.tar.gz
    3  tar -xzf ctrlproxy-2.6.2.tar.gz
    4  cd ctrlproxy-2.6.2
    5  ./configure
    6  make
    7  make install
    8  history
[root@vmsme2 ctrlproxy-2.6.2]#

I was logged in as root and started in the /root directory.

My only 'error' was the following during make install
Code: [Select]
make[1]: Entering directory /root/ctrlproxy-2.6.2/doc'

---------------------------------------------------------------
You are using ctrlproxy from CVS and have not enabled the docs
(./configure --enable-docs). No documentation will be installed
---------------------------------------------------------------

make[1]: Leaving directory /root/ctrlproxy-2.6.2/doc'


It appears to be installed ok..
Code: [Select]
[root@vmsme2 ctrlproxy-2.6.2]# ctrlproxy -v
ctrlproxy 2.6.2
(c) 2002-2003 Jelmer Vernooij <jelmer@nl.linux.org>
[root@vmsme2 ctrlproxy-2.6.2]#

Code: [Select]
[root@vmsme2 ctrlproxy-2.6.2]# ctrlproxy -?
Usage: ctrlproxy [OPTION...]
  -d, --debug=FILE       Write irc traffic to specified file
  -D, --daemon           Run in the background (as a daemon)
  -l, --log=FILE         Log messages to specified file
  -r, --rc-file=FILE     Use configuration file from specified location
  -v, --version          Show version information

Help options:
  -?, --help             Show this help message
  --usage                Display brief usage message
[root@vmsme2 ctrlproxy-2.6.2]#