0

I've tried to compile programs, including neofetch, cmatrix, browsh, and a few others all to the same effect.

I run:

git clone repo Works fine cd repo name Works fine ./autogen.sh Works fine ./configure Always comes out as something like this:

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

Specifically the last 2 lines are always the same, and then from there make and make install fail due to there being no file:

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

I've tested on both Ubuntu 19.10 and Linux Mint 19.3

Am I missing a tool or package of some kind?

Ultra Gamer
  • 223
  • 1
  • 7
  • Why not: `sudo apt install neofetch`? – chili555 Feb 28 '20 at 22:25
  • The `protoc` binary is provided by package `protobuf-compiler` and the development package (should it also be required) is `libprotobuf-dev` – steeldriver Feb 28 '20 at 22:31
  • @chili555 Because that version hasn't been updated in several years and I'm trying to get a feature in the latest release, same thing with cmatrix. – Ultra Gamer Feb 28 '20 at 22:32
  • @steeldriver After installing protobuf-compiler, ./autogen.sh still works fine, however ./configure now produces this result: https://pastebin.com/PxQbe9Mk – Ultra Gamer Feb 28 '20 at 22:36
  • @UltraGamer there's really no magic bullet here - every piece of software has prerequisites and you just have to keep picking them off until it successfully configures. For the `zlib` dependency you almost certainly need the `zlib1g-dev` package. *Sometimes* there's a README or INSTALL file that lists the dependencies - other times, it's just trial and error. – steeldriver Feb 28 '20 at 22:45
  • @steeldriver Ok, When I do run into a required dependency such as this next one `configure: error: OpenSSL crypto library not found` where do I find more info about it and how to install it? – Ultra Gamer Feb 28 '20 at 22:52
  • Hmm... my guess is `libssl-dev` – steeldriver Feb 29 '20 at 00:13
  • Thank you, I've now gotten it to compile successfully. Where can I find more about these other dependencies in the future? – Ultra Gamer Mar 01 '20 at 21:38

0 Answers0