gpt4 book ai didi

linux - 找不到为 makefile 指定的目标

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:02:14 25 4
gpt4 key购买 nike

首先,如果我问的是愚蠢的问题,我深表歉意。因为我实际上已经离开 unix 8 个月了。我已经安装了安装另一个应用程序所需的 GMP、libpcap 和 Gengetopt。我使用了以下命令:

sudo apt-get install libgmp3-dev libpcap-dev gengetopt

之后我尝试了

cd src; make

但它表明

make: ***No targets specified and no makefile found. Stop.

我的当前目录是 home 目录。

我的问题是:

  1. 这些软件包是否安装不正确?
  2. 我的 makefile 目标目录是否错误?

最佳答案

这取决于应用程序,但通常您必须在实际构建应用程序之前运行configuremake 步骤不需要 root 权限,但 make install 步骤通常会全局安装二进制文件。

make install 不是必需的,但为了方便,您仍然可以在构建它的目录中运行该应用程序。

所以试试cd src; ./configure && 制作

关于linux - 找不到为 makefile 指定的目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18834380/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com