添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get

# pkg-config --cflags libcurl
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
pkg-config: exit status 1

Should I install libcurl ? If so, which one ? :/ Is it one related to GO language ?

sudo apt-cache search libcurl
libcurl3-gnutls - easy-to-use client-side URL transfer library (GnuTLS flavour)
libcurl3-nss - easy-to-use client-side URL transfer library (NSS flavour)
libcurl4-doc - documentation for libcurl
libcurl4-gnutls-dev - development files and documentation for libcurl (GnuTLS flavour)
libcurl4-nss-dev - development files and documentation for libcurl (NSS flavour)
libcurl4-openssl-dev - development files and documentation for libcurl (OpenSSL flavour)
libstrongswan-extra-plugins - strongSwan utility and crypto library (extra plugins)
python-pycurl - Python bindings to libcurl
python-pycurl-dbg - Python bindings to libcurl (debug extension)
python-pycurl-doc - Python bindings to libcurl (documentation)
python3-pycurl - Python bindings to libcurl (Python 3)
python3-pycurl-dbg - Python bindings to libcurl (debug extension, Python 3)
libcurl4 - easy-to-use client-side URL transfer library (OpenSSL flavour)
fp-units-net - Free Pascal - networking units dependency package
fp-units-net-3.0.4 - Free Pascal - networking units
libcupt4-2-downloadmethod-curl - flexible package manager -- libcurl download method
libcurl-ocaml - OCaml curl bindings (Runtime Library)
libcurlpp-dev - c++ wrapper for libcurl (development files)
libcurlpp0 - c++ wrapper for libcurl
libghc-curl-dev - GHC libraries for the libcurl Haskell bindings
libghc-curl-doc - Documentation for the libcurl Haskell bindings; documentation
libghc-curl-prof - Profiling libraries for the libcurl Haskell bindings; profiling libraries
libghc-hxt-curl-dev - LibCurl interface for HXT
libghc-hxt-curl-doc - LibCurl interface for HXT; documentation
libghc-hxt-curl-prof - LibCurl interface for HXT; profiling libraries
libjsonrpccpp-client0 - library implementing json-rpc C++ clients
libjsonrpccpp-client0-dbg - debugging symbols for libjsonrpccpp-client0
libresource-retriever-dev - Robot OS resource_retriever library - development files
libresource-retriever0d - Robot OS resource_retriever library
libulfius-dev - Web Framework for REST Applications in - development
libwww-curl-perl - Perl bindings to libcurl
lua-curl - libcURL bindings for the Lua language
lua-curl-dev - libcURL development files for the Lua language
python-resource-retriever - Robot OS resource_retriever library - Python
ruby-curb - Ruby libcurl bindings
ruby-ethon - libcurl wrapper using ffi
ruby-typhoeus - parallel HTTP library on top of ethon
tclcurl - Tcl bindings to libcurl
wmget - Background download manager in a Window Maker dock app
libcurl-ocaml-dev - OCaml libcurl bindings (Development package)
libcurl-openssl1.0-dev - development files and documentation for libcurl (OpenSSL 1.0 flavour)
libcurl3 - easy-to-use client-side URL transfer library (OpenSSL flavour)
libulfius2.2 - Web Framework for REST Applications in C
r-cran-crul - simple HTTP Client for GNU R
go get github.com/Ullaakut/cameradar
# github.com/Ullaakut/cameradar
/home/user/go/src/github.com/Ullaakut/cameradar/scan.go:34:16: error: argument 1 has incompatible type (incompatible type for method ‘Run’ (different result types))
  return s.scan(nmapScanner)
          

Hi @adrianTNT!

Just out of curiosity, why are you not using the docker image to run Cameradar? It avoids having to compile it yourself :)

And for the issues you have, I will add the requirement of libcurl4-openssl-dev on Linux machines that don't already have it by default, and will push a fix to update the way we use the nmap library, since it was recently updated and Cameradar still uses the old version. The error you have is because I guess go automatically tried to update the version of the nmap library we're using.

I'll fix it this evening, thanks! :)

Just out of curiosity, why are you not using the docker image to run Cameradar? It avoids having to compile it yourself :)

I never worked with Docker and I thought it would be more reliable to have it compiled and installed.
Thanks.

This error remained, maybe I am doing something wrong ? I am not familiar with go:

go get github.com/Ullaakut/cameradar
# github.com/Ullaakut/cameradar
/home/user/go/src/github.com/Ullaakut/cameradar/scan.go:34:16: error: argument 1 has incompatible type (incompatible type for method ‘Run’ (different result types))
  return s.scan(nmapScanner)
          

Try again and let me know if it works, and if it still doesn't, try adding @v4.1.1 at the end, like go get github.com/Ullaakut/[email protected].

If it still doesn't work after that, my only guess is that it's an issue with an older version of go?

I was able to download after adding the version @v4.1.1

// next, the path cd $GOPATH/src/github.com/Ullaakut/cameradar was not there, not sure if this a problem or not, my $GOPATH just went to user home dir, from there I went into go/ and the rest of the path was OK.

When running go install I am getting same nmap error again in file scan.go:36:16

// go version says: go1.10.3

Your GOPATH is not setup correctly, that's why :) See this document for more info. (it should have been ${HOME}/goand not$HOME`

And also, your version of go is outdated, the newest version is the 1.13.4, I should update the documentation regarding the required version of go, since Cameradar uses go modules which is a feature that only exists as opt-in since go 1.11 and as opt-out since go 1.13