我尝试编译包括 neofetch、cmatrix、browsh 和其他一些程序,但效果都一样。
我跑:
git clone repo
运行良好
cd repo name
运行良好
./autogen.sh
运行良好
./configure
总是出现如下情况:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of cc... gcc3
checking for c++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking for ranlib... ranlib
checking for protoc... no
configure: error: cannot find protoc, the Protocol Buffers compiler
具体来说,最后两行总是相同的,然后从那里开始make
并make install
由于没有文件而失败:
make: *** No targets specified and no makefile found. Stop.
我已经在 Ubuntu 19.10 和 Linux Mint 19.3 上进行了测试
我是否缺少某种工具或者包?