<div dir="ltr">Alex,<div><br></div><div>The <b>ldconfig </b>command worked.  Restarting didn't.  Everything seems to be running fairly smoothly now.</div><div><br></div><div>Thanks for your help!</div><div><br></div><div>John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 3:37 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Ooops.  The instructions in README pointing to wrong places.  Will fix that.</div><div><br></div><div>As for the shared library error.  Assuming you're on Linux, restart or running `sudo ldconfig` should solve the problem.</div><div><br></div><div>---</div><div>Alex </div><div><div class="h5"><br><div><blockquote type="cite"><div>On Jan 3, 2017, at 11:02 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>> wrote:</div><br class="m_-8086727134171449568Apple-interchange-newline"><div><div dir="ltr"><div><div><div><div>Alex,<br><br></div>I'm getting closer.  With the link to the scenarios you provided me, I was able to put my files in scenarios folder and try ./waf configure and ./waf from ndnSIM/my-simulations.<br><br></div>I used a different, simpler scenario now, called jpb-4-print.  I now get this error when I attempt to run it.  It compiles now, but appears to have a linker issue:<br><br>jpbaugh@Janeway:~/ndnSIM/my-<wbr>simulations$ ./waf<br>Waf: Entering directory `/home/jpbaugh/ndnSIM/my-<wbr>simulations/build'<br>[1/2] Compiling scenarios/jpb-4-print.cpp<br>[2/2] Linking build/jpb-4-print<br>Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-<wbr>simulations/build'<br>'build' finished successfully (5.089s)<br><b>jpbaugh@Janeway:~/ndnSIM/my-<wbr>simulations$ ./waf --run=jpb-4-print<br>Waf: Entering directory `/home/jpbaugh/ndnSIM/my-<wbr>simulations/build'<br>Waf: Leaving directory `/home/jpbaugh/ndnSIM/my-<wbr>simulations/build'<br>'build' finished successfully (0.025s)<br>build/jpb-4-print: error while loading shared libraries: libns3-dev-core-optimized.so: cannot open shared object file: No such file or directory</b><br><br><br></div>Thanks,<br><br></div>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 1:51 AM, John Baugh <span dir="ltr"><<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Alex,<div><br></div><div>This is where I found the instructions:</div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/scenario-template" target="_blank">https://github.com/named-data-<wbr>ndnSIM/scenario-template</a><br></div><div><br></div><div>The README file on that page says to do:</div><div><br></div><div><b>git clone git://<a href="http://github.com/cawka/ndnSIM-scenario-template.git" target="_blank">github.com/cawka/ndnSIM-<wbr>scenario-template.git</a> my-simulations<br></b></div><div><br></div><div>The wscript from this location does contain a reference to the libndn-cxx library.</div><div><br></div><div>I think the README needs updated...  It uses a different repository.</div><div><br></div><div>I'm about to try the tests again.</div><div><br></div><div>Thanks,</div><div><br></div><div>John</div></div><div class="m_-8086727134171449568HOEnZb"><div class="m_-8086727134171449568h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 1:38 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">2.3 should be ok.  Which exactly repository you cloned for scenario-template?  I just checked with the one listed on ndnSIM website (<a href="https://github.com/named-data-ndnSIM/scenario-template.git" target="_blank">https://github.com/named-data<wbr>-ndnSIM/scenario-template.git</a>) and everything is working.<div><br></div><div>The correct template repository should not have this check:</div><div> </div><div>     ...</div><span><div>     Checking for 'libndn-cxx'                : not found </div></span><div><div><div>     ...</div></div><div><br></div><div>The you should have directory structure something like this</div><div><br></div><div><div>some-folder-for-simulations/</div><div>├── ns-3/</div><div>│   ├── ...</div><div>│   ├── src/</div><div>│   │   ├── ...</div><div>│   │   ├── ndnSIM/</div><div>│   │   │   ├── ndn-cxx/</div><div>│   │   │   ├── NFD/</div><div>│   │   │   ├── model/</div><div>│   │   │   ├── ...</div><div>│   │   ├── ...</div><div>│   ├── ...</div><div>├── pybindgen/</div><div>│   ├── ...</div><div>└── scenario/</div><div>    ├── README.md</div><div>    ├── extensions/</div><div>    │   ├── README.md</div><div>    │   ├── some-code.hpp</div><div>    │   └── some-code.cpp</div><div>    ├── graphs/</div><div>    │   ├── ...</div><div>    ├── results/</div><div>    ├── run.py</div><div>    ├── scenarios/</div><div>    │   ├── README.md</div><div>    │   └── scenario-name.cpp</div><div>    ├── waf</div><div>    └── wscript</div></div><div><br></div><div>When you're inside scenario/ folder, you can run `./waf --run scenario-name` (files in scenarios/ folder are getting compiled into individual scenarios).</div><div><br></div><div>---</div><div>Alex</div><div><div class="m_-8086727134171449568m_-5839343451534238913h5"><div><br><div><blockquote type="cite"><div>On Jan 3, 2017, at 9:56 PM, John Baugh <<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>> wrote:</div><br class="m_-8086727134171449568m_-5839343451534238913m_-3212672944330611850Apple-interchange-newline"><div><div dir="ltr"><div><div><div><div><div>Junxiao,<br><br></div>That is peculiar...  perhaps I should ask a different question:<br><br></div><b>Should I be using ndnSIM 2.3</b>, even?  Or should I just go back to 2.1?  <br><br></div>If so, how might I accomplish this to ensure I don't get the newest version?<br><br></div>Thanks,<br><br></div>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 12:51 AM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi John<div><br></div><div>The scenario template, as of <a href="https://github.com/named-data-ndnSIM/scenario-template/tree/2b5b6f55f04982273e62127082a19459ec68ff43" target="_blank">commit 2b5b6f55f04982273e62127082a194<wbr>59ec68ff43</a> , is compatible with ndnSIM 2.1, and may or may not work with other versions.</div><div>However, I do not see why the scenario template is looking for ndn-cxx, because there's no "ndn-cxx" token in its wscript.</div><div><br></div><div>Yours, Junxiao</div></div><div class="m_-8086727134171449568m_-5839343451534238913m_-3212672944330611850HOEnZb"><div class="m_-8086727134171449568m_-5839343451534238913m_-3212672944330611850h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 3, 2017 at 10:44 PM, John Baugh <span dir="ltr"><<a href="mailto:jpbaugh@umich.edu" target="_blank">jpbaugh@umich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Junxiao,<br><br></div>By "./waf configure and ./waf inside the scenario template", I took that as the ./waf inside my my-simulations directory, correct?<br><br></div>I performed the ./waf configure from inside there <i>after </i>doing a ./waf install (from inside ns-3 directory), and I get the following:<br><br>jpbaugh@Janeway:~/ndnSIM/my-si<wbr>mulations$ ./waf configure<br>Setting top to                           : /home/jpbaugh/ndnSIM/my-simula<wbr>tions <br>Setting out to                           : /home/jpbaugh/ndnSIM/my-simula<wbr>tions/build <br>Checking for 'gcc' (C compiler)          : /usr/bin/gcc <br>Checking for 'g++' (C++ compiler)        : /usr/bin/g++ <br>Checking supported CXXFLAGS              : -std=c++11 <br>Checking supported CXXFLAGS              : -pedantic -Wall -O2 -g <br>Checking for program 'pkg-config'        : /usr/bin/pkg-config <br>Checking for 'libndn-cxx'                : not found <br>The configuration failed<br>(complete log in /home/jpbaugh/ndnSIM/my-simula<wbr>tions/build/config.log)<br><br><br></div>My obvious assumption is that it cannot find the ndn-cxx library.  But I am following the instructions by the letter.  This is a fresh computer and a fresh install, so what might be the issue here?  And what is the best / appropriate corrective measure, as I assume ndnSIM is already installed.<br><br></div>Thanks,<br><br></div>John<br></div><div class="m_-8086727134171449568m_-5839343451534238913m_-3212672944330611850m_1203329181060910881HOEnZb"><div class="m_-8086727134171449568m_-5839343451534238913m_-3212672944330611850m_1203329181060910881h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 12:36 AM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi John<div><br><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>1.)  Since I already had installed ndnSIM using the instructions in Getting Started on the main <a href="http://ndnsim.net/" target="_blank">ndnSIM.net</a> page, I don't have to perform another git clone on ns-3-dev-ndnSIM.git or any of those files right?  It seems it's just downloading a separate copy of ndnSIM to put in a separate directory.  <b>So, all I did per the instructions was a git clone on the ndnSIM-scenario-template-git.<br></b></div></div></div></div></div></div></blockquote></span><div>You don't need to clone ns-3 or ndnSIM again, as long as you have compatible version.</div><span><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>2.)  I placed the downloaded branch (terminology might be off here) in my-simulations, <b>which in turn I have inside the ndnSIM folder</b>.  So, my-simulations is a directory that is a sibling directory of ns-3 and pybindgen, all three being inside the top level ndnSIM folder.  <b>Is this correct / ok?<br></b></div></div></div></div></div></blockquote></span><div>Yes, this is correct. scenario template must be outside of ns-3 folder.</div><span><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><b></b></div>3.)  I am very confused about the difference between the extensions and scenarios directories.  I was under the impression I could put a subdirectory under extensions named as my scenario, so I named a subdirectory of extensions "jpb-strategy1-test", which contains jpb-strategy1.cpp and a umd/ directory with some classes I'm using (they worked fine with ndnSIM 2.1.)  <b>Is this correct?<br></b></div></div></div></div></blockquote></span><div>You may place multiple files in extensions/ folder, which will be linked with every scenario.</div><div>Every file in scenarios/ folder is an individual simulation which must have a main() function. Every file is linked with every object from extensions/ to create an executable.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><b></b></div>4.)  Now, it cannot find the scenario, regardless of whether its inside extensions or scenarios.  Does a .cpp or .cc file have to be at the top level or can I put a subdirectory?  I just want to remain organized.  I get the following:<br><br><b><span>jpbaugh@Janeway:~/ndnSIM/ns-3$ ./waf --run=jpb-strategy1-test<br>Waf: Entering directory `/home/jpbaugh/ndnSIM/ns-3/bui<wbr>ld'<br></span>program 'jpb-strategy1-test' not found; available programs are: ['subdir', 'scratch/subdir/subdir', 'scratch-simulator', 'scratch/scratch-simulator', 'test-runner', 'utils/test-runner', 'bench-simulator', 'utils/bench-simulator', 'bench-packets', 'utils/bench-packets', 'print-introspected-doxygen', 'utils/print-introspected-doxy<wbr>gen', 'tap-device-creator', 'src/fd-net-device/tap-device-<wbr>creator', 'raw-sock-creator', 'src/fd-net-device/raw-sock-cr<wbr>eator', 'tap-creator', 'src/tap-bridge/tap-creator']</b><br></div></div></div></blockquote></span><div>You must first `sudo ./waf install` from ns-3 which installs ns-3 including ndnSIM system-wide (optimized build is recommended), and then `./waf configure` and `./waf` inside the scenario template.</div><div><br></div><div>Yours, Junxiao</div></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>


</div></blockquote></div><br></div></div></div></blockquote></div><br></div>