{"id":77,"date":"2015-02-26T21:01:25","date_gmt":"2015-02-26T21:01:25","guid":{"rendered":"http:\/\/chkr.at\/wordpress\/?p=77"},"modified":"2015-10-07T11:59:51","modified_gmt":"2015-10-07T11:59:51","slug":"running-ndnsim-2-0-without-root","status":"publish","type":"post","link":"https:\/\/chkr.at\/wordpress\/?p=77","title":{"rendered":"Running ndnSIM 2.0 without root"},"content":{"rendered":"<p><strong>Update Oct. 7th:<\/strong>\u00a0As of version 2.1, ndn-cxx and NFD are now \"integrated\" in the ndnSIM git repository, therefore this post is now obsolete.<\/p>\n<p><strong>Update June 25th<\/strong>: ndn-cxx must be compiled as a shared library now! Changes are already included in this tutorial, but you must also follow the information provided here: <a href=\"http:\/\/chkr.at\/wordpress\/?p=84\">ndn-cxx and ndnSIM - shared library problem<\/a>.<\/p>\n<p>If you ever wondered what you have to do to get ndnSIM + ndn-cxx run without having root access, then this is the right guide.<br \/>\nHowever, I do assume that SOMEONE does have root access and can install standard-libraries for you.<br \/>\nThis is what it looks like on Ubuntu 14.04 (64 bit):<\/p>\n<p>Make your administrator install the following packages (if not already installed)<br \/>\n<code><br \/>\nsudo apt-get install build-essential libsqlite3-dev libcrypto++-dev libboost-all-dev<br \/>\nsudo apt-get install pkg-config git<br \/>\n<\/code><\/p>\n<p>And then continue with the following commands yourself (assuming you are in your home directory):<br \/>\n<code><br \/>\nmkdir ndnSIM<br \/>\ncd ndnSIM<br \/>\ngit clone https:\/\/github.com\/named-data\/ndn-cxx.git ndn-cxx<br \/>\ngit clone https:\/\/github.com\/named-data\/ndn-cxx.git ndn-cxx<br \/>\ngit clone https:\/\/github.com\/cawka\/ns-3-dev-ndnSIM.git ns-3<br \/>\ngit clone https:\/\/github.com\/cawka\/pybindgen.git pybindgen<br \/>\ngit clone https:\/\/github.com\/named-data\/ndnSIM.git ns-3\/src\/ndnSIM<br \/>\ncd ndn-cxx<br \/>\n.\/waf configure --prefix \/home\/$USER\/ndnSIM\/usr\/local\/ --enable-shared --disable-static<br \/>\n.\/waf<br \/>\n.\/waf install<\/code><\/p>\n<p>export LIBRARY_PATH=\/home\/$USER\/ndnSIM\/usr\/local\/lib\/<br \/>\nexport LD_LIBRARY_PATH=\/home\/$USER\/ndnSIM\/usr\/local\/lib\/<br \/>\nexport PKG_CONFIG_PATH=$LD_LIBRARY_PATH\/pkgconfig<br \/>\nexport CPLUS_INCLUDE_PATH=\/home\/$USER\/ndnSIM\/usr\/local\/include\/<br \/>\ncd ..<br \/>\ncd ns-3\/<\/p>\n<p>.\/waf configure --prefix \/home\/$USER\/ndnSIM\/usr\/local\/ -d optimized --disable-python<br \/>\n.\/waf<br \/>\n.\/waf install<\/p>\n<p>You may copy the exports into your .bashrc file and adapt them like this:<\/p>\n<p><code><br \/>\nexport LIBRARY_PATH=\/home\/$USER\/ndnSIM\/usr\/local\/lib\/:$LIBRARY_PATH<br \/>\nexport LD_LIBRARY_PATH=\/home\/$USER\/ndnSIM\/usr\/local\/lib\/:$LD_LIBRARY_PATH<br \/>\nexport PKG_CONFIG_PATH=\/home\/$USER\/ndnSIM\/usr\/local\/lib\/pkgconfig<br \/>\nexport CPLUS_INCLUDE_PATH=\/home\/$USER\/ndnSIM\/usr\/local\/include\/:$CPLUS_INCLUDE_PATH<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update Oct. 7th:\u00a0As of version 2.1, ndn-cxx and NFD are now \"integrated\" in the ndnSIM git repository, therefore this post is now obsolete. Update June 25th: ndn-cxx must be compiled as a shared library now! Changes are already included in this tutorial, but you must also follow the information provided here: ndn-cxx and ndnSIM - <a class=\"read-more\" href=\"https:\/\/chkr.at\/wordpress\/?p=77\">...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":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/77"}],"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=77"}],"version-history":[{"count":4,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}