[ndnSIM] Problem about ns-3 build

Spyridon (Spyros) Mastorakis spiros.mastorakis at gmail.com
Fri Apr 24 21:35:28 PDT 2015


Hi,

I will make a guess: Do you have any files of the codebase, which are about to be configured and compiled, open with unsaved changes?

Because this could cause such an error… If this is not the case, I would suggest that you create a new directory and make a fresh clone of ns3 and ndnSIM.

Hope that this helps.

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




> On Apr 24, 2015, at 9:19 PM, mickey-gmail <mickeysjm at gmail.com> wrote:
> 
> I tried to build the ns-3 on my Mac OS 10.10.2, I found a problem about "AttributeError: 'bool' object has no attribute ‘split’”. I double checked the python version ( which is 2.7 ), and gtk module( which is ok. ). I also tried to disabled  python bindings, but it didn’t work. Did anyone meet this kind of problem previously and know a clue to solve it? 
> 
> Thanks.
> 
>> p.s.(error-log)
> chenjiamingdeMacBook-Pro:~ shenjiaming$ cd '/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/'
> chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ ls
> AUTHORS		RELEASE_NOTES	examples	utils		waf.bat
> CHANGES.html	VERSION		scratch		utils.py	wscript
> LICENSE		bindings	src		utils.pyc	wutils.py
> Makefile	build		test.py		waf		wutils.pyc
> README		doc		testpy.supp	waf-tools
> chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ ./waf configure --enable-examples
> Setting top to                           : /Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3 
> Setting out to                           : /Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/build 
> Checking for 'gcc' (c compiler)          : /usr/bin/gcc 
> Checking for cc version                  : 6.1.0 
> Checking for 'g++' (c++ compiler)        : /usr/bin/g++ 
> Checking supported compiler CXXFLAGS     : -std=c++0x -std=c++11 
> Checking supported optimizations CXXFLAGS : -O0 
> Checking supported debug CXXFLAGS         : -ggdb -g3 
> Checking supported warnings CXXFLAGS      : -Wall -Wno-error=deprecated-declarations -fstrict-aliasing -Wstrict-aliasing 
> Checking for program python               : /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python 
> Checking for python version               : (2, 7, 9, 'final', 0) 
> Checking for library python2.7 in LIBPATH_PYEMBED : yes 
> Checking for program python-config                : /opt/local/bin/python2.7-config 
> Checking for header Python.h                      : yes 
> Checking for compilation flag -fvisibility=hidden... support : ok 
> Checking for compilation flag -Wno-array-bounds... support   : ok 
> Checking for pybindgen location                              : ../pybindgen (guessed) 
> Checking for python module 'pybindgen'                       : 0.17.0.887 
> Checking for pybindgen version                               : 0.17.0.887 
> Checking for types uint64_t and unsigned long equivalence    : no 
> Checking for types uint64_t and unsigned long long equivalence : yes 
> Checking for the apidefs that can be used for Python bindings  : gcc-ILP32 
> Checking for internal GCC cxxabi                               : incomplete 
> Checking for python module 'pygccxml'                          : not found 
> Checking boost includes                                        : ok 
> Checking boost libs                                            : ok 
> Checking for boost linkage                                     : ok 
> Checking for click location                                    : not found 
> Checking for program pkg-config                                : /opt/local/bin/pkg-config 
> Checking for 'gtk+-2.0' >= 2.12                                : yes 
> Checking for 'libxml-2.0' >= 2.7                               : yes 
> Checking for type uint128_t                                    : not found 
> Checking for type __uint128_t                                  : yes 
> Checking high precision implementation                         : 128-bit integer (default) 
> Checking for header stdint.h                                   : yes 
> Checking for header inttypes.h                                 : yes 
> Checking for header sys/inttypes.h                             : not found 
> Checking for header sys/types.h                                : yes 
> Checking for header sys/stat.h                                 : yes 
> Checking for header dirent.h                                   : yes 
> Checking for header stdlib.h                                   : yes 
> Checking for header signal.h                                   : yes 
> Checking for header pthread.h                                  : yes 
> Checking for header stdint.h                                   : yes 
> Checking for header inttypes.h                                 : yes 
> Checking for header sys/inttypes.h                             : not found 
> Checking for library rt                                        : not found 
> Checking for header netpacket/packet.h                         : not found 
> Checking for header sys/ioctl.h                                : yes 
> Checking for header net/if.h                                   : yes 
> Checking for header net/ethernet.h                             : yes 
> Checking for header linux/if_tun.h                             : not found 
> Checking for header netpacket/packet.h                         : not found 
> Checking for NSC location                                      : not found 
> Checking for program doxygen                                   : /opt/local/bin/doxygen 
> Checking for program tar                                       : /usr/bin/tar 
> Checking for program sphinx-build                              : /usr/local/bin/sphinx-build 
> Checking for std::is_default_constructible                     : yes 
> Checking for std::is_move_constructible                        : yes 
> Checking for override specifier                                : yes 
> Checking for 'libndn-cxx'                                      : yes 
> Traceback (most recent call last):
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 97, in waf_entry_point
>     run_commands()
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 153, in run_commands
>     ctx=run_command(cmd_name)
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Scripting.py", line 146, in run_command
>     ctx.execute()
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Configure.py", line 128, in execute
>     super(ConfigurationContext,self).execute()
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 87, in execute
>     self.recurse([os.path.dirname(g_module.root_path)])
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse
>     user_function(self)
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/wscript", line 378, in configure
>     conf.recurse('src')
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse
>     user_function(self)
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/src/wscript", line 68, in configure
>     conf.recurse(module, mandatory=False)
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/.waf-1.7.11-2f760793a9090bf35f69082a250595d9/waflib/Context.py", line 128, in recurse
>     user_function(self)
>   File "/Users/shenjiaming/Desktop/CCN/ndnSIM/ns-3/src/ndnSIM/wscript", line 60, in configure
>     boost_version = conf.env.BOOST_VERSION.split('_')
> AttributeError: 'bool' object has no attribute 'split'
> chenjiamingdeMacBook-Pro:ns-3 shenjiaming$ 
> _______________________________________________
> 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