Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > What is GLIB and how do I get it?

What is GLIB and how do I get it?
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2001
Location: CA
Status: Offline
Reply With Quote
Jun 21, 2001, 01:18 AM
 
I'm trying to compile a GNU app in OSX, but it's giving me this error. I'm new to this whole thing so sorry if this is kinda obvious, but can someone tell me what GLIB is and how do I get it or configure my setup so that it knows where to find GLIB.

Here's what I've got:
./configure ppc

results in:
loading cache ./config.cache
checking host system type... powerpc-unknown-none
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make sets ${MAKE}... (cached) yes
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking how to run the C preprocessor... cc -E -traditional-cpp
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether we are using GNU make... yes
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for cc option to accept ANSI C... none needed
checking whether sys/types.h defines makedev... yes
checking for working const... yes
checking build system type... powerpc-unknown-none
checking for ar... ar
checking for netscape... no
checking for arena... no
checking for Mosaic... no
checking for chimera... no
checking for ANSI C header files... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for argz.h... no
checking for limits.h... yes
checking for locale.h... yes
checking for nl_types.h... no
checking for malloc.h... no
checking for string.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for stpcpy... no
checking for LC_MESSAGES... no
checking whether NLS is requested... yes
checking for libintl.h... no
checking whether catgets can be used... no
found xgettext program is not GNU xgettext; ignore it
checking for glib-config... no
checking for GLIB - version >= 1.2.0... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: Test for GLIB failed. MC requires GLIB.

Any and all help greatly appreciated.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jun 21, 2001, 01:35 AM
 
From http://www.gtk.org/faq/:

GLib is a library of useful functions and definitions available for use when creating GDK and GTK applications. It provides replacements for some standard libc functions, such as malloc, which are buggy on some systems.

It also provides routines for handling:

• Doubly Linked Lists
• Singly Linked Lists
• Timers
• String Handling
• A Lexical Scanner
• Error Functions
It's a nice little utility library for things commonly used by programmers. It is also required for GTK+, a display library you'll also need for MC. IIRC, mc might also need gnome-libs... Your best bet might be to get fink, which has mc support built in.

[ 06-21-2001: Message edited by: Angus_D ]
     
Fresh-Faced Recruit
Join Date: Jun 2001
Location: CA
Status: Offline
Reply With Quote
Jun 21, 2001, 04:57 AM
 
Thanks for the tip. I've seen fink mentioned before. Where can I get it from?


Originally posted by Angus_D:
<STRONG>From http://www.gtk.org/faq/:



It's a nice little utility library for things commonly used by programmers. It is also required for GTK+, a display library you'll also need for MC. IIRC, mc might also need gnome-libs... Your best bet might be to get fink, which has mc support built in.

[ 06-21-2001: Message edited by: Angus_D ]</STRONG>
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jun 21, 2001, 01:10 PM
 
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:23 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2