Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-01-2014, 02:00 AM
|
#1
|
Member
Registered: Aug 2010
Posts: 139
Rep:
|
Installatin problem in installing gcc-4.9.0
Hi to all,
i'm installing gcc-4.9.0 into my centos 6.4. I configure like this :-
Code:
# mkdir objdir
# ./../gcc-4.9.0/configure
# make
and now having this problem :-
Code:
checking for x86_64-unknown-linux-gnu-gcc... /software/gcc/objdir/./gcc/xgcc -B/software/gcc/objdir/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/software/gcc/objdir/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/software/gcc/objdir'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/software/gcc/objdir'
make: *** [all] Error 2
-----------------------------------------------------
what should I do for this error to overcome?
this problem was also having with gcc-4.8.3.
|
|
|
06-01-2014, 03:00 AM
|
#2
|
Member
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328
Rep:
|
Usually, this is a problem with linking to mpc/mpfr/gmp; look at config.log in the same directory to have a full debug of this error.
I don't remember if Centos uses -devel packages as in redhat, in that case, install them (gmp-devel, mpfr-devel, mpc-devel or similar names) and try configure again. Otherwise, look config.log.
|
|
|
06-02-2014, 03:02 PM
|
#3
|
Member
Registered: Aug 2010
Posts: 139
Original Poster
Rep:
|
i'm installing gcc-4.9.0 into my centos 6.4. I configure like this :-
i installed gmp-4.3.2, isl-0.12.2, mpfr-2.4.2, mpc-0.8.1, cloog-0.18.1 manually and successfully then i configure gcc-4.9.0 as (successfully) :-
Code:
[root@kaljayi gcc]# gcc-4.9.0/configure --disable-shared --disable-libstdcxx-pch --enable-languages=all --enable-libgomp --enable-lto --enable-threads=posix --enable-tls --with-gmp=/opt/gcc-4.9.0/ --with-mpfr=/opt/gcc-4.9.0/ --with-mpc=/opt/gcc-4.9.0/ --with-libelf=/opt/gcc-4.9.0/ --with-fpmath=sse
then
Code:
[root@kaljayi gcc]# make
and found this error :-
Code:
checking for x86_64-unknown-linux-gnu-gcc... /software/gcc/./gcc/xgcc -B/software/gcc/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/software/gcc/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/software/gcc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/software/gcc'
make: *** [all] Error 2
------------------------------------------------
how can i overcome from this error?
Last edited by rahulvishwakarma; 06-02-2014 at 03:12 PM.
|
|
|
06-02-2014, 03:27 PM
|
#4
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
you do know that CentOS dose NOT use /usr/local
that location is NOT in the default $PATH
also building "shared" (*.so) is the normal , just wondering WHY you are disabling that
Also can you post the output of
Code:
cat /etc/redhat-release
ONLY centOS 6.5 is supported
if it states 6.4 then you need to upgrade ASAP
|
|
|
06-03-2014, 04:14 AM
|
#5
|
Member
Registered: Aug 2010
Posts: 139
Original Poster
Rep:
|
you written :-
you do know that CentOS dose NOT use /usr/local
so i installed RedHat EL 6.4 and then did installation again as above
and found same problem again. I was trying installation of gcc-4.6.3 and gcc-4.8.3
but having same problem as mentioned previous post.
I was trying like this :-
http://stackoverflow.com/questions/9...shared-librari
I am trying to solve this problem since a long time ago.( two or three months )
please help me.
|
|
|
06-03-2014, 01:57 PM
|
#6
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
if you REALLY must have the very new and still in testing gcc4.9
install fedora 20
RHEL6.5 uses older code
and older versions of software
most of the code in rhel6.5 might not even build yet using gcc 4.9
RHEL uses gcc 4.4 as the DEFAULT compiler
now the EPEL repo has gcc 4.7
http://wiki.centos.org/AdditionalResources/Repositories
|
|
|
06-11-2014, 01:13 AM
|
#7
|
Member
Registered: Aug 2010
Posts: 139
Original Poster
Rep:
|
real thing is that- i want to install Qt5.2.1 on my centos 6.4, and my system is old ( that
means - not supporting centos 6.5 or rhel 6.5 ). After installing and running qtcreator, it
given the following error :-
Code:
[rahul@kaljayi bin]# ./qtcreator
Qt: Session management error: None of the authentication
protocols specified are supported
(<unknown>:27276): Gtk-WARNING **: Attempt to load unknown
IM context type 'gtk-im-context-none'
Failed to load core:
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load
library
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so:
(/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/../.././libQt5CLucene.so.5))
i searched in the web and found in some sites that i need to install gcc-4.6.3 or later to
overcome this problem. when i went to install gcc-4.6.3, i end up with this error :-
Code:
configure: error: in `/software/gcc/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
as i mentioned in earlier post.
and i m here. Please tell me how to overcome this.
|
|
|
06-11-2014, 01:20 PM
|
#8
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
what is stopping you from upgrading to CentOS 6.5
i have sl6.5 running on a 13 year old DELL that had xp ( NO service pack) preinstalled from 2001
with just a minor hack of the OS to run the Nvidia gforce 2 mx 400 card
that would be the first step
CentOS 6.4 is unsupported
as to getting QT 5 running on 6.5 or 6.4
that might take about a month to build all the prerequisite
think of building "linux from scratch" but on a OS that is not supported
|
|
|
06-15-2014, 01:21 PM
|
#9
|
Member
Registered: Aug 2010
Posts: 139
Original Poster
Rep:
|
I upgraded centos 6.4 to centos 6.5 using yum command. but still having same problem
Code:
configure: error: in `/software/gcc/objdir/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
so finally i concentrated in solving qt5.2.0 run problem. this is having follwing problem :-
Code:
[rahul@kaljayi bin]# ./qtcreator
Qt: Session management error: None of the authentication
protocols specified are supported
(<unknown>:27276): Gtk-WARNING **: Attempt to load unknown
IM context type 'gtk-im-context-none'
Failed to load core:
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load
library
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so:
(/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/../.././libQt5CLucene.so.5))
i given following command to locate files
Code:
[root@kaljayi Qt Required]# locate /usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.13
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.13-gdb.py
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.13-gdb.pyc
/usr/share/gdb/auto-load/usr/lib64/libstdc++.so.6.0.13-gdb.pyo
[root@kaljayi Qt Required]# ll /usr/lib64/libstdc++.so.6
lrwxrwxrwx. 1 root root 19 Jun 15 22:49 /usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.13
[root@kaljayi Qt Required]# locate libCore.so
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so
[root@kaljayi Qt Required]#
becuse there is soft link
Code:
/usr/lib64/libstdc++.so.6 -> libstdc++.so.6.0.13
so it must be loaded but
qt is not doing that. What is the problem?
|
|
|
06-15-2014, 04:46 PM
|
#10
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,688
|
Quote:
real thing is that- i want to install Qt5.2.1 on my centos
|
and from this you ? somehow installed something ?
Quote:
[rahul@kaljayi bin]# ./qtcreator
Qt: Session management error: None of the authentication
protocols specified are supported
(<unknown>:27276): Gtk-WARNING **: Attempt to load unknown
IM context type 'gtk-im-context-none'
Failed to load core:
/opt/Qt5.3.0/Tools/QtCreator/lib/qtcreator/plugins/QtProject/libCore.so: Cannot load
library
|
how ?
on my SL 6.5 install qt5 is in the epel repo
Code:
yum info qt5-qtbase
Loaded plugins: priorities, refresh-packagekit, security
Repository sl is listed more than once in the configuration
Repository sl-security is listed more than once in the configuration
Repository sl-source is listed more than once in the configuration
116 packages excluded due to repository priority protections
Available Packages
Name : qt5-qtbase
Arch : i686
Version : 5.2.1
Release : 8.el6
Size : 3.1 M
Repo : epel
Summary : Qt5 - QtBase components
URL : http://qt-project.org/
License : LGPLv2 with exceptions or GPLv3 with exceptions
Description : Qt is a software toolkit for developing applications.
:
: This package contains base tools, like string, xml, and network
: handling.
so installing qt5 should be as easy as using yum once epel repo is installed and "yum-priorities" plugin is installed and CONFIGURED!!!
Code:
su -
yum install qt5-qtbase qt5-qtbase-devel qt5-qttools
|
|
|
06-20-2014, 05:03 AM
|
#11
|
Member
Registered: Aug 2010
Posts: 139
Original Poster
Rep:
|
hanx to reply, finally i resolved this problem by using these commands :-
Code:
yum -y install glibc-devel.i686 glibc-devel
download
Code:
gcc-4.8.3 from : http://ftp.gnu.org/gnu/gcc/gcc-4.8.3/gcc-4.8.3.tar.gz
Go to Terminal as root
Code:
tar xzf gcc-4.8.3.tar.gz
cd gcc-4.8.3
./contrib/download_prerequisites
cd ..
mkdir objdir
cd objdir
$PWD/../gcc-4.8.3/configure –prefix=/opt/gcc-4.8.3
make
make install
mv /usr/lib64/libstdc++.so.6 /usr/lib64/libstdc++.so.6.backup
cp /opt/gcc-4.8.3/lib64/libstdc++.so.6 /usr/lib64
cp /opt/gcc-4.8.3/lib64/libstdc++.so.6.0.16 /usr/lib64
and now Qt5.3.0 is running. thanx to all of you to reply.
|
|
|
All times are GMT -5. The time now is 12:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|