简体   繁体   English

在Unix上编译和安装Apache HTTP Server的问题

[英]Problems with the compilation and installation of the Apache HTTP Server on Unix

When I try "Configuring the source tree" in the link below: http://httpd.apache.org/docs/current/install.html#upgrading I get the following error and can't see the problem any ideas? 当我在下面的链接中尝试“配置源代码树”时: http : //httpd.apache.org/docs/current/install.html#upgrading我收到以下错误,看不到任何问题吗?

Thanks 谢谢

$ sudo CC="pgcc" CFLAGS="-O2" \\ $ sudo CC =“ pgcc” CFLAGS =“-O2” \\

./configure --prefix=/sw/pkg/apache \\ --enable-ldap=shared \\ --enable-lua=shared [sudo] password for dosullivan: checking for chosen layout... Apache checking for working mkdir -p... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E 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 configure: configure: Configuring Apache Portable Runtime library... configure: checking for APR... yes setting CPP to "x86_64-linux-gnu-gcc -E" adding "-pthread" to CFLAGS setting CPPFLAGS to " -D_REENTRANT -D_GNU_SOURCE" setting LDFLAGS to " " configure: configure: Configuring Apache Portable Runtime Utility library... configure: checking for APR-util... yes checking for gcc... pgcc checking whether the C compiler works... no configure: error: in /home/dosullivan/httpd-2.4.4': configure: error: C compiler cannot create executables See config.l ./configure --prefix = / sw / pkg / apache \\ --enable-ldap = shared \\ --enable-lua = shared dosullivan的[sudo]密码:检查选择的布局... Apache检查工作的mkdir -p ...是,检查处理长行的grep,然后-e ... / bin / grep检查egrep ... / bin / grep -E检查构建系统类型... x86_64-unknown-linux-gnu检查主机系统类型... x86_64-unknown-linux-gnu检查目标系统类型... x86_64-unknown-linux-gnu配置:配置:配置Apache Portable Runtime库...配置:检查APR ...是,将CPP设置为“ x86_64-linux-gnu-gcc -E“将” -pthread“添加到CFLAGS,将CPPFLAGS设置为” -D_REENTRANT -D_GNU_SOURCE“,将LDFLAGS设置为”“配置:配置:配置Apache Portable Runtime Utility库...配置:检查APR- util ...是,检查gcc ... pgcc,检查C编译器是否工作...否配置:错误:在/home/dosullivan/httpd-2.4.4': configure: error: C compiler cannot create executables See config .l og' for more details og'了解更多详细信息

It appears that 'pgcc' is not the name of your compiler. 看来“ pgcc”不是您的编译器的名称。 Are you sure you didn't mean to use 'gcc'? 您确定不是要使用'gcc'吗?

Basically, the configure command is trying to produce a 'hello world' style program just to make sure that it has access to a working compiler. 基本上,configure命令试图生成一个“ hello world”风格的程序,只是为了确保它可以访问正常工作的编译器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM