[Ndn-interest] Help with ndn-ccx Installation
Athreya Nagaraj
indiathreya92 at gmail.com
Sat May 18 19:43:41 PDT 2019
Hi Adriana,
The examples are written for nfd. So nfd needs to be installed and started
for the examples to run. ndn-cxx is only a supporting library.
On Sun, 19 May 2019 at 1:53 AM, Adriana Gastezzi Montero via Ndn-interest <
ndn-interest at lists.cs.ucla.edu> wrote:
> Hello,
>
> My name is Adriana, I study at the Polithecnic University of Madrid, I'm
> new into NDN, and I trying to use the NDN project following the
> documentation https://named-data.net/doc/ndn-cxx/0.6.5/INSTALL.html but I
> think I've missed something because I cannot run the examples that you show
> in the webpage above.
>
> I'm working in a ubuntu 16.04 virtual machine and I've done the following
> so far:
>
> 1. sudo apt install build-essential libsqlite3-dev libboost-all-dev libssl
> -dev
>
> 2. sudo apt install doxygen graphviz python3-pip
> sudo pip3 install sphinx sphinxcontrib-doxylink
>
> 3. then git clone https://github.com/named-data/ndn-cxx.git
> 4. cd ndn-cxx
>
> 5. then ./waf configure --enable-static --with-examples and I've got this
>
> root at ndn-VirtualBox:/home/ndn/ndn-cxx# ./waf configure --enable-static
> --with-examples
> Setting top to : /home/ndn/ndn-cxx
> Setting out to : /home/ndn/ndn-cxx/build
> Building static library : yes
> Building shared library : yes
> Checking for 'g++' (C++ compiler) : /usr/bin/g++
> Checking C++ compiler version : 5.4.0
> Checking supported CXXFLAGS : -std=c++14
> Checking supported LINKFLAGS : -fuse-ld=gold
> Checking for std::to_string : yes
> Checking for program 'doxygen' : /usr/bin/doxygen
> Checking for program 'tar' : /bin/tar
> Checking for program 'sphinx-build' : /usr/local/bin/sphinx-build
> Checking for program 'sh' : /bin/sh
> Checking for library pthread : yes
> Checking for library rt : yes
> Checking for function getpass : yes
> Checking for netlink : yes
> Checking for NETLINK_EXT_ACK : no
> Checking for IFA_FLAGS : yes
> Checking for program 'pkg-config' : /usr/bin/pkg-config
> Checking for 'sqlite3' : yes
> Checking for OpenSSL version : "OpenSSL 1.0.2g-fips 1 Mar
> 2016"
> Checking if OpenSSL library works : yes
> Checking for program 'dpkg-architecture' : /usr/bin/dpkg-architecture
> Checking boost includes : 1.58.0
> Checking boost libs : lib stacktrace_backtrace not
> found in /usr/lib/x86_64-linux-gnu
> Checking boost libs : lib stacktrace_basic not found
> in /usr/lib/x86_64-linux-gnu
> Checking boost libs : boost_system
> boost_program_options boost_chrono boost_date_time boost_filesystem
> boost_thread boost_log
> Checking the flags needed to use pthreads : -pthread
> Checking for boost linkage : ok
> Checking supported CXXFLAGS : -O2 -g -pedantic -Wall -Wextra
> -Wnon-virtual-dtor -Wno-unused-parameter -fdiagnostics-color
> Checking supported LINKFLAGS : -Wl,-O1
> 'configure' finished successfully (6.172s)
>
>
> 6. ./waf
> and it shows:
>
> root at ndn-VirtualBox:/home/ndn/ndn-cxx# ./waf
> Waf: Entering directory `/home/ndn/ndn-cxx/build'
> [186/382] Linking build/examples/consumer-with-timer
> [188/382] Linking build/examples/consumer
> [190/382] Linking build/examples/producer
> Waf: Leaving directory `/home/ndn/ndn-cxx/build'
> 'build' finished successfully (3.042s)
>
> 7. finally sudo ./waf install
>
> and these are the last entries:
> - install /usr/local/share/man/man7/ndn-log.7 (from
> build/docs/manpages/ndn-log.7)
> + install /usr/local/bin/ndnsec (from build/bin/ndnsec)
> Waf: Leaving directory `/home/ndn/ndn-cxx/build'
> 'install' finished successfully (8.435s)
>
>
> 8. when ejecute sudo ldconfig nothing is shown:
>
> root at ndn-VirtualBox:/home/ndn/ndn-cxx# sudo ldconfig
> root at ndn-VirtualBox:/home/ndn/ndn-cxx#
>
>
> After that I want to run the examples, I've got this message:
>
> root at ndn-VirtualBox:/home/ndn/ndn-cxx# ./build/examples/producer
> ERROR: error while connecting to the forwarder (No such file or directory)
>
>
>
> The same with the both consumer:
>
> root at ndn-VirtualBox:/home/ndn/ndn-cxx# ./build/examples/consumer
> Sending
> /example/testApp/randomData?ndn.MustBeFresh=1&ndn.InterestLifetime=2000
> WARNING: Interest.CanBePrefix will be set to false in the near future.
> Please declare a preferred setting via Interest::setDefaultCanBePrefix.
> ERROR: error while connecting to the forwarder (No such file or directory)
>
>
> root at ndn-VirtualBox:/home/ndn/ndn-cxx#
> ./build/examples/consumer-with-timer
> Sending
> /example/testApp/randomData?ndn.MustBeFresh=1&ndn.InterestLifetime=2000
> WARNING: Interest.CanBePrefix will be set to false in the near future.
> Please declare a preferred setting via Interest::setDefaultCanBePrefix.
> ERROR: error while connecting to the forwarder (No such file or directory)
>
>
> I've downloading ndn.-cxx in my home directory:
>
> ndn at ndn-VirtualBox:~$ ls
> Descargas Escritorio Imágenes ndn-cxx Público
> Documentos examples.desktop Música Plantillas Vídeos
>
>
> And I've checked that ndn-cxx library has been installed in /usr/local/lib
>
> ndn at ndn-VirtualBox:/usr/local/lib$ ls
> libndn-cxx.a libndn-cxx.so.0.6.6 python2.7
> libndn-cxx.so pkgconfig python3.5
> ndn at ndn-VirtualBox:/usr/local/lib$
>
>
> So, the question is why the examples do not deploy? in the installation
> guide doesn't say that I have to install NFD in order to deploy those
> example, so why I've got those message error about the ndn forward.
>
> I appreciate any information you can provide, please.
>
>
> Best Regards,
> Adriana
>
>
>
>
>
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>
--
Regards
Athreya H N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20190519/220bcd0d/attachment-0001.html>
More information about the Ndn-interest
mailing list