Ubuntu
安裝namecoin時這個錯誤是什麼意思?
我正在嘗試設置 namecoin,但在執行 makefile.unix 時出現以下錯誤:
$ g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -DNOPCH DFOURWAYSSE2 -DUSE_SSL -DUSE_UPNP=0 -o obj/nogui/net.o net.cpp In file included from net.cpp:10: /usr/include/miniupnpc/upnpcommands.h:11:30: error: portlistingparse.h: No such file or directory /usr/include/miniupnpc/upnpcommands.h:13:28: error: miniupnpctypes.h: No such file or directory In file included from net.cpp:10: /usr/include/miniupnpc/upnpcommands.h:25: error: ‘UNSIGNED_INTEGER’ does not name a type /usr/include/miniupnpc/upnpcommands.h:29: error: ‘UNSIGNED_INTEGER’ does not name a type /usr/include/miniupnpc/upnpcommands.h:33: error: ‘UNSIGNED_INTEGER’ does not name a type /usr/include/miniupnpc/upnpcommands.h:37: error: ‘UNSIGNED_INTEGER’ does not name a type /usr/include/miniupnpc/miniupnpc.h: In function ‘void ThreadMapPort2(void*)’: /usr/include/miniupnpc/miniupnpc.h:53: error: too few arguments to function ‘UPNPDev* upnpDiscover(int, const char*, const char*, int, int, int*)’ net.cpp:906: error: at this point in file /usr/include/miniupnpc/upnpcommands.h:117: error: too few arguments to function ‘int UPNP_AddPortMapping(const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*, const char*)’ net.cpp:920: error: at this point in file make: *** [obj/nogui/net.o] Error 1
我認為問題可能出在 Berkeley DB,但我不知道如何檢查。有人知道嗎?
亞歷克斯的評論是正確的,最新的 miniupnpc 壞了。但是,您可以在此處使用工作版本:
http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.5.tar.gz
然後 namecoind 將正常編譯。