Alpine Linuxでgtypist-2.9.5をコンパイルする方法は?

Alpine Linuxでgtypist-2.9.5をコンパイルする方法は?

GNUタイピストよく知られたターミナルタイピング練習プログラムです。使いたくて.tar.gzを以下からダウンロードしました。https://ftp.gnu.org/gnu/gtypist/?C=M;O=D。ただし、解凍して設定を実行するとエラーが発生します。

Error:  both library and header files for the ncursesw library are required to build this package.  See INSTALL file for further information. On Debian/Ubuntu you need to install libncursesw5-dev.

ncursesとncurses-dev(ブランチはv3.15)をインストールしました。また、v3.13 + ncurses-devブランチからncurses5とncurses5-libsをインストールしようとしましたが、同じエラーが表示されました。このエラーをどのように解決できますか?

ベストアンサー1

気にしないでください。私は「すべてはパッケージマネージャによって管理されるべきです」についてとても賢いです。構成ファイルでは、エラーは次のために発生します。

if test -n "$HAVE_NCURSESW_H" -a -n "$HAVE_LIBNCURSESW";  then
   LIBS="-lncursesw $LIBS"
else
   echo -e "Error:  both library and header files for the ncursesw library\n"\
       "are required to build this package.  See INSTALL file for"\
       "further information. On Debian/Ubuntu you need to install libncursesw5-dev."
   exit 1;
fi

HAVE_NCURSESW_Hこれは次の行によって決まります。

ac_fn_c_check_header_mongrel "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes; then :
  HAVE_NCURSESW_H=1
fi

ac_fn_c_check_header_mongrelヘッダーがあることを確認してください。だから(一時的に)ncurseswncurses.hというフォルダを作成し、/usr/includeそこにncurses.hをコピーしました。蘭さんconfigure、それ以降はすべてのことが順調に行われました。

おすすめ記事