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