0

I do compile few programs with no error at Raspbian OS but Today I want to try same programs on Ubuntu Mate. I keep getting same error.

Code is

git clone -b r606 https://github.com/vthoang/cgminer.git
cd cgminer
CFLAGS="-O2 -march=native" ./autogen.sh --enable-gekko
make -j 2

Which returns

/usr/include/netdb.h:32:11: fatal error: rpc/netdb.h: No such file or directory

During compiling. Not sure why its happening.

  • 3
    Looks like basic error of missing dev files. try to install netdb-dev or something like this before compilation. – Ephemeral Dec 10 '19 at 21:42
  • Try sudo apt-get install libjnr-netdb-java, that might fix your problem. – user96931 Dec 11 '19 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.