{"id":99,"date":"2015-10-07T12:35:40","date_gmt":"2015-10-07T12:35:40","guid":{"rendered":"http:\/\/chkr.at\/wordpress\/?p=99"},"modified":"2015-10-07T12:58:37","modified_gmt":"2015-10-07T12:58:37","slug":"run-ndnsim-2-1-with-scenario-template-without-root-access","status":"publish","type":"post","link":"https:\/\/chkr.at\/wordpress\/?p=99","title":{"rendered":"Run ndnSIM 2.1 with scenario template without root access"},"content":{"rendered":"<p>Due to the new release of ndnSIM (<a href=\"http:\/\/ndnsim.net\/2.1\/\" target=\"_blank\">version 2.1<\/a>) my last post about <a href=\"http:\/\/chkr.at\/wordpress\/?p=77\">running ndnSIM without root<\/a> has become obsolete. It is also no longer necessary to compile ndn-cxx as a separate library now. However, if you still want to use the (recommended)\u00a0<a href=\"https:\/\/github.com\/cawka\/ndnSIM-scenario-template\" target=\"_blank\">ndnSIM scenario template<\/a> without having root access, here are the steps to follow (for version 2.1):<\/p>\n<p>Step 1: follow the <a href=\"http:\/\/ndnsim.net\/2.1\/getting-started.html\" target=\"_blank\">installation (requirements, etc...) instructions<\/a> on the ndnSIM website until you have to type .\/waf the first time.<\/p>\n<p>For instance (after having installed all pre-requesits):<br \/>\n<code>mkdir ndnSIM<br \/>\ncd ndnSIM<br \/>\ngit clone https:\/\/github.com\/named-data-ndnSIM\/ns-3-dev.git ns-3<br \/>\ngit clone https:\/\/github.com\/named-data-ndnSIM\/pybindgen.git pybindgen<br \/>\ngit clone --recursive https:\/\/github.com\/named-data-ndnSIM\/ndnSIM.git ns-3\/src\/ndnSIM<br \/>\n<\/code><\/p>\n<p>Step 1.a: If you require <a href=\"http:\/\/www.cs.bu.edu\/brite\/\" target=\"_blank\">BRITE<\/a>, do this in addition:<br \/>\n<code><br \/>\nhg clone http:\/\/code.nsnam.org\/BRITE<br \/>\ncd BRITE<br \/>\nmake<br \/>\nexport BRITE_HOME=$(pwd)<br \/>\ncd ..<br \/>\n<\/code><\/p>\n<p>Step 2: Create a directory where ns-3 and ndnSIM will be \"installed\" into, e.g.:<br \/>\n<code>mkdir ndnSIM-build<br \/>\n<\/code><\/p>\n<p>Step 3: Go to the ns-3 subfolder and compile ns-3 and ndnSIM:<br \/>\n<code>cd ns-3<br \/>\n.\/waf configure --prefix ..\/ndnSIM-build -d optimized<br \/>\n.\/waf<br \/>\n<\/code><br \/>\nNote: --prefix ..\/ndnSIM-build tells the build-script to not install the libraries to the default location, but to ..\/ndnSIM-build.<\/p>\n<p>Step 3.a: If you followed Step 1.a for BRITE, you will have to add --with-brite=$BRITE_HOME to the .\/waf command:<br \/>\n<code>.\/waf configure --prefix ..\/ndnSIM-build -d optimized --with-brite=$BRITE_HOME<br \/>\n<\/code><\/p>\n<p>Step 4: Grab a coffee, tea, beer, etc.! This step takes some time...<\/p>\n<p>Step 5: Once this has finished, type<br \/>\n<code>.\/waf install<br \/>\n<\/code><br \/>\nNote: You did not have to use sudo! ns3 and ndnSIM are now being \"installed\" to ..\/ndnSIM-build<\/p>\n<p>Step 6: Set up LD_LIBRARY_PATH and PKG_CONFIG_PATH for being able to use the scenario template<br \/>\n<code>cd ..<br \/>\nexport LD_LIBRARY_PATH=$(pwd)\/ndnSIM-build\/lib\/<br \/>\nexport PKG_CONFIG_PATH=$LD_LIBRARY_PATH\/pkgconfig<br \/>\n<\/code><\/p>\n<p>Step 6.a: You might need to add those exports to your ~\/.bashrc file.<\/p>\n<p>Step 7: Download and configure scenario template<br \/>\n<code>git clone https:\/\/github.com\/named-data-ndnSIM\/scenario-template.git scenario<br \/>\ncd scenario<br \/>\n.\/waf configure<br \/>\n<\/code><\/p>\n<p>Step 8: Create your examples in the scenario template and run them!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to the new release of ndnSIM (version 2.1) my last post about running ndnSIM without root has become obsolete. It is also no longer necessary to compile ndn-cxx as a separate library now. However, if you still want to use the (recommended)\u00a0ndnSIM scenario template without having root access, here are the steps to follow <a class=\"read-more\" href=\"https:\/\/chkr.at\/wordpress\/?p=99\">...continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,6,7],"tags":[],"_links":{"self":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/99"}],"collection":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99"}],"version-history":[{"count":4,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions\/103"}],"wp:attachment":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}