/usr/localにインストールするソフトウェアを選択する方法

/usr/localにインストールするソフトウェアを選択する方法

mesa私のシステムにaptを使ってインストールしました。カウンタートップは/usr/lib/arm-linux-gnueabihfカタログにインストールされます。これで、ソースから最新バージョンのメサを手動でコンパイルしてインストールしました/usr/local/lib/arm-linux-gnueabihf

ソースでコンパイルされた最新バージョンのメサをシステムに使用させるにはどうすればよいですか?

ベストアンサー1

ld.so.conf(.d) および LD_LIBRARY_PATH 変数を使用します。 ld.so(8) のマニュアルページで、このトピックに関する詳細情報を見つけることができます。

If a shared object dependency does not contain a slash,
then it is searched for in the following order:

(...)

Using  the  environment  variable  LD_LIBRARY_PATH
(unless  the executable is being run in secure-execution
mode; see below).  in which case it is ignored.

(...)

おすすめ記事