我试图在CentOS6.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和所有必需的“开发工具”。谢谢。
最佳答案
一个有效的gcc:# yum install gcc-c++
也就是说,c++编译器的安装还将安装依赖项,这些依赖项将使gcc完全发挥作用:glibc devel、glibc headers、kernel headers。
关于linux - ejabberd通过“无法运行已编译的C程序”进行“制作”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/33675612/