[Mono-list] Compile Fails Under RedHat 9

Lee Mehlhorn contact@ubernet.ca
Tue, 05 Aug 2003 09:26:33 -0600


This is a multi-part message in MIME format.

--Boundary_(ID_fVBVSWrKYX2jd3gUqxW3uA)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

This problem has probably been reported before, however I couldn't find anything on the list to resolve it. I downloaded the latest mono tarball and attempted to install it using the steps outlined on the download page.

./configure --prefix=/usr/local

However the compile fails with the following output:

checking size of void *... 4
checking for pkg-config... /usr/bin/pkg-config
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
checking for glib-2.0 >= 1.3.11... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

configure: error: Library requirements (glib-2.0 >= 1.3.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

First I checked my rpm database for glib using rpm -qa | grep 'glib'. As you can see below I have version 2.3.2-27.9 along with the devel version.  I also tried setting the PKG_CONFIG_PATH env var to /usr/lib still nothing..

glib-1.2.10-10
glib2-2.2.1-1
glibc-kernheaders-2.4-8.10
glibc-common-2.3.2-27.9
glibc-2.3.2-27.9
glibc-devel-2.3.2-27.9

Any ideas why this is failing on the compile?  Thanks



--Boundary_(ID_fVBVSWrKYX2jd3gUqxW3uA)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>This problem has probably been reported before, 
however I couldn't find anything on the list to resolve it. I downloaded the 
latest mono tarball and attempted to install it using the steps outlined on the 
download page.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>./configure --prefix=/usr/local<BR></DIV>
<DIV><FONT face=Arial size=2>However the compile fails with the following 
output:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>checking size of void *... 4<BR>checking for 
pkg-config... /usr/bin/pkg-config<BR>Package glib-2.0 was not found in the 
pkg-config search path.<BR>Perhaps you should add the directory containing 
`glib-2.0.pc'<BR>to the PKG_CONFIG_PATH environment variable<BR>No package 
'glib-2.0' found<BR>Package glib-2.0 was not found in the pkg-config search 
path.<BR>Perhaps you should add the directory containing `glib-2.0.pc'<BR>to the 
PKG_CONFIG_PATH environment variable<BR>No package 'glib-2.0' found<BR>checking 
for glib-2.0 &gt;= 1.3.11... Package glib-2.0 was not found in the pkg-config 
search path.<BR>Perhaps you should add the directory containing 
`glib-2.0.pc'<BR>to the PKG_CONFIG_PATH environment variable<BR>No package 
'glib-2.0' found</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>configure: error: Library requirements (glib-2.0 
&gt;= 1.3.11) not met; consider adjusting the PKG_CONFIG_PATH environment 
variable if your libraries are in a nonstandard prefix so pkg-config can find 
them.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>First I checked my rpm database for glib using rpm 
-qa | grep 'glib'. As you can see below I have version 2.3.2-27.9 along with the 
devel version.&nbsp; I also tried setting the PKG_CONFIG_PATH env var to 
/usr/lib still nothing..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>glib-1.2.10-10<BR>glib2-2.2.1-1<BR>glibc-kernheaders-2.4-8.10<BR>glibc-common-2.3.2-27.9<BR>glibc-2.3.2-27.9<BR>glibc-devel-2.3.2-27.9</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any ideas why this is failing on the compile?&nbsp; 
Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>

--Boundary_(ID_fVBVSWrKYX2jd3gUqxW3uA)--