PDA

View Full Version : problem to run QtCreator



Qqt
1st December 2010, 10:22
Hello,
I downloaded the latest QtCreator, 2.0.1 for Linux, qt-creator-linux-x86_64-opensource-2.0.1.bin, but when I execute it I got this message:

./qtcreator: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by QtCreator/QtCreator-2.0.1/bin/../lib/libQtGui.so.4)
./qtcreator: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by QtCreator/QtCreator-2.0.1/bin/../lib/libQtNetwork.so.4)
./qtcreator: /lib64/tls/libc.so.6: version `GLIBC_2.4' not found (required by QtCreator/QtCreator-2.0.1/bin/../lib/libQtCore.so.4)


under /lib64/tls, libc.so.6 does not exist.

Questions:

what is the absolute path of /lib64/tls? I don't see it exist in all the paths of PATH variable? the only path I can find is /usr/lib64/tls, so if this is the one, why it misses /usr/ in the front?
does anyone know which Qt version the QtCreator 2.0.1 relies on?
do I have to download the dependent Qt version of the QtCreator in order to run QtCreator?
are the error messages above actually about the out-dated glibc libs? If it is, where can I download it from?
I am currently using the old version of Qt, 4.3.4. Is there a QtCreator I can download which supports it? I couldn't find the links for previous QtCreator releases on http://qt.nokia.com


Thank you in advance for help.

Qqt
5th December 2010, 13:00
Here are more details for this problem:

Looks like I have to upgrade the glibc libs.

this is a partial output after run /lib/libc.so.6


/lib/libc.so.6
Compiled by GNU CC version 3.4.6 20060404 (Red Hat 3.4.6-9).
Compiled on a Linux 2.4.20 system on 2008-04-15.


I have downloaded

glibc-2.4.tar.gz (06-Mar-2006)
from http://ftp.gnu.org/gnu/glibc/
but got compile errors when build the package:


gcc ../sysdeps/unix/sysv/linux/if_index.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -I../include -I/libs_C/glibc/glibc-2.4-build/inet -I/libs_C/glibc/glibc-2.4-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/wordsize-64 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../nptl/sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -I /lib/modules/2.6.9-89.0.25.ELsmp/build/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /libs_C/glibc/glibc-2.4-build/inet/if_index.o -MD -MP -MF /libs_C/glibc/glibc-2.4-build/inet/if_index.o.dt -MT /libs_C/glibc/glibc-2.4-build/inet/if_index.o
In file included from /lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/netlink.h:5,
from ../sysdeps/unix/sysv/linux/netlinkaccess.h:23,
from ../sysdeps/unix/sysv/linux/if_index.c:32:

/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:158: error: syntaxerror before "__sum16"
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:158: warning: typedefaults to `int' in declaration of `__sum16'
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:158: warning: datadefinition has no type or storage class
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:159: error: syntaxerror before "__wsum"
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:159: warning: typedefaults to `int' in declaration of `__wsum'
/lib/modules/2.6.9-89.0.25.ELsmp/build/include/linux/types.h:159: warning: datadefinition has no type or storage class


Can anyone confirm if I am on the right path? If it is, how can I fix the build error of glibc 2.4? Thank you in advance for help.

BalaQT
6th December 2010, 05:07
hi, Qqt,
just a confirmation,
u r working on 32 bit or 64 bit machine??
if u are working in 32 bit , then qt-creator-linux-x86_64-opensource-2.0.1.bin is a wrong download.


Bala

Qqt
6th December 2010, 05:19
Hello Bala,
Thank you for reply. My machine is 64 bits, as shown below:

Linux lnx_137_1a010 2.6.9-89.0.25.ELsmp #1 SMP Mon Apr 19 06:08:56 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

Qqt
7th December 2010, 05:31
I have found out the current libc version installed on my Linux:
/lib64 ->% /lib/libc.so.6
GNU C Library stable release version 2.3.4

so looks like I have to upgrade to glibc 2.4. Can anyone point out how to fix the build error of glibc 2.4? Thank you.