コンパイルされた.soファイルはどこにありますか?

コンパイルされた.soファイルはどこにありますか?

私は公式ウェブサイトの指示に従ってxdebugをコンパイルしました。しかし、生成された.soファイルはどこにありますか?

./libs/xdebug.so以下のフォルダで1つを見つけましたmodules/xdebug.so

質問

  • どちらが必要ですか?公式ウェブサイトに情報がありませんか?
  • result同じ名前または類似のフォルダが存在しないのはなぜですか?

ベストアンサー1

によって実行されるビルドの最後の部分は、makeライブラリがインストールされている場所を明示的に通知します。

----------------------------------------------------------------------
Libraries have been installed in:
   /tmp/user/1000/xdebug/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

したがって、答えは欲しいものです.somodulesと同じです.libsが、後者がlibtool実装の詳細です)。

make install.soPHP APIディレクトリは、決定したターゲットディレクトリphpize/usr/lib/php/20151012テストしたシステム上)にコピーします。 PHPは自動的にそれをインポートできるはずです。

だから本当にフォローしてください。アップストリームガイドライン終わるまで答えを気にする必要はありません。make installPHPのインストールでモジュールを使用できるようにしたのは正しいことでした。

おすすめ記事