bcコンパイルエラー:libreadline.so.8が見つかりません[閉じる]

bcコンパイルエラー:libreadline.so.8が見つかりません[閉じる]

私はLinux from Scratch Bookバージョン8.4に従い、bc(6.15章)。

そのページのコマンドをコピーしてmakeコマンドに貼り付けましたが、makeを実行すると次のエラーが発生します。

./fbc -c ./libmath.b </dev/null >libmath.h
./fbc: error while loading shared libraries: libreadline.so.8: cannot open shared object file: No such file or directory
make[2]: *** [Makefile:631: libmath.h] Error 127
make[2]: Leaving directory '/sources/bc-1.07.1/bc'

/libと/usr/libでlibreadline.so.8を確認しましたが、両方のディレクトリに存在します。また、libreadline.so.8を/sources/bc-1.07.1/bc、/sources/bc-1.07.1/bc/lib、/sources/bc-1.07.1/bc/bcにコピーしようとしましたが、まだ同じエラーが発生します。

出力cat config.log | grep readline

  $ ./configure --prefix=/usr --with-readline --mandir=/usr/share/man --infodir=/usr/share/info
configure:5164: checking for readline in -lreadline
configure:5189: gcc -o conftest -g -O2   -lncurses conftest.c -lreadline   >&5
configure:5201: checking readline/readline.h usability
configure:5201: checking readline/readline.h presence
configure:5201: checking for readline/readline.h
ac_cv_header_readline_readline_h=yes
ac_cv_lib_readline_readline=yes
READLINELIB='-lreadline -lncurses'

誰でもこの問題を解決するのに役立ちますか?

編集する:

chroot環境の外部で構成スクリプトを実行してこの問題を解決しました。 makeコマンドとテストではエラーは返されませんでしたが、それが本の他のコンテンツを破損するかどうかはわかりません。

ベストアンサー1

おすすめ記事