This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: I have installed the GLIBCXX_3.4.21 but it always reports libstdc++.so.6(GLIBCXX_3.4.21)(64bit) is needed during the RPM install


Yes, after I use the devtoolset-7-gcc-c++, the error is still reported. 

Now I download the libstdc++5.1.0 rpm package web: libstdc++-5.1.0-1.el7.x86_64.rpm
In Centos 7.5(The default libstdc++ package is libstdc++-4.8.5-28.el7_5.1.x86_64), I overwrite the default libstdc++ library, whether it's OK or have some potential issue? Thanks!

# rpm -ivh libstdc++-5.1.0-1.el7.x86_64.rpm 
Preparing...                          ################################# [100%]
        file /usr/lib64/libstdc++.so.6 from install of libstdc++-5.1.0-1.el7.x86_64 conflicts with file from package libstdc++-4.8.5-28.el7_5.1.x86_64  
# rpm -ivh libstdc++-5.1.0-1.el7.x86_64.rpm --force
Preparing...                          ################################# [100%]
Updating / installing...
   1:libstdc++-5.1.0-1.el7            ################################# [100%]


Now
Thanks
Darcy

-----Original Message-----
From: Ling, Darcy (NSB - CN/Qingdao) 
Sent: Wednesday, October 10, 2018 10:42 PM
To: 'Jonathan Wakely' <jwakely.gcc@gmail.com>
Cc: xry111@mengyan1223.wang; gcc-help <gcc-help@gcc.gnu.org>
Subject: RE: I have installed the GLIBCXX_3.4.21 but it always reports libstdc++.so.6(GLIBCXX_3.4.21)(64bit) is needed during the RPM install

Thanks very much for the response!

Now I'm working on an open source project which needs the gcc version > 4.9 on Centos7.5, I need to make RPM package for the open source project.
When I install the RPM package, it always reports error " libstdc++.so.6(GLIBCXX_3.4.21)(64bit) is needed ", I think only I install the gcc>4.9 with yum-packaged way, the error can be removed.

Thanks
Darcy

-----Original Message-----
From: Jonathan Wakely <jwakely.gcc@gmail.com> 
Sent: Wednesday, October 10, 2018 9:55 PM
To: Ling, Darcy (NSB - CN/Qingdao) <darcy.ling@nokia-sbell.com>
Cc: xry111@mengyan1223.wang; gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: I have installed the GLIBCXX_3.4.21 but it always reports libstdc++.so.6(GLIBCXX_3.4.21)(64bit) is needed during the RPM install

On Wed, 10 Oct 2018 at 14:05, Ling, Darcy (NSB - CN/Qingdao) <darcy.ling@nokia-sbell.com> wrote:
>
> Thanks very much for the response!
> Yes, the libstdc++.so.6.0.22 is not installed by rpm, when upgrade the gcc from 4.8.5 to 6.2.0, I use `make, make install` to upgrade the new version.

Then you've caused this problem by trying to mix self-installed software and RPM-packaged software (that presumably isn't from CentOS but some other, incompatible repository).

> Whether there is way to install gcc > 4.9 for Centos 7.5?

You can install devtoolset-7-gcc-c++ from the Software Collections, but that won't provide a new libstdc++.so and so won't satisfy the dependency either.

Why are you trying to install non-CentOS RPMs on CentOS?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]