help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libstdc++.so.6: version 'glibcxx_3.4.32' not found


From: kitsune03k
Subject: libstdc++.so.6: version 'glibcxx_3.4.32' not found
Date: Sat, 6 Apr 2024 11:19:55 +0900

Hello! Appreciate for using strong tools with freedom.

To be short - 1. installed gcc 13.2 in /usr/local, installed glibc in /usr/local, and saw warning as title.


I'm making a bash shell script that install latest gcc in one click(that's not given by slow updated distro's repo).
Environment is ubuntu 18.04.6 lts, all packages updated in today(06/04/2024).

Script is too long to attach, so here's original link:

Full configuration options are:
--prefix=/usr/local --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --libdir=/usr/local/lib --libexecdir=/usr/local/libexec 
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-objc-gc=auto
--enable-checking=release --with-gcc-major-version-only --without-included-gettext --enable-gnu-unique-object --enable-plugin --disable-werror --enable-linker-build-id --disable-vtable-verify
--enable-threads=posix --disable-nls --with-tune=generic --enable-default-pie --without-cuda-driver --enable-shared
--enable-multilib --with-multilib-list=m32,m64,mx32 --enable-multiarch --with-arch-32=i686 --with-abi=m64
--with-system-zlib --with-target-system-zlib=auto --with-zstd=/usr/lib/x86_86-linux-gnu

This installs gcc 13.2.0 in /usr/local fine.


But the problem is loading(or linking idk) g++ library.
As title, when running executable file which is compiled by g++ 13.2, terminal says
"./a.out: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'glibcxx_3.4.32' not found (required by ./a.out)"

So, I make another script that install to install latest glibc, here's original link:

Full configuration options are:
--prefix=/usr/local --disable-sanity-checks --build=x86_64-linux-gnu --host=x86_64-linux-gnu

This installs glibc in /usr/local, but that error still pop out.

Things I did after:
1. install glibc in /usr
when installing glibc, configuire --prefix=/usr -> whole system corrupted -> deleted that virtual machine
2. do ldconfig
make gilbc.conf (content is "/usr/local/lib64" just one line) in /etc/ld.so.conf.d and do "sudo ldconfig" -> no change


Questions:
Q1. What should I do in my situation?
What I want is permanent solution. 
Q2. Is there a way to install glibc system-wide(not by package manager)?


I'm not sure to mail here in my case, if not, sorry for my ignorance.
The clear thing is this isn't bug, just kind of configuration problem.

Waiting for reply, thanks.

Jeff

reply via email to

[Prev in Thread] Current Thread [Next in Thread]