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.

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.