getdnsapi / getdns

A modern asynchronous DNS API https://getdnsapi.net/
Other
468 stars 126 forks source link

An error occurred while configuring Missing dependencies: libidn #403

Closed rdbox closed 6 years ago

rdbox commented 6 years ago

I tried all the settings that are written in different articles does not help me this. When configuring, run this command

root@user1:~/getdns/build# ../configure --prefix=/usr/local/bin --enable-stub-only --with-stubby --without-libidn2

error

configure: WARNING: libcheck not found or usable; unit tests will not be compiled and run
configure: Default trust anchor: /usr/local/bin/etc/unbound/getdns-root.key
configure: Checking for dependency libyaml
checking for yaml_parser_parse in -lyaml... yes
configure: error: Missing dependencies: libidn

if I change the argument at the end to such --without-libidn

configure: Checking for dependency libyaml
checking for yaml_parser_parse in -lyaml... yes
configure: error: Missing dependencies: libidn2 (version 2.0.0 or higher)

what to do? I need to install and work with stubby !!!

saradickinson commented 6 years ago

You need to use both --without_libidn and --without-lidbin2 on the command line if you want to compile without either!

saradickinson commented 6 years ago

NOTING:

rdbox commented 6 years ago

When --enable-stub-only, --without-libidn and --without-libidn2 options are used, getdns has only one dependency left, which is OpenSSL.

Unfortunately I did not understand that I should simultaneously use 2 parameters

rdbox commented 6 years ago

all went well, but how now to use stubby?

I'm sorry I'm newbie yet

root@user1:~/getdns/build# l
config.log  config.status*  doc/  getdns_ext_event.pc  getdns.pc  libtool*  Makefile  spec/  src/
root@user1:~/getdns/build# ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/version.c
config.status: creating src/getdns/getdns.h
config.status: creating src/getdns/getdns_extra.h
config.status: creating spec/example/Makefile
config.status: creating src/test/Makefile
config.status: creating src/tools/Makefile
config.status: creating doc/Makefile
config.status: creating getdns.pc
config.status: creating getdns_ext_event.pc
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing libtool commands
root@user1:~/getdns/build#

how to run demon stubby? on this instruction did https://dnsprivacy.org/wiki/pages/viewpage.action?pageId=3145786

saradickinson commented 6 years ago

So did you get stubby running OK from the command line? If so then did you take a look at this page: https://dnsprivacy.org/wiki/display/DP/Running+as+a+service+on+*nix for how to set it up as a service?

rdbox commented 6 years ago

make make install after these commands appeared this message

make[1]: Leaving directory '/root/getdns/build/doc'
***
***  !!! IMPORTANT !!!!
***
***  From release 1.2.0, getdns comes with built-in DNSSEC
***  trust anchor management.  External trust anchor management,
***  for example with unbound-anchor, is no longer necessary
***  and no longer recommended.
***
***  Previously installed trust anchors, in the default location -
***
***        /usr/local/bin/etc/unbound/getdns-root.key
***
***  - will be preferred and used for DNSSEC validation, however
***  getdns will fallback to trust-anchors obtained via built-in
***  trust anchor management when the anchors from the default
***  location fail to validate the root DNSKEY rrset.
***
***  To prevent expired DNSSEC trust anchors to be used for
***  validation, we strongly recommend removing the trust anchors
***  on the default location when there is no active external
***  trust anchor management keeping it up-to-date.
saradickinson commented 6 years ago

That means the build worked fine. So just carry on with the instructions from this point: https://dnsprivacy.org/wiki/pages/viewpage.action?pageId=3145786#Installation:Linux(Buildfromsource)-Configuration