package installation script requires glibc ver. > 2.3 but eglibc is 2.13

Asked by laurence cooke

Hopefully this is correct forum for posting this.
Thought this might be a common problem but have spent some time searching Google and cannot find an answer. May not be using the right search terms.

I'm trying to install the ActiveICM plugin for Firefox on Ubuntu 12.04
link to download page: "http://www.molsoft.com/getbrowser.cgi?product=activeicm&act=list".
Could not find any info at package site. I downloaded the installation script for Debian or similar systems.

When running the installation script the following error message occurs:

##########################################
activeicm-plugin-installer: 76: [: Illegal number: 15-0ubuntu10

ERROR: Your glibc library is older than 2.3.
       Please update your glibc library.

@net:~/local-apps/activeicmplugin$ iconv --version
iconv (Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper.
###########################################

The installation script contains the following section which may be pertinent:
[start
# check glibc
check_glibc () {
  ICONV=`iconv --version | sed -e '2,$d'`
  if [ $? -ne 0 ]; then
    echo "no-iconv"
  else
    ICONVVER=`echo "$ICONV" | awk '{print $4}'`
    GLIBCMAJOR=`echo $ICONVVER | cut -d'.' -f1`
    GLIBCMINOR=`echo $ICONVVER | cut -d'.' -f2`
    if [ \( $GLIBCMAJOR -ge $MIN_GLIBCMAJOR \) -a \( $GLIBCMINOR -ge $MIN_GLIBCMINOR \) ]; then
      echo "valid-glibc"
    else
      echo "invalid-glibc"
    fi
  fi
}

#####################

I have glibc installed.

@net> /lib/i386-linux-gnu/libc.so.6
GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10.3) stable release version 2.15, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.6.3.
Compiled on a Linux 3.2.30 system on 2012-10-05.
Available extensions:
 crypt add-on version 2.1 by Michael Glad and others
 GNU Libidn by Simon Josefsson
 Native POSIX Threads Library by Ulrich Drepper et al
 BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.
........................

Any help would be greatly appreciated.

Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu eglibc Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Did you install gtkglext as
http://www.molsoft.com/install-acticm-linux.html

says?

Revision history for this message
laurence cooke (lcookeaz) said :
#2

thank you for responding.

I tried:

apt-get install gtkglext -> E: Unable to locate package gtkglext

also:

@net:~$ apt-cache search gtkglext
libghc-gtkglext-dev - Binding to the GTK+ OpenGL Extension
libghc-gtkglext-doc - Binding to the GTK+ OpenGL Extension; documentation
libghc-gtkglext-prof - Binding to the GTK+ OpenGL Extension; profiling libraries
libghc6-gtkglext-dev - transitional dummy package
libghc6-gtkglext-doc - transitional dummy package
libgtkglext1 - OpenGL Extension to GTK+ (shared libraries)
libgtkglext1-dbg - OpenGL Extension to GTK+ (debugging symbols)
libgtkglext1-dev - OpenGL Extension to GTK+ (development files)
libgtkglext1-doc - OpenGL Extension to GTK+ (documentation)
libgtkglextmm-x11-1.2-0 - C++ bindings for GtkGLExt (Shared libraries)
libgtkglextmm-x11-1.2-dev - C++ bindings for GtkGLExt (Development files)
libgtkglextmm-x11-1.2-doc - C++ bindings for GtkGLExt (Documentation)
python-gtkglext1 - GtkGLext python bindings
vim-syntax-gtk - Syntax files to highlight GTK+ keywords in vim

I tried installing libghc-gtkglext-dev and libghc6-gtkglext-dev but still same problem.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Can you open a terminal and try these commands:

ICONV=`iconv --version | sed -e '2,$d'`
echo $ICONV
ICONVVER=`echo "$ICONV" | awk '{print $4}'`
echo $ICONVVER
GLIBCMAJOR=`echo $ICONVVER | cut -d'.' -f1`
echo $GLIBCMAJOR
GLIBCMINOR=`echo $ICONVVER | cut -d'.' -f2`
echo $GLIBCMINOR

echo "++++++"

ICONV=`iconv --version | sed -e '2,$d'`
echo $ICONV
ICONVVER=`echo "$ICONV" | awk '{print $5}'`
echo $ICONVVER
GLIBCMAJOR=`echo $ICONVVER | cut -d'.' -f1`
echo $GLIBCMAJOR
GLIBCMINOR=`echo $ICONVVER | cut -d'.' -f2`
echo $GLIBCMINOR

then select all output, copy it, and paste into this question document that we can see the results.

I guess that editing the installation script and changing $4 to $5 in the line ICONVVER=`echo "$ICONV" | awk '{print $4}'` should allow the installation script to run. The commands above should test if that might work.

Revision history for this message
laurence cooke (lcookeaz) said :
#4

Thank you for the help.

Here's the requested info:

@net:~$ ICONV=`iconv --version | sed -e '2,$d'`
@net:~$ echo $ICONV
iconv (Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
@net:~$ ICONVVER=`echo "$ICONV" | awk '{print $4}'`
@net:~$ echo $ICONVVER
2.15-0ubuntu10.3)
@net:~$ GLIBCMAJOR=`echo $ICONVVER | cut -d'.' -f1`
@net:~$ echo $GLIBCMAJOR
2
@net:~$ GLIBCMINOR=`echo $ICONVVER | cut -d'.' -f2`
@net:~$ echo $GLIBCMINOR
15-0ubuntu10
@net:~$
@net:~$ echo "++++++"
++++++
@net:~$
@net:~$ ICONV=`iconv --version | sed -e '2,$d'`
@net:~$ echo $ICONV
iconv (Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
@net:~$ ICONVVER=`echo "$ICONV" | awk '{print $5}'`
@net:~$ echo $ICONVVER
2.15
@net:~$ GLIBCMAJOR=`echo $ICONVVER | cut -d'.' -f1`
@net:~$ echo $GLIBCMAJOR
2
@net:~$ GLIBCMINOR=`echo $ICONVVER | cut -d'.' -f2`
@net:~$ echo $GLIBCMINOR
15
@net:~$

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#5

The output is as expected. The root cause seems to be that the iconv program on most system returns a version string of
iconv (firstword secondword) versionnumber
but the Ubuntu version gives
iconv (firstword secondword thirdword) versionnumber
as response to iconv --version, and as a consquence the installation script does not correctly identify the version.

If you modify the install script and change line 73 (approx.) from
    ICONVVER=`echo "$ICONV" | awk '{print $4}'`
into
    ICONVVER=`echo "$ICONV" | awk '{print $5}'`
the installation should be able to correctly identify the glibc version as 2.15 and should continue.

Remark:
I am not completely sure, but the requred packages for gtkglext might probably be
libgtkglext1 and libgtkglext1-dev,
eventually also python-gtkglext1, libghc-gtkglext-dev and libgtkglextmm-x11-1.2-0

Revision history for this message
laurence cooke (lcookeaz) said :
#6

Everything worked just like you said.
Thank you again for the help.

Revision history for this message
laurence cooke (lcookeaz) said :
#7

Thanks Manfred Hampl, that solved my question.