我正在尝试安装 sia-hsd 报警系统,GitHub 链接
直到那个 ./配置输出是
Setting top to : /home/siahsd-master
Setting out to : /home/siahsd-master/build
Checking for program gcc,cc : gcc
Checking for program ar : /usr/bin/ar
Checking for program pkg-config : /usr/bin/pkg-config
Checking for 'glib-2.0' : yes
Checking for 'talloc' : yes
Checking for 'tevent' : yes
Checking for 'samba-util' : yes
Checking for 'ndr' : yes
Checking for header stdio.h : yes
Checking for header stdlib.h : yes
Checking for header stdint.h : yes
Checking for header stdbool.h : yes
Checking for header sys/time.h : yes
Checking for header sys/types.h : yes
Checking for header sys/stat.h : yes
Checking for header netinet/in.h : yes
Checking for header arpa/inet.h : yes
Checking for header unistd.h : yes
Checking for header string.h : yes
Checking for header fcntl.h : yes
Checking for header errno.h : yes
Checking for header talloc.h : yes
Checking for header glib.h : yes
Checking for header glibconfig.h : yes
Checking for header dbi/dbi.h : yes
Checking for header util/data_blob.h : yes
Checking for header core/ntstatus.h : yes
Checking for header charset.h : yes
Checking for library dbi : yes
Checking for library talloc : yes
Checking for library ndr : yes
Checking for library gmp : yes
Checking for library hogweed : yes
Checking for library nettle : yes
'configure' finished successfully (2.057s)
使"CPP=gcc -E -ffreestand"命令的输出如下
[21/27] cstlib: build/jsonbot.c.7.o -> build/libjsonbot.a
[22/27] cstlib: build/siahs.c.6.o -> build/libsiahs.a
[23/27] cstlib: build/sia.c.5.o -> build/libsia.a
[24/27] cstlib: build/config.c.4.o -> build/libconfig.a
[25/27] cprogram: build/chirond.c.10.o build/ndr_chiron.c.10.o -> build/chirond
[26/27] cprogram: build/siahsd.c.8.o -> build/siahsd
[27/27] cprogram: build/secipd.c.9.o build/crc16.c.9.o build/ndr_secip.c.9.o -> build/secipd
Waf: Leaving directory `/home/siahsd-master/build'
'build' finished successfully (3.389s)
当我使用make install命令时,我收到此错误:
make: *** No rule to make target `install'. Stop.
关于如何解决它的任何想法?
多谢
如前所述,Makefile不包含"安装"目标,因此make不知道如何创建它。查看 waf 构建文件,它没有提供有关如何实现安装目标的任何线索。显然,构建软件后不需要安装,只需运行它即可。
您可以在 Makefile 中实现"dist"目标,以查看它实际打包的内容。也许这提供了应该安装什么的提示。
dist:
@bin/waf dist