无需 sudo 即可构建二进制文件和依赖项

how*_*rdh 4 compiling source dependencies

我想从源代码安装一个软件 (rtorrent) 到我的主文件夹。它取决于未安装的 ncurses。我已经PREFIX在配置步骤中使用该选项将 ncurses 安装到我的主文件夹,但是当我尝试对 rtorrent 执行相同操作时,这似乎不起作用,因为它一直告诉我它需要 ncurses。

期间的最后几行输出make

checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
checking for NcursesW wide-character library... no
checking for Ncurses library... no
checking for Curses library... no
configure: error: requires either NcursesW or Ncurses library
Run Code Online (Sandbox Code Playgroud)

我怎样才能让它发挥作用?

Ign*_*ams 5

大多数configure脚本允许您指定它们使用的库的位置。

./configure ... --with-ncurses=some/path ...
Run Code Online (Sandbox Code Playgroud)