Cuhulain has asked for the wisdom of the Perl Monks concerning the following question:

Venerable Monks,

I am compiling Perl 5.10.0 and Perl 5.12.2 on Solaris 8 (and later on Solaris 10). To support this, I have downloaded several packages required by GNU C++ (gcc) from www.sunfreeware.com, including gzipped copies of glib1 and glib2. For Solaris 8, for example, these are:

glib-1.2.10-sol8-sparc-local.gz glib-2.25.13-sol8-sparc-local.gz

My puzzle is whether to install glib-1.2.10, which I have used successfully before) or glib-2.25.13 (which has a bigger list of dependent packages).

If I keep with glib1 instead of glib2, what functionality will I miss out out in Perl 5.10.0 or Perl 5.12.2? What extra complexity or problems will I encounter if I build with glib2 instead?

Thank-you in advance for your words of wisdom.

Replies are listed 'Best First'.
Re: Build Perl with glib1 or glib2
by Anonymous Monk on Nov 25, 2010 at 11:20 UTC
    Perl doesn't need glib1 nor glib1, they're not the same thing as glibc
Re: Build Perl with glib1 or glib2
by fisher (Priest) on Nov 25, 2010 at 15:49 UTC
    seems strange. On my systems (Linux and OpenBSD) neither perl nor gcc has no need in libglib.
    fisher@ws% ldd `which perl` linux-vdso.so.1 => (0x00007fff527ff000) libperl.so.5.10 => /usr/lib/libperl.so.5.10 (0x00007f1e76cbc00 +0) libdl.so.2 => /lib/libdl.so.2 (0x00007f1e76ab8000) libm.so.6 => /lib/libm.so.6 (0x00007f1e76835000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f1e76619000) libc.so.6 => /lib/libc.so.6 (0x00007f1e762b8000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f1e76080000) /lib64/ld-linux-x86-64.so.2 (0x00007f1e7704c000) fisher@ws% ldd `which gcc` linux-vdso.so.1 => (0x00007fffe37ff000) libc.so.6 => /lib/libc.so.6 (0x00007f5675958000) /lib64/ld-linux-x86-64.so.2 (0x00007f5675cdc000) fisher@ws%
    openbook% ldd `which perl` /usr/bin/perl: Start End Type Open Ref GrpRef Name 1c000000 3c004000 exe 1 0 0 /usr/bin/perl 02a25000 22a45000 rlib 0 1 0 /usr/lib/libperl.so.11. +1 0fd26000 2fd30000 rlib 0 1 0 /usr/lib/libm.so.5.2 0cb04000 2cb08000 rlib 0 1 0 /usr/lib/libutil.so.11. +0 0ad8d000 2adc6000 rlib 0 1 0 /usr/lib/libc.so.53.1 012eb000 012eb000 rtld 0 1 0 /usr/libexec/ld.so openbook% ldd `which gcc` /usr/bin/gcc: Start End Type Open Ref GrpRef Name 1c000000 3c008000 exe 1 0 0 /usr/bin/gcc 0df9c000 2dfa3000 rlib 0 1 0 /usr/lib/libiberty.so.1 +0.0 02cb1000 22cea000 rlib 0 1 0 /usr/lib/libc.so.53.1 087bd000 087bd000 rtld 0 1 0 /usr/libexec/ld.so openbook%
    Are you sure you talking about core system and not the perl module Glib, for example?