How to update glibc to 2.14 in CentOS 6.5
I want to install Android NDK on my CentOS 6.5 machine. But when I ran the program, it says it needs glibc 2.14 to be able to run. My CentOS 6.5 only has Glibc 2.12 installed. So I tried to update glibc by:
$ sudo yum update glibc
But after that I found the glibc version is still 2.12, not 2.14.
$ ldd --version
ldd (GNU libc) 2.12
I think glibc 2.14 may not be available on CentOS repositories. So how can I update it to glibc 2.14 on CentOS 6.5?
centos upgrade glibc
add a comment |
I want to install Android NDK on my CentOS 6.5 machine. But when I ran the program, it says it needs glibc 2.14 to be able to run. My CentOS 6.5 only has Glibc 2.12 installed. So I tried to update glibc by:
$ sudo yum update glibc
But after that I found the glibc version is still 2.12, not 2.14.
$ ldd --version
ldd (GNU libc) 2.12
I think glibc 2.14 may not be available on CentOS repositories. So how can I update it to glibc 2.14 on CentOS 6.5?
centos upgrade glibc
2
It's easier to upgrade to CentOS7 which contains GLibC 2.14 than it is to upgrade GLibC from 2.12 to 2.14. See Skype Call Recorder
– eyoung100
Dec 29 '14 at 20:34
@eyoung100 I still need CentOS 6.5 rather than 7. Is there an easy way to upgrade Glibc to 2.14? Thx!
– tonga
Dec 29 '14 at 20:45
3
No, see one of my other answers for why.
– eyoung100
Dec 29 '14 at 20:51
Based on your answers, it seems that the best solution will be either upgrading to CentOS 7 or using an older version of NDK which requires glibc 2.12. Thanks for your comments.
– tonga
Dec 29 '14 at 21:01
1
You could also install a CentOS7 chroot to run the NDK in.
– derobert
Dec 29 '14 at 21:23
add a comment |
I want to install Android NDK on my CentOS 6.5 machine. But when I ran the program, it says it needs glibc 2.14 to be able to run. My CentOS 6.5 only has Glibc 2.12 installed. So I tried to update glibc by:
$ sudo yum update glibc
But after that I found the glibc version is still 2.12, not 2.14.
$ ldd --version
ldd (GNU libc) 2.12
I think glibc 2.14 may not be available on CentOS repositories. So how can I update it to glibc 2.14 on CentOS 6.5?
centos upgrade glibc
I want to install Android NDK on my CentOS 6.5 machine. But when I ran the program, it says it needs glibc 2.14 to be able to run. My CentOS 6.5 only has Glibc 2.12 installed. So I tried to update glibc by:
$ sudo yum update glibc
But after that I found the glibc version is still 2.12, not 2.14.
$ ldd --version
ldd (GNU libc) 2.12
I think glibc 2.14 may not be available on CentOS repositories. So how can I update it to glibc 2.14 on CentOS 6.5?
centos upgrade glibc
centos upgrade glibc
asked Dec 29 '14 at 20:20
tongatonga
326156
326156
2
It's easier to upgrade to CentOS7 which contains GLibC 2.14 than it is to upgrade GLibC from 2.12 to 2.14. See Skype Call Recorder
– eyoung100
Dec 29 '14 at 20:34
@eyoung100 I still need CentOS 6.5 rather than 7. Is there an easy way to upgrade Glibc to 2.14? Thx!
– tonga
Dec 29 '14 at 20:45
3
No, see one of my other answers for why.
– eyoung100
Dec 29 '14 at 20:51
Based on your answers, it seems that the best solution will be either upgrading to CentOS 7 or using an older version of NDK which requires glibc 2.12. Thanks for your comments.
– tonga
Dec 29 '14 at 21:01
1
You could also install a CentOS7 chroot to run the NDK in.
– derobert
Dec 29 '14 at 21:23
add a comment |
2
It's easier to upgrade to CentOS7 which contains GLibC 2.14 than it is to upgrade GLibC from 2.12 to 2.14. See Skype Call Recorder
– eyoung100
Dec 29 '14 at 20:34
@eyoung100 I still need CentOS 6.5 rather than 7. Is there an easy way to upgrade Glibc to 2.14? Thx!
– tonga
Dec 29 '14 at 20:45
3
No, see one of my other answers for why.
– eyoung100
Dec 29 '14 at 20:51
Based on your answers, it seems that the best solution will be either upgrading to CentOS 7 or using an older version of NDK which requires glibc 2.12. Thanks for your comments.
– tonga
Dec 29 '14 at 21:01
1
You could also install a CentOS7 chroot to run the NDK in.
– derobert
Dec 29 '14 at 21:23
2
2
It's easier to upgrade to CentOS7 which contains GLibC 2.14 than it is to upgrade GLibC from 2.12 to 2.14. See Skype Call Recorder
– eyoung100
Dec 29 '14 at 20:34
It's easier to upgrade to CentOS7 which contains GLibC 2.14 than it is to upgrade GLibC from 2.12 to 2.14. See Skype Call Recorder
– eyoung100
Dec 29 '14 at 20:34
@eyoung100 I still need CentOS 6.5 rather than 7. Is there an easy way to upgrade Glibc to 2.14? Thx!
– tonga
Dec 29 '14 at 20:45
@eyoung100 I still need CentOS 6.5 rather than 7. Is there an easy way to upgrade Glibc to 2.14? Thx!
– tonga
Dec 29 '14 at 20:45
3
3
No, see one of my other answers for why.
– eyoung100
Dec 29 '14 at 20:51
No, see one of my other answers for why.
– eyoung100
Dec 29 '14 at 20:51
Based on your answers, it seems that the best solution will be either upgrading to CentOS 7 or using an older version of NDK which requires glibc 2.12. Thanks for your comments.
– tonga
Dec 29 '14 at 21:01
Based on your answers, it seems that the best solution will be either upgrading to CentOS 7 or using an older version of NDK which requires glibc 2.12. Thanks for your comments.
– tonga
Dec 29 '14 at 21:01
1
1
You could also install a CentOS7 chroot to run the NDK in.
– derobert
Dec 29 '14 at 21:23
You could also install a CentOS7 chroot to run the NDK in.
– derobert
Dec 29 '14 at 21:23
add a comment |
3 Answers
3
active
oldest
votes
You cannot update glibc
on Centos 6
safely. However you can install 2.14
alongside 2.12
easily, then use it to compile projects etc. Here is how:
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
2
Want to mention, that builing process takes 2.5 hours on slow AWS. Maybe useful for someone the next info: instruction above fixespsycopg2
issueImportError: /lib/libc.so.6: version 'GLIBC_2.14'
(I use Centos 6.5 and PostgreSQL v 9.6)
– TitanFighter
Nov 8 '16 at 2:54
1
Brilliant answer! I followed this answer exactly and it worked like a charm. Thank you
– thonnor
Sep 21 '17 at 15:28
1
Can also be used for later versions; simply change "2.14" to "2.23" or whatever version you need, as highlighted by things like:/usr/local/lib/somlelib.so: undefined reference to 'somefunction@GLIBC_2.23'
(the last few digits are the version). To make the compile faster, use make -j8 if you have 8 threads on your cpu etc. Mine completed in few minutes.
– Roel
Feb 19 '18 at 9:09
I'm left withrelocation error: libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
after the export phase (when trying any command). Can anyone help? @Roel
– belka
Mar 24 '18 at 7:00
add a comment |
To install glibc 2.14 in parallel, add the configure prefix:
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
make install
Following this process, you'll be able to build 2.14 but you will need to tell the compiler where to look for glibc.
Below are the ways you can expose the glibc to your program.
LD_LIBRARY_PATH=/opt/glibc-2.14/lib
export LD_LIBRARY_PATH.
The library is exposed during your current login session.
You can permanently link your new glibc version like so, but please read the WARNING below:
ln -sf /opt/glibc-2.14/glibc-2.14.so /lib/libc.so.6.
Since libc.so.6 is just a symbolic link. Executing the above command will make the link point towards the new glibc library. However this step is not recommended since there are many programs in Linux which depend on older versions and will stop working.
add a comment |
Common alternative technique. Installing GLIBC 2.14 in parallel (Intall it to the /opt directory) Then it is available to the programs which require it without breaking your core OS.
6
How would you do this? Download an rpm and ?
– rncrtr
Jun 22 '15 at 19:58
add a comment |
protected by Community♦ Jan 31 '17 at 8:49
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You cannot update glibc
on Centos 6
safely. However you can install 2.14
alongside 2.12
easily, then use it to compile projects etc. Here is how:
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
2
Want to mention, that builing process takes 2.5 hours on slow AWS. Maybe useful for someone the next info: instruction above fixespsycopg2
issueImportError: /lib/libc.so.6: version 'GLIBC_2.14'
(I use Centos 6.5 and PostgreSQL v 9.6)
– TitanFighter
Nov 8 '16 at 2:54
1
Brilliant answer! I followed this answer exactly and it worked like a charm. Thank you
– thonnor
Sep 21 '17 at 15:28
1
Can also be used for later versions; simply change "2.14" to "2.23" or whatever version you need, as highlighted by things like:/usr/local/lib/somlelib.so: undefined reference to 'somefunction@GLIBC_2.23'
(the last few digits are the version). To make the compile faster, use make -j8 if you have 8 threads on your cpu etc. Mine completed in few minutes.
– Roel
Feb 19 '18 at 9:09
I'm left withrelocation error: libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
after the export phase (when trying any command). Can anyone help? @Roel
– belka
Mar 24 '18 at 7:00
add a comment |
You cannot update glibc
on Centos 6
safely. However you can install 2.14
alongside 2.12
easily, then use it to compile projects etc. Here is how:
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
2
Want to mention, that builing process takes 2.5 hours on slow AWS. Maybe useful for someone the next info: instruction above fixespsycopg2
issueImportError: /lib/libc.so.6: version 'GLIBC_2.14'
(I use Centos 6.5 and PostgreSQL v 9.6)
– TitanFighter
Nov 8 '16 at 2:54
1
Brilliant answer! I followed this answer exactly and it worked like a charm. Thank you
– thonnor
Sep 21 '17 at 15:28
1
Can also be used for later versions; simply change "2.14" to "2.23" or whatever version you need, as highlighted by things like:/usr/local/lib/somlelib.so: undefined reference to 'somefunction@GLIBC_2.23'
(the last few digits are the version). To make the compile faster, use make -j8 if you have 8 threads on your cpu etc. Mine completed in few minutes.
– Roel
Feb 19 '18 at 9:09
I'm left withrelocation error: libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
after the export phase (when trying any command). Can anyone help? @Roel
– belka
Mar 24 '18 at 7:00
add a comment |
You cannot update glibc
on Centos 6
safely. However you can install 2.14
alongside 2.12
easily, then use it to compile projects etc. Here is how:
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
You cannot update glibc
on Centos 6
safely. However you can install 2.14
alongside 2.12
easily, then use it to compile projects etc. Here is how:
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib
edited Aug 1 '16 at 17:25
Gravy
1,363521
1,363521
answered Aug 1 '16 at 17:13
UnitasBrooksUnitasBrooks
65247
65247
2
Want to mention, that builing process takes 2.5 hours on slow AWS. Maybe useful for someone the next info: instruction above fixespsycopg2
issueImportError: /lib/libc.so.6: version 'GLIBC_2.14'
(I use Centos 6.5 and PostgreSQL v 9.6)
– TitanFighter
Nov 8 '16 at 2:54
1
Brilliant answer! I followed this answer exactly and it worked like a charm. Thank you
– thonnor
Sep 21 '17 at 15:28
1
Can also be used for later versions; simply change "2.14" to "2.23" or whatever version you need, as highlighted by things like:/usr/local/lib/somlelib.so: undefined reference to 'somefunction@GLIBC_2.23'
(the last few digits are the version). To make the compile faster, use make -j8 if you have 8 threads on your cpu etc. Mine completed in few minutes.
– Roel
Feb 19 '18 at 9:09
I'm left withrelocation error: libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
after the export phase (when trying any command). Can anyone help? @Roel
– belka
Mar 24 '18 at 7:00
add a comment |
2
Want to mention, that builing process takes 2.5 hours on slow AWS. Maybe useful for someone the next info: instruction above fixespsycopg2
issueImportError: /lib/libc.so.6: version 'GLIBC_2.14'
(I use Centos 6.5 and PostgreSQL v 9.6)
– TitanFighter
Nov 8 '16 at 2:54
1
Brilliant answer! I followed this answer exactly and it worked like a charm. Thank you
– thonnor
Sep 21 '17 at 15:28
1
Can also be used for later versions; simply change "2.14" to "2.23" or whatever version you need, as highlighted by things like:/usr/local/lib/somlelib.so: undefined reference to 'somefunction@GLIBC_2.23'
(the last few digits are the version). To make the compile faster, use make -j8 if you have 8 threads on your cpu etc. Mine completed in few minutes.
– Roel
Feb 19 '18 at 9:09
I'm left withrelocation error: libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
after the export phase (when trying any command). Can anyone help? @Roel
– belka
Mar 24 '18 at 7:00
2
2
Want to mention, that builing process takes 2.5 hours on slow AWS. Maybe useful for someone the next info: instruction above fixes
psycopg2
issue ImportError: /lib/libc.so.6: version 'GLIBC_2.14'
(I use Centos 6.5 and PostgreSQL v 9.6)– TitanFighter
Nov 8 '16 at 2:54
Want to mention, that builing process takes 2.5 hours on slow AWS. Maybe useful for someone the next info: instruction above fixes
psycopg2
issue ImportError: /lib/libc.so.6: version 'GLIBC_2.14'
(I use Centos 6.5 and PostgreSQL v 9.6)– TitanFighter
Nov 8 '16 at 2:54
1
1
Brilliant answer! I followed this answer exactly and it worked like a charm. Thank you
– thonnor
Sep 21 '17 at 15:28
Brilliant answer! I followed this answer exactly and it worked like a charm. Thank you
– thonnor
Sep 21 '17 at 15:28
1
1
Can also be used for later versions; simply change "2.14" to "2.23" or whatever version you need, as highlighted by things like:
/usr/local/lib/somlelib.so: undefined reference to 'somefunction@GLIBC_2.23'
(the last few digits are the version). To make the compile faster, use make -j8 if you have 8 threads on your cpu etc. Mine completed in few minutes.– Roel
Feb 19 '18 at 9:09
Can also be used for later versions; simply change "2.14" to "2.23" or whatever version you need, as highlighted by things like:
/usr/local/lib/somlelib.so: undefined reference to 'somefunction@GLIBC_2.23'
(the last few digits are the version). To make the compile faster, use make -j8 if you have 8 threads on your cpu etc. Mine completed in few minutes.– Roel
Feb 19 '18 at 9:09
I'm left with
relocation error: libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
after the export phase (when trying any command). Can anyone help? @Roel– belka
Mar 24 '18 at 7:00
I'm left with
relocation error: libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
after the export phase (when trying any command). Can anyone help? @Roel– belka
Mar 24 '18 at 7:00
add a comment |
To install glibc 2.14 in parallel, add the configure prefix:
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
make install
Following this process, you'll be able to build 2.14 but you will need to tell the compiler where to look for glibc.
Below are the ways you can expose the glibc to your program.
LD_LIBRARY_PATH=/opt/glibc-2.14/lib
export LD_LIBRARY_PATH.
The library is exposed during your current login session.
You can permanently link your new glibc version like so, but please read the WARNING below:
ln -sf /opt/glibc-2.14/glibc-2.14.so /lib/libc.so.6.
Since libc.so.6 is just a symbolic link. Executing the above command will make the link point towards the new glibc library. However this step is not recommended since there are many programs in Linux which depend on older versions and will stop working.
add a comment |
To install glibc 2.14 in parallel, add the configure prefix:
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
make install
Following this process, you'll be able to build 2.14 but you will need to tell the compiler where to look for glibc.
Below are the ways you can expose the glibc to your program.
LD_LIBRARY_PATH=/opt/glibc-2.14/lib
export LD_LIBRARY_PATH.
The library is exposed during your current login session.
You can permanently link your new glibc version like so, but please read the WARNING below:
ln -sf /opt/glibc-2.14/glibc-2.14.so /lib/libc.so.6.
Since libc.so.6 is just a symbolic link. Executing the above command will make the link point towards the new glibc library. However this step is not recommended since there are many programs in Linux which depend on older versions and will stop working.
add a comment |
To install glibc 2.14 in parallel, add the configure prefix:
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
make install
Following this process, you'll be able to build 2.14 but you will need to tell the compiler where to look for glibc.
Below are the ways you can expose the glibc to your program.
LD_LIBRARY_PATH=/opt/glibc-2.14/lib
export LD_LIBRARY_PATH.
The library is exposed during your current login session.
You can permanently link your new glibc version like so, but please read the WARNING below:
ln -sf /opt/glibc-2.14/glibc-2.14.so /lib/libc.so.6.
Since libc.so.6 is just a symbolic link. Executing the above command will make the link point towards the new glibc library. However this step is not recommended since there are many programs in Linux which depend on older versions and will stop working.
To install glibc 2.14 in parallel, add the configure prefix:
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
make install
Following this process, you'll be able to build 2.14 but you will need to tell the compiler where to look for glibc.
Below are the ways you can expose the glibc to your program.
LD_LIBRARY_PATH=/opt/glibc-2.14/lib
export LD_LIBRARY_PATH.
The library is exposed during your current login session.
You can permanently link your new glibc version like so, but please read the WARNING below:
ln -sf /opt/glibc-2.14/glibc-2.14.so /lib/libc.so.6.
Since libc.so.6 is just a symbolic link. Executing the above command will make the link point towards the new glibc library. However this step is not recommended since there are many programs in Linux which depend on older versions and will stop working.
edited Feb 10 at 0:49
UnitasBrooks
65247
65247
answered Nov 9 '16 at 14:14
mikelmikel
5114
5114
add a comment |
add a comment |
Common alternative technique. Installing GLIBC 2.14 in parallel (Intall it to the /opt directory) Then it is available to the programs which require it without breaking your core OS.
6
How would you do this? Download an rpm and ?
– rncrtr
Jun 22 '15 at 19:58
add a comment |
Common alternative technique. Installing GLIBC 2.14 in parallel (Intall it to the /opt directory) Then it is available to the programs which require it without breaking your core OS.
6
How would you do this? Download an rpm and ?
– rncrtr
Jun 22 '15 at 19:58
add a comment |
Common alternative technique. Installing GLIBC 2.14 in parallel (Intall it to the /opt directory) Then it is available to the programs which require it without breaking your core OS.
Common alternative technique. Installing GLIBC 2.14 in parallel (Intall it to the /opt directory) Then it is available to the programs which require it without breaking your core OS.
answered Feb 25 '15 at 16:53
BrokenSyntaxBrokenSyntax
292
292
6
How would you do this? Download an rpm and ?
– rncrtr
Jun 22 '15 at 19:58
add a comment |
6
How would you do this? Download an rpm and ?
– rncrtr
Jun 22 '15 at 19:58
6
6
How would you do this? Download an rpm and ?
– rncrtr
Jun 22 '15 at 19:58
How would you do this? Download an rpm and ?
– rncrtr
Jun 22 '15 at 19:58
add a comment |
protected by Community♦ Jan 31 '17 at 8:49
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
2
It's easier to upgrade to CentOS7 which contains GLibC 2.14 than it is to upgrade GLibC from 2.12 to 2.14. See Skype Call Recorder
– eyoung100
Dec 29 '14 at 20:34
@eyoung100 I still need CentOS 6.5 rather than 7. Is there an easy way to upgrade Glibc to 2.14? Thx!
– tonga
Dec 29 '14 at 20:45
3
No, see one of my other answers for why.
– eyoung100
Dec 29 '14 at 20:51
Based on your answers, it seems that the best solution will be either upgrading to CentOS 7 or using an older version of NDK which requires glibc 2.12. Thanks for your comments.
– tonga
Dec 29 '14 at 21:01
1
You could also install a CentOS7 chroot to run the NDK in.
– derobert
Dec 29 '14 at 21:23