Find the answer to your Linux question:
Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By keenerd
Hi, has anyone have any experience with the following? I have a funny error upon attempting to install glib-2.11.1 which I obtained from the following location: http://ftp.gnome.org/pub/gnome/sources/glib/2.11/ Similar errors were ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    2

    Problems installing glib. libiconv not used?


    Hi, has anyone have any experience with the following?

    I have a funny error upon attempting to install glib-2.11.1 which I obtained from the following location:
    http://ftp.gnome.org/pub/gnome/sources/glib/2.11/

    Similar errors were found when attempting to install glib-2.9.2 and glib 2.8.6.

    libiconv version 1.9.2 was obtained from http://ftp.gnu.org/pub/gnu/libiconv/...v-1.9.2.tar.gz and was an installation requirement for glib installation.

    Basically, after installation of libiconv and attempting to install glib, I got the following error:

    >./configure
    okay.

    >make
    gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -g -O2 -Wall -MT gconvert.lo -MD -MP -MF .deps/gconvert.Tpo -c gconvert.c -fPIC -DPIC -o .libs/gconvert.o
    gconvert.c:47:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
    make[4]: *** [gconvert.lo] Error 1
    make[4]: Leaving directory `/home/usr1/bin/glib/glib-2.9.6/glib'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/usr1/bin/glib/glib-2.9.6/glib'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/usr1/bin/glib/glib-2.9.6/glib'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/usr1/bin/glib/glib-2.9.6'
    make: *** [all] Error 2

    Similarly:

    gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -pthread -g -O2 -Wall -MT gconvert.lo -MD -MP -MF .deps/gconvert.Tpo -c gconvert.c -fPIC -DPIC -o .libs/gconvert.o
    gconvert.c:47:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
    make[4]: *** [gconvert.lo] Error 1
    make[4]: Leaving directory `/home/usr1/bin/glib/glib-2.11.1/glib'
    make[3]: *** [all-recursive] Error 1
    make[3]: Leaving directory `/home/usr1/bin/glib/glib-2.11.1/glib'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/usr1/bin/glib/glib-2.11.1/glib'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/usr1/bin/glib/glib-2.11.1'
    make: *** [all] Error 2


    However, I did install libiconv. And the make and make install from libiconv has created
    files such as /usr/local/lib/libiconv_plug.so in the lib directories which I am hoping means that the library has been included.

    I tried googling for similar errors that others may have faced before but I could not find any precedence. Also, unfortunately, I could not spot any clues from the installation guide either.

    I am using Mandriva Power Pack 2006.

    Can anyone please help to give me hints on resolving this ?

    Thanks for giving this your kind attention !

  2. #2
    Just Joined!
    Join Date
    Jun 2006
    Posts
    1
    I had the same issue under Vector Linux 5.1 standard.

    Read
    http://developer.gimp.org/api/2.0/gl...-building.html

    Installing the latest libiconv and compiling glib with
    ./configure --with-libiconv
    did the trick for me.
    Gadien likes this.

  3. #3
    Just Joined!
    Join Date
    May 2006
    Posts
    2
    Thanks for the reply!

    I had not looked into it for sometime already and had nearly abandoned all hope.

    I'll definitely give this a shot and see how it works.

    Cheers again!

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    114

    Smile

    There are 2 versions of iconv on your system.
    1. Built in from GCC / libc.
    2. Standalone from libiconv.

    Try to run "updatedb" and "locate iconv.h"

    Make sure your program access the correct version of iconv.h and library.
    Perhaps you can rename the wrong iconv.h during compile (temporary).

    Or you can use options during ./configure:

    ./configure --help | grep -i iconv

  6. #5
    Just Joined!
    Join Date
    Feb 2007
    Posts
    15
    thanks keenerd, I did that as you said, and it worked!
    but now, when I'm tryin to install the next package, PANGO, I get this:
    Code:
    ./configure
    ...
    checking FONTCONFIG_CFLAGS... -I/usr/local/include  
    checking FONTCONFIG_LIBS... -L/usr/local/lib -lfontconfig  
    checking for freetype-config... /usr/local/bin/freetype-config
    checking for FT_Get_Next_Char in -lfreetype... yes
    checking for pkg-config... (cached) /usr/local/bin/pkg-config
    checking for GLIB - version >= 2.1.3... 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
    configure: error:
    *** Glib 2.1.3 or better is required. The latest version of
    *** Glib is always available from ftp://ftp.gtk.org/.
    any suggestions? I have installed GLIB 2.12.0, but it says that I don't have it..
    Last edited by devils casper; 08-11-2007 at 11:44 AM. Reason: Removed Font size tags and added code tags.

  7. #6
    Just Joined!
    Join Date
    Aug 2007
    Posts
    3

    Glib-2-12.12 on vector linux

    After much huffing & puffing I finally managed to install Glib on vector. The trick is to uninstall Glib first. Then configure glib with the "--with -libiconv" option. Remember after installing libiconv you need to install gettext and reinstall libiconv again. Read the libiconv site for more installation tips. Hope this helps. BTW I'm a newbie.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •