ejabberd' make'通过"无法运行已编译的C程序"

时间:2015-11-12 15:50:34

标签: linux gcc centos erlang ejabberd

我正在尝试在CentOS 6.x上安装ejabberd,当我运行" make"命令它给我以下错误。

ejabberd]# make
rm -rf deps/.got
rm -rf deps/.built
/usr/lib/erlang/bin/escript rebar get-deps && :> deps/.got
==> goldrush (get-deps)
==> lager (get-deps)
==> p1_utils (get-deps)
==> p1_cache_tab (get-deps)
==> p1_tls (get-deps)
==> p1_stringprep (get-deps)
==> p1_xml (get-deps)
==> p1_stun (get-deps)
==> esip (get-deps)
==> p1_yaml (get-deps)
==> jiffy (get-deps)
==> oauth2 (get-deps)
==> xmlrpc (get-deps)
==> p1_zlib (get-deps)
==> p1_iconv (get-deps)
==> rel (get-deps)
==> ejabberd (get-deps)
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/root/ejabberd/deps/p1_tls':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
ERROR: Command ['get-deps'] failed!
make: *** [deps/.got] Error 1

你能帮我解决一下这个问题吗?我已经安装了 Erlang-17.5 以及所有必需的" 开发工具"谢谢。

2 个答案:

答案 0 :(得分:0)

有效的gcc:# yum install gcc-c++

即。安装c ++编译器还将安装将使gcc完全正常运行的依赖项:glibc-devel,glibc-headers,kernel-headers。

答案 1 :(得分:0)

如果出现此错误,请务必安装

 # yum install glibc-headers

这将解决您的错误。