GLIBCXX_3.4.21 in CentOShttpd-devel requires outdated version of glibc-common on CentOS 6.3How to update...

Early arrival in Australia, early hotel check in not available

Can the sorting of a list be verified without comparing neighbors?

Can 'sudo apt-get remove [write]' destroy my Ubuntu?

What is Plautus’s pun about frustum and frustrum?

Reaction of borax with NaOH

As programers say: Strive to be lazy

How do I compare the result of "1d20+x, with advantage" to "1d20+y, without advantage", assuming x < y?

What is the significance of 4200 BCE in context of farming replacing foraging in Europe?

Smallest Guaranteed hash collision cycle length

Speculative Biology of a Haplodiploid Humanoid Species

Ex-manager wants to stay in touch, I don't want to

Understanding integration over Orthogonal Group

Why do Thanos's punches not kill Captain America or at least cause some mortal injuries?

How can dragons propel their breath attacks to a long distance

Why in a Ethernet LAN, a packet sniffer can obtain all packets sent over the LAN?

51% attack - apparently very easy? refering to CZ's "rollback btc chain" - How to make sure such corruptible scenario can never happen so easily?

Is it a bad idea to replace pull-up resistors with hard pull-ups?

How can Thor be worthy?

Can I see all locations that a DMG file install files to?

How does noise-cancellation work in Mac laptops?

Size of a folder with du

How does Howard Stark know this?

How to select certain lines (n, n+4, n+8, n+12...) from the file?

How can a Lich look like a human without magic?



GLIBCXX_3.4.21 in CentOS


httpd-devel requires outdated version of glibc-common on CentOS 6.3How to update glibc to 2.14 in CentOS 6.5Locally-installing glibc-2.23 causes all programs to segfaultCan't update OpenSSL on Centos 6.4Regarding linux packageerror installing samba CentOsInstalling Tensorflow on CentOS 6.9 (GCC, GLIBC, and binutils problem)Can’t sshfs from CentOSGLIBCXX_3.4.20 not foundbuilding glibc 2.16 from source throws error






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I have created c++ application in Ubuntu machine. I have copied binary to Centos machine. Got error:



/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found


I have installed packages I thought was needed:



yum install gcc gcc-c++ make openssl-devel


Still got the same error.



Then I have installed whole development tools:



yum groupinstall 'Development Tools'


Still have the same error. How to solve this problem?



UPD



I decided to check which versions of glibc I have in my machines with help of ldd --version command:



Ubuntu: 2.23
Centos6.9: 2.12


Why CentOS cmplains regarding GLIBCXX_3.4.21, while Ubuntu owns glibc version 2.23?










share|improve this question
















bumped to the homepage by Community 27 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















    1















    I have created c++ application in Ubuntu machine. I have copied binary to Centos machine. Got error:



    /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found


    I have installed packages I thought was needed:



    yum install gcc gcc-c++ make openssl-devel


    Still got the same error.



    Then I have installed whole development tools:



    yum groupinstall 'Development Tools'


    Still have the same error. How to solve this problem?



    UPD



    I decided to check which versions of glibc I have in my machines with help of ldd --version command:



    Ubuntu: 2.23
    Centos6.9: 2.12


    Why CentOS cmplains regarding GLIBCXX_3.4.21, while Ubuntu owns glibc version 2.23?










    share|improve this question
















    bumped to the homepage by Community 27 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I have created c++ application in Ubuntu machine. I have copied binary to Centos machine. Got error:



      /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found


      I have installed packages I thought was needed:



      yum install gcc gcc-c++ make openssl-devel


      Still got the same error.



      Then I have installed whole development tools:



      yum groupinstall 'Development Tools'


      Still have the same error. How to solve this problem?



      UPD



      I decided to check which versions of glibc I have in my machines with help of ldd --version command:



      Ubuntu: 2.23
      Centos6.9: 2.12


      Why CentOS cmplains regarding GLIBCXX_3.4.21, while Ubuntu owns glibc version 2.23?










      share|improve this question
















      I have created c++ application in Ubuntu machine. I have copied binary to Centos machine. Got error:



      /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found


      I have installed packages I thought was needed:



      yum install gcc gcc-c++ make openssl-devel


      Still got the same error.



      Then I have installed whole development tools:



      yum groupinstall 'Development Tools'


      Still have the same error. How to solve this problem?



      UPD



      I decided to check which versions of glibc I have in my machines with help of ldd --version command:



      Ubuntu: 2.23
      Centos6.9: 2.12


      Why CentOS cmplains regarding GLIBCXX_3.4.21, while Ubuntu owns glibc version 2.23?







      linux centos gcc glibc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 11 '18 at 12:02







      vico

















      asked Feb 10 '18 at 11:27









      vicovico

      279818




      279818





      bumped to the homepage by Community 27 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 27 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Does not exist (on a Centos 7 system with also the EPEL repository enabled)



          $ sudo yum whatprovides '*libstdc++*' | egrep -o '3.4.[0-9]+' | sort -u
          ...


          so you'll need to find a repository that does provide it, or compile the appropriate version of the library yourself and possibly patchelf up your binary to use that appropriate version of the library. Or, allow for 3.4.19 as that's the highest number the above command presents for me (for Centos 7; Centos 6 or older will doubtless have lower numbers available).






          share|improve this answer
























          • What do you mean allow for 3.4.19? How to do that? I have updated my question body with new version number misunderstanding.

            – vico
            Feb 11 '18 at 12:05











          • Different linux are different. You can either compile for each one, or try to compile something more portable, or try to use something like patchelf to fiddle around with the libraries. Or you can ship all the libraries your binary needs with the binary, or you can try to build RPM for the glibc that Ubutu has (without breaking what RedHat ships, hopefully) ...

            – thrig
            Feb 11 '18 at 15:52












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f423203%2fglibcxx-3-4-21-in-centos%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Does not exist (on a Centos 7 system with also the EPEL repository enabled)



          $ sudo yum whatprovides '*libstdc++*' | egrep -o '3.4.[0-9]+' | sort -u
          ...


          so you'll need to find a repository that does provide it, or compile the appropriate version of the library yourself and possibly patchelf up your binary to use that appropriate version of the library. Or, allow for 3.4.19 as that's the highest number the above command presents for me (for Centos 7; Centos 6 or older will doubtless have lower numbers available).






          share|improve this answer
























          • What do you mean allow for 3.4.19? How to do that? I have updated my question body with new version number misunderstanding.

            – vico
            Feb 11 '18 at 12:05











          • Different linux are different. You can either compile for each one, or try to compile something more portable, or try to use something like patchelf to fiddle around with the libraries. Or you can ship all the libraries your binary needs with the binary, or you can try to build RPM for the glibc that Ubutu has (without breaking what RedHat ships, hopefully) ...

            – thrig
            Feb 11 '18 at 15:52
















          0














          Does not exist (on a Centos 7 system with also the EPEL repository enabled)



          $ sudo yum whatprovides '*libstdc++*' | egrep -o '3.4.[0-9]+' | sort -u
          ...


          so you'll need to find a repository that does provide it, or compile the appropriate version of the library yourself and possibly patchelf up your binary to use that appropriate version of the library. Or, allow for 3.4.19 as that's the highest number the above command presents for me (for Centos 7; Centos 6 or older will doubtless have lower numbers available).






          share|improve this answer
























          • What do you mean allow for 3.4.19? How to do that? I have updated my question body with new version number misunderstanding.

            – vico
            Feb 11 '18 at 12:05











          • Different linux are different. You can either compile for each one, or try to compile something more portable, or try to use something like patchelf to fiddle around with the libraries. Or you can ship all the libraries your binary needs with the binary, or you can try to build RPM for the glibc that Ubutu has (without breaking what RedHat ships, hopefully) ...

            – thrig
            Feb 11 '18 at 15:52














          0












          0








          0







          Does not exist (on a Centos 7 system with also the EPEL repository enabled)



          $ sudo yum whatprovides '*libstdc++*' | egrep -o '3.4.[0-9]+' | sort -u
          ...


          so you'll need to find a repository that does provide it, or compile the appropriate version of the library yourself and possibly patchelf up your binary to use that appropriate version of the library. Or, allow for 3.4.19 as that's the highest number the above command presents for me (for Centos 7; Centos 6 or older will doubtless have lower numbers available).






          share|improve this answer













          Does not exist (on a Centos 7 system with also the EPEL repository enabled)



          $ sudo yum whatprovides '*libstdc++*' | egrep -o '3.4.[0-9]+' | sort -u
          ...


          so you'll need to find a repository that does provide it, or compile the appropriate version of the library yourself and possibly patchelf up your binary to use that appropriate version of the library. Or, allow for 3.4.19 as that's the highest number the above command presents for me (for Centos 7; Centos 6 or older will doubtless have lower numbers available).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 10 '18 at 15:13









          thrigthrig

          25.5k23559




          25.5k23559













          • What do you mean allow for 3.4.19? How to do that? I have updated my question body with new version number misunderstanding.

            – vico
            Feb 11 '18 at 12:05











          • Different linux are different. You can either compile for each one, or try to compile something more portable, or try to use something like patchelf to fiddle around with the libraries. Or you can ship all the libraries your binary needs with the binary, or you can try to build RPM for the glibc that Ubutu has (without breaking what RedHat ships, hopefully) ...

            – thrig
            Feb 11 '18 at 15:52



















          • What do you mean allow for 3.4.19? How to do that? I have updated my question body with new version number misunderstanding.

            – vico
            Feb 11 '18 at 12:05











          • Different linux are different. You can either compile for each one, or try to compile something more portable, or try to use something like patchelf to fiddle around with the libraries. Or you can ship all the libraries your binary needs with the binary, or you can try to build RPM for the glibc that Ubutu has (without breaking what RedHat ships, hopefully) ...

            – thrig
            Feb 11 '18 at 15:52

















          What do you mean allow for 3.4.19? How to do that? I have updated my question body with new version number misunderstanding.

          – vico
          Feb 11 '18 at 12:05





          What do you mean allow for 3.4.19? How to do that? I have updated my question body with new version number misunderstanding.

          – vico
          Feb 11 '18 at 12:05













          Different linux are different. You can either compile for each one, or try to compile something more portable, or try to use something like patchelf to fiddle around with the libraries. Or you can ship all the libraries your binary needs with the binary, or you can try to build RPM for the glibc that Ubutu has (without breaking what RedHat ships, hopefully) ...

          – thrig
          Feb 11 '18 at 15:52





          Different linux are different. You can either compile for each one, or try to compile something more portable, or try to use something like patchelf to fiddle around with the libraries. Or you can ship all the libraries your binary needs with the binary, or you can try to build RPM for the glibc that Ubutu has (without breaking what RedHat ships, hopefully) ...

          – thrig
          Feb 11 '18 at 15:52


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f423203%2fglibcxx-3-4-21-in-centos%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

          The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

          Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...