Forum › Forums › General › Tips and Tricks › antiX using testing repos. Lib C errors
- This topic has 0 replies, 1 voice, and was last updated Jul 31-8:10 am by ModdIt.
-
AuthorPosts
-
July 31, 2022 at 8:10 am #86714Member
ModdIt
Please keep this thread limited to useful advice or issues running antiX 21 with testing or unstable repos.
Unstable changes generaly relocate to testing after a short period so issues often apply to both use cases.Met Issues: Boot error, undefined symbol in libc,so.6 update errors and some applications failing to start
startup interrupted until I entered c for continue to boot.Many applications have libC location hardcoded and are unable to find the lib due upstream changes.
Steam needs the 32 bit libs or will not start. I installed complete (I hope) multiarch support.Both fully up to date runit and sysv were throwing same errors.
I had followed the older posts from anticapitalista while setting up so nothing weird in my repos.
Running live a remaster after running the ld config option below fixed my troubles correctly.
Today I have no installed system at home due NVME now failing to boot so unable to retest a
fully updated installed setup.Advice from others on RUNNING TESTING very welcome.
After quite a lot of experimentation and searching I found following very helpful article which helped me fix the
issue on my installation and live sticks.https://www.golinuxcloud.com/how-do-i-install-the-linux-library-libc-so-6/ EXCERPT: Please do read the full linked article. Scenario-2: Library is installed but LD_LIBRARY_PATH not configured Many software packages look out for LD_LIBRARY_PATH environment variable to search for shared libraries. Many times you will just copy the required library path to /usr/lib or any other path but then your application will not start consuming the library just because the file is there. We need to use ldconfig [options] lib_dirs which will update the ld.so cache file with shared libraries specified on the command line in lib_dirs, in trusted directories /usr/lib and /lib, and in the directories found in /etc/ld.so.conf. Also Read: How to install shared libraries in Linux Once you have copied your library file to /usr/lib then just execute # ldconfig -n -v /usr/lib ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/lib and /usr/lib). Next you need to append this path to LD_LIBRARY_PATH variable: For non-persistent changes you can use export command which will be applicable only for your terminal # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib:/usr/local/lib For permanent changes you can place the above command in .bash_profile of individual user or just create a file inside /etc/profile.d/set-library-path.sh and add the above command. You can use any file name, set-library-path.sh is just an example. Also Read: Difference .bashrc vs .bash_profile (which one to use?) -
AuthorPosts
- You must be logged in to reply to this topic.