[ndnSIM] Problem in installing ndnSIM 2.1 / 2.2

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Thu Sep 21 14:44:34 PDT 2017


When you configure ndnSIM, we just check whether the cryptopp library exists on your systems and can be linked against ndnSIM. Therefore, I am not sure that the issue is the cryptopp version here.

Probably you can take a look at the log file and see what the error is.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA


> On Sep 21, 2017, at 2:17 AM, Carl Zu <carlzu8 at gmail.com> wrote:
> 
> I tried specifying the location, but it did not solve the problem and the same error is still there. I suspect the problem is with the version..
> 
> Which version of cryptopp was ndnSIM-2.1 using ? . Currently, my the version installed on my machine is libcrypto++-dev 5.6.1-6+deb8u3build0.14.04.1. And on your official webpage you are always asking people to install -dev version.
> 
> Thanks,
> C
> 
> On Thu, Sep 21, 2017 at 12:13 AM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>> wrote:
> Also, waf gives you an option to specify where the cryptopp library is located (run ./waf -h for more details):
> 
> --with-cryptopp=CRYPTOPP_DIR
> Path to where CryptoPP is installed, e.g., /usr/local
> 
> By default, they assume that it is located under /usr/local if I am not mistaken.
> 
> Thanks,
> 
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
> Internet Research Laboratory
> Computer Science Department
> UCLA
> 
>> On Sep 20, 2017, at 3:10 PM, John Baugh <jpbaugh at umich.edu <mailto:jpbaugh at umich.edu>> wrote:
>> 
>> Try copying / reinstalling CryptoPP to use/local/lib
>> 
>> On Sep 20, 2017 6:06 PM, "Carl Zu" <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>> Hi John,
>> 
>> In usr/lib. And please find attached config.log if it is needed.
>> 
>> Regards,
>> C
>> 
>> On Wed, Sep 20, 2017 at 11:41 PM, John Baugh <jpbaugh at umich.edu <mailto:jpbaugh at umich.edu>> wrote:
>> Where do you have CryptoPP installed?  What directory?
>> 
>> On Sep 20, 2017 5:39 PM, "Carl Zu" <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>> Dear Spyridon,
>> 
>> Could you please give me some more hints?
>> 
>> Thanks,
>> C
>> 
>> On Wed, Sep 20, 2017 at 9:07 PM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>> Hi Spyridon,
>> 
>> Thanks for the link. I read it carefully. However, I still have a couple of questions below:
>> 
>> 1. is the cryptoPP version(s) associated with ndnSIM's 2.1, 2.2, and 2.3 different ?. If this is the case, one cannot have different versions of ndnSIM installed on a single machine. Right?
>> 
>> 2. I could not find any information regarding the appropriate versions of cryptoPP for each of 2.1, 2.2, and 2.3 releases.
>> 
>> Thank you for your guidance in advance.
>> 
>> -C
>> 
>> On Wed, Sep 20, 2017 at 8:51 PM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>> wrote:
>> Probably you are using a different version of CryptoPP that the one expected.
>> 
>> Please take a look here:
>> 
>> https://github.com/named-data-ndnSIM/ndnSIM/issues/81#issuecomment-328081673 <https://github.com/named-data-ndnSIM/ndnSIM/issues/81#issuecomment-328081673>
>> 
>> Spyridon (Spyros) Mastorakis
>> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
>> Internet Research Laboratory
>> Computer Science Department
>> UCLA
>> 
>>> On Sep 20, 2017, at 11:49 AM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>>> 
>>> Thank you Spyridon.
>>> 
>>> Yes, just figured out that for ndnSIM 2.1, I need to download version 0.3.4 for NFD and ndn-cxx. Now, it configures, but it says:
>>> 
>>> CryptoPP is present, but is not usable
>>> (complete log in /home/carl/ndnSIM-2.1/ns-3/build/config.log)
>>> 
>>> I have installed all the prerequisites completely. What could be wrong here.
>>> 
>>> Thanks,
>>> C
>>> 
>>> 
>>> 
>>> On Wed, Sep 20, 2017 at 8:43 PM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>> wrote:
>>> Take a look at the release notes of each version. The NFD and ndn-cxx versions are mentioned there.
>>> 
>>> Then, follow those links and clone the branches with the appropriate version:
>>> 
>>> https://github.com/named-data-ndnSIM/ndn-cxx <https://github.com/named-data-ndnSIM/ndn-cxx>
>>> https://github.com/named-data-ndnSIM/NFD <https://github.com/named-data-ndnSIM/NFD>
>>> 
>>> Thanks,
>>> 
>>> Spyridon (Spyros) Mastorakis
>>> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
>>> Internet Research Laboratory
>>> Computer Science Department
>>> UCLA
>>> 
>>>> On Sep 20, 2017, at 11:39 AM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>>>> 
>>>> Hi Spyridon,
>>>> 
>>>> Correct.
>>>> 
>>>> Which NFD and ndn-cxx versions are associated with 2.1 and 2.2 ? Could you please give me instructions how can I do this with clone and with recursive flag ?
>>>> 
>>>> Thanks,
>>>> C
>>>> 
>>>> On Wed, Sep 20, 2017 at 8:37 PM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>>>> Hi Spyridon,
>>>> 
>>>> Correct.
>>>> 
>>>> Which NFD and ndn-cxx versions are associated with 2.1 and 2.2 ?
>>>> 
>>>> Thanks,
>>>> C
>>>> 
>>>> On Wed, Sep 20, 2017 at 8:34 PM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>> wrote:
>>>> NFD and ndn-cxx are linked as github submodules with the simulator.
>>>> 
>>>> Unless you use git clone with the —recursive flag on, you will download the ndnSIM source code that contains 2 empty directories named NFD and ndn-cxx.
>>>> 
>>>> Spyridon (Spyros) Mastorakis
>>>> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
>>>> Internet Research Laboratory
>>>> Computer Science Department
>>>> UCLA
>>>> 
>>>>> On Sep 20, 2017, at 11:31 AM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>>>>> 
>>>>> Hi all,
>>>>> 
>>>>> @John: I am on ubuntu 14.04.
>>>>> 
>>>>> @Spyridon: When I use the following link to download 2.1, how could I download the wrong NFD and ndn-cxx versions associated with this simulator ?
>>>>> 
>>>>> https://github.com/named-data-ndnSIM/ndnSIM/releases/tag/ndnSIM-2.1 <https://github.com/named-data-ndnSIM/ndnSIM/releases/tag/ndnSIM-2.1>
>>>>> 
>>>>> Thanks,
>>>>> C 
>>>>> 
>>>>> On Wed, Sep 20, 2017 at 8:26 PM, Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>> wrote:
>>>>> Hi,
>>>>> 
>>>>> are you sure you download the appropriate NFD and ndn-cxx versions associated with the simulator too?
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> Spyridon (Spyros) Mastorakis
>>>>> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
>>>>> Internet Research Laboratory
>>>>> Computer Science Department
>>>>> UCLA
>>>>> 
>>>>>> On Sep 20, 2017, at 11:18 AM, Carl Zu <carlzu8 at gmail.com <mailto:carlzu8 at gmail.com>> wrote:
>>>>>> 
>>>>>> Hi everyone,
>>>>>> 
>>>>>> I need to install ndnSIM 2.1.I downloaded ndnSIM 2.1 from here:
>>>>>> 
>>>>>> https://github.com/named-data-ndnSIM/ndnSIM/releases/tag/ndnSIM-2.1 <https://github.com/named-data-ndnSIM/ndnSIM/releases/tag/ndnSIM-2.1>
>>>>>> 
>>>>>> As for "ns-3" and "pybindgen", first, I did the following:  
>>>>>> 
>>>>>> git clone https://github.com/named-data-ndnSIM/ns-3-dev.git <https://github.com/named-data-ndnSIM/ns-3-dev.git> ns-3
>>>>>> git clone https://github.com/named-data-ndnSIM/pybindgen.git <https://github.com/named-data-ndnSIM/pybindgen.git> pybindgen
>>>>>> 
>>>>>> After, I tried also downloading older versions of "pybindgen" as well as "ns-3". But in any case, when I write "./waf configure --enable-examples", I have the following error:
>>>>>> 
>>>>>> Traceback (most recent call last):
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point
>>>>>>     run_commands()
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 165, in run_commands
>>>>>>     parse_options()
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 138, in parse_options
>>>>>>     Context.create_context('options').execute()
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Options.py", line 146, in execute
>>>>>>     super(OptionsContext,self).execute()
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 92, in execute
>>>>>>     self.recurse([os.path.dirname(g_module.root_path)])
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse
>>>>>>     user_function(self)
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/wscript", line 213, in options
>>>>>>     opt.recurse('src')
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse
>>>>>>     user_function(self)
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/src/wscript", line 48, in options
>>>>>>     opt.recurse(module, mandatory=False)
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse
>>>>>>     user_function(self)
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/src/ndnSIM/wscript", line 16, in options
>>>>>>     opt.load(['version'], tooldir=['%s/.waf-tools' % opt.path.abspath()])
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 86, in load
>>>>>>     module=load_tool(t,path)
>>>>>>   File "/home/carl/ndnSIM-2.1/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 342, in load_tool
>>>>>>     __import__(tool)
>>>>>> ImportError: No module named version
>>>>>> 
>>>>>> I have the same problem for installing ndnSIM 2.2 as well. That is, I can only install the latest version. Does anybody have a successful experience on installing 2.1 or 2.2 ? I highly appreciate any guidance.
>>>>>> 
>>>>>> Thanks,
>>>>>> C
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170921/31369927/attachment-0001.html>


More information about the ndnSIM mailing list