我一直在尝试在我的EC2实例上安装Gearman,但是当我尝试./configure gearmand时,我得到了这个:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/ec2-user/gearmand-1.1.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Run Code Online (Sandbox Code Playgroud)
现在,奇怪的是GCC绝对是安装的.
which gcc46
Run Code Online (Sandbox Code Playgroud)
回报
/usr/bin/gcc46
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试运行命令"gcc"时,它找不到...
我试图通过yum擦除/重新安装/重新安装gcc和gcc-c ++,但这似乎没有帮助.
有什么建议?提前致谢.
我一直在用C编写一些套接字代码.我需要修改数据包头并控制它们的发送方式,所以我采用了原始套接字方法.但是,我写的代码不能在BSD系统上编译(Mac OS X/Darwin,FreeBSD等)
我已经对此进行了大量研究,并发现BSD系统无法像Linux(甚至Windows)那样处理原始套接字.从我读过的内容来看,似乎我需要使用bpf(berkley数据包过滤器),但我无法弄清楚bpf是如何工作的,或者我将如何使用原始套接字.
如果有人能对这一点有所了解,我会非常兴奋:D
PS我甚至会对一些显示如何在BSD环境中处理原始套接字的源代码感到满意.它不一定是指导或解释.我只想看看它是如何工作的.