configure: WARNING: ext/hash_map: present but cannot be compiled
configure: WARNING: ext/hash_map: check for missing prerequisite headers?
configure: WARNING: ext/hash_map: see the Autoconf documentation
configure: WARNING: ext/hash_map: section "Present But Cannot Be Compiled"
configure: WARNING: ext/hash_map: proceeding with the compiler's result
configure: WARNING: ## --------------------------------- ##
configure: WARNING: ## Report this to zongdai@taobao.com ##
configure: WARNING: ## --------------------------------- ##
checking for ext/hash_map... no
configure: error: in `/home/ha/tair':
configure: error: hash_map not found
See `config.log' for more details
如果單獨安裝gcc以及g++比較麻煩,幸運的是,為了能夠編譯Ubuntu的內核,Ubuntu提供了一個build-essential軟件包。
查看該軟件包的依賴關系,可以看到以下內容:$ apt-cache depends build-essential build-essential依賴: libc6-dev依賴: libc6-dev依賴: gcc依賴: g++依賴: make依賴: dpkg-dev
安裝方法如下:
$sudo apt-get install build-essential
gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
There are 2 choices for the alternative gcc (providing /usr/bin/gcc).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/gcc-4.9 60 auto mode
1 /usr/bin/gcc-4.4 40 manual mode
2 /usr/bin/gcc-4.9 60 manual mode