[ndnSIM] Could not find the program ['pkg-config']
Klaus Schneider
klaus at cs.arizona.edu
Tue Nov 27 20:27:07 PST 2018
On 11/27/18 10:21 PM, Maxwell You wrote:
> Ahh that was it, thanks Klaus! I copied the command from the getting
> started page exactly, so I'm not sure why it didn't work before. Maybe
> something to do with "pkgconfig" on the getting started page vs
> "pkg-config" that you told me to install?
Yeah the package seems indeed to be missing from the install instruction.
Maybe @Alex or @Spyros can fix?
Klaus
>
> Also, I tried to proceed with running the interest flooding scenarios
> and I received the following error:
>
> max at max-VirtualBox:~/ndnSIM/ndnSIM-ddos-interest-flooding$ ./waf
> --run attack-small-tree --vis
>
> Waf: Entering directory
> `/home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build'
> [ 1/13] cxx: extensions/ddos-app.cc -> build/extensions/ddos-app.cc.1.o
> In file included from ../extensions/ddos-app.cc:21:0:
> ../extensions/ddos-app.h:29:17: error: reference to ‘ndn’ is ambiguous
> using namespace ndn;
>
> ... (more of the stack trace errors here)
>
> Waf: Leaving directory
> `/home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build'
> Build failed
> -> task in 'extensions' failed (exit status 1):
> {task 139723315306192: cxx ddos-app.cc -> ddos-app.cc.1.o}
> ['/usr/bin/g++', '-O3', '-g', '-std=c++11', '-pthread', '-pthread',
> '-pthread', '-pthread', '-pthread', '-pthread', '-pthread',
> '-I/home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build/extensions',
> '-I/home/max/ndnSIM/ndnSIM-ddos-interest-flooding/extensions',
> '-I/usr/include', '-I/usr/local/include/ns3-dev',
> '-I/home/max/ndnSIM/ns-3/build/ns3/ndnSIM/NFD',
> '-I/home/max/ndnSIM/ns-3/ns3/ndnSIM/NFD',
> '-I/home/max/ndnSIM/ns-3/build/src/ndnSIM/NFD/core',
> '-I/home/max/ndnSIM/ns-3/src/ndnSIM/NFD/core',
> '-I/home/max/ndnSIM/ns-3/build/src/ndnSIM/NFD/daemon',
> '-I/home/max/ndnSIM/ns-3/src/ndnSIM/NFD/daemon',
> '-I/home/max/ndnSIM/ns-3/build/src/ndnSIM/NFD/rib',
> '-I/home/max/ndnSIM/ns-3/src/ndnSIM/NFD/rib',
> '-I/home/max/ndnSIM/ns-3/build/ns3/ndnSIM',
> '-I/home/max/ndnSIM/ns-3/ns3/ndnSIM', '-I/usr/local/include',
> '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1',
> '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1',
> '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1',
> '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1',
> '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1',
> '../extensions/ddos-app.cc', '-c', '-o', 'extensions/ddos-app.cc.1.o']
>
>
> I'm not sure what this error means because at this point, I have
> configured and built NS-3 correctly and configured the Interest Flooding
> code. What do you think is causing this?
>
> Thanks!
> Max
>
>
> On Tue, Nov 27, 2018 at 8:12 PM Klaus Schneider <klaus at cs.arizona.edu
> <mailto:klaus at cs.arizona.edu>> wrote:
>
> Btw, you should install all the prerequisites from
> http://ndnsim.net/current/getting-started.html if you haven't done
> so yet.
>
>
> On 11/27/18 10:06 PM, Klaus Schneider wrote:
> > Did you install pkgconfig?
> >
> > "apt install pkg-config" if you're on Ubuntu.
> >
> > Also sometimes it helps to run "sudo ldconfig" after installing
> libraries.
> >
> > Best regards,
> > Klaus
> >
> >
> > On 11/27/18 9:51 PM, Maxwell You wrote:
> >> Hello,
> >>
> >> I was trying to run the Interest Flooding code
> >> <https://github.com/cawka/ndnSIM-ddos-interest-flooding> and I got to
> >> the part where we try to configure the interest flooding
> scenarios. When
> >> I run ./waf configure with PKG_CONFIG_PATH set, I get the following
> >> error. I also confirmed that I have a pkgconfig folder at
> >> /usr/local/lib/pkgconfig.
> >>
> >> max at max-VirtualBox:~/ndnSIM/ndnSIM-ddos-interest-flooding$
> >> *PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./waf configure*
> >>
> >> Setting top to :
> >> /home/max/ndnSIM/ndnSIM-ddos-interest-flooding
> >> Setting out to :
> >> /home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build
> >> Checking for 'g++' (c++ compiler) : /usr/bin/g++
> >> Checking for compiler flags -std=c++11 : yes
> >> Checking boost includes : 1_62
> >> Checking boost libs : ok
> >> Checking for boost linkage : ok
> >> Checking for program pkg-config : not found
> >> NS-3 or one of the required NS-3 modules not found
> >> NS-3 needs to be compiled and installed somewhere. You may need
> >> also to set PKG_CONFIG_PATH variable in order for configure find
> >> installed NS-3.
> >> For example:
> >> PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
> ./waf
> >> configure
> >>
> >> (complete log in
> >> /home/max/ndnSIM/ndnSIM-ddos-interest-flooding/build/config.log)
> >>
> >> I looked at this past thread
> >>
> <https://www.lists.cs.ucla.edu/pipermail/ndnsim/2013-March/000175.html>
> >> with the same issue and confirmed that I have the
> >> /usr/local/include/ns3-dev folder. I also tried configuring NS-3
> with:
> >> ./waf configure --*prefix=/home/max/ndnSIM*
> >> --boost-includes=/usr/local/include --boost-libs=/usr/local/lib
> -d optimized
> >> but this gives the same error.
> >>
> >> How can I get NS-3 to find my pkgconfig folder?
> >>
> >> Thank you!
> >>
> >> Max
> >>
> >> _______________________________________________
> >> ndnSIM mailing list
> >> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
> >> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> >>
>
>
>
> --
> Best,
> Max
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
More information about the ndnSIM
mailing list