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;
}
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
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.
add a comment |
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
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.
add a comment |
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
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
linux centos gcc glibc
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.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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).
What do you meanallow 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 likepatchelfto 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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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).
What do you meanallow 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 likepatchelfto 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
add a comment |
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).
What do you meanallow 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 likepatchelfto 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
add a comment |
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).
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).
answered Feb 10 '18 at 15:13
thrigthrig
25.5k23559
25.5k23559
What do you meanallow 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 likepatchelfto 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
add a comment |
What do you meanallow 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 likepatchelfto 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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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