2015-10-19 54 views
2

我剛剛更新了我的MacBook到埃爾卡皮坦我現在的Xcode 7.0.1有。編譯我的NS-3腳本時,出現以下錯誤(我沒有更新之前):「的libxml/xmlwriter.h」更新到7.0.1的Xcode和埃爾卡皮坦後未發現

In file included from ../src/config-store/model/config-store.cc:11: 
    ../src/config-store/model/xml-config.h:5:10: fatal error: 'libxml/xmlwriter.h' file not found 
    #include <libxml/xmlwriter.h> 
      ^
    1 error generated. 
    Waf: Leaving directory `/Users/marcogiordani/final-ns3-mmwave-dir/build' 
    Build failed 
    -> task in 'ns3-config-store' failed (exit status 1): 
     {task 4469735696: cxx config-store.cc -> config-store.cc.1.o} 
    ['/usr/bin/g++', '-Wall', '-Werror', '-Wno-potentially-evaluated-expression', '-Wno-unused-local-typedefs', '-fPIC', '-I.', '-I..', '-I/usr/include/libxml2', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_SQLITE3=1', '../src/config-store/model/config-store.cc', '-c', '-o', 'src/config-store/model/config-store.cc.1.o'] 

對此問題的任何建議?

回答

2

要敬啓者,我只需鍵入在終端上解決了這個問題:

xcode-select —-install 

出於某種原因,當更新到7.0.1的Xcode的CommandLineTool還沒有更新過,所以我手動完成了。現在一切正常。