Install the library in the home directory


On Linux (Ubuntu), I try to run the tool and it displays a "library missing" error. I do not have permission to install anything on the system (or just sudo is not possible from my user account).
Is it possible to install the missing library (libstdC ++. So.6 in my case) in my home directory (without sudo) and change environment variables, etc., so that all other tools / programs can find it?

+4
source share
1 answer

Yes, if the library is located in /home/user/lib . You can set the environment variable LD_LIBRARY_PATH to find lib. LD_LIBRARY_PATH=/home/user/lib , which will find the library. If you need to compile it yourself, you will want to use configure --prefix=/home/user .

I am surprised that libstdc++.so.6 no longer available on the system. See /usr/lib/x86_64-linux-gnu . If just your program was not multi-archived.

+3
source

Source: https://habr.com/ru/post/1392071/


All Articles