- 主题:请帮忙看一下cygwin下安装apache的这个错误是什么意思:)
Admin@0cec7d17a7df4bc /pack/apache_1.3.27
$ ./configure --prefix=/usr/local/www
Configuring for Apache, Version 1.3.27
+ using installation path layout: Apache (config.layout)
+ Warning: no Perl interpreter detected for support scripts.
+ Perhaps you need to specify one with --with-perl=FILE.
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for Cygwin platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ checking for system header files
+ adding selected modules
+ using system Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.
======== Error Output for sanity check ========
cd ..; gcc -DCYGWIN -DUSE_HSREGEX -DNO_DL_NEEDED `./apaci` -o helpers/dummy
helpers/dummy.c -lcrypt -lgdbm -lexpat
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-lgdbm
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============
Aborting!
看不明白,是少装了某一个库吗?谢谢~~~~~
--
FROM 211.99.222.*
木有gcc?
【 在 aae (幽谷百合) 的大作中提到: 】
: Admin@0cec7d17a7df4bc /pack/apache_1.3.27
: $ ./configure --prefix=/usr/local/www
: Configuring for Apache, Version 1.3.27
: ...................
--
FROM 211.101.19.14
刚刚装了gcc那一系列东西啊。。。。。。
【 在 baileifirst (漢之雲进行时) 的大作中提到: 】
: 木有gcc?
--
FROM 211.99.222.*
刚google了一下。。。。
Missing or Misconfigured libgdbm.so
On some Linux RedHat systems you might encounter a problem during the perl Makefile.PL stage, when the installed from the rpm package Perl was built with the gdbm library, but the library isn't actually installed. If this is your situation make sure you install it before proceeding with the build process.
You can check how Perl was built by running the perl -V command:
% perl -V | grep libs
On my machine I get:
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
Sometimes the problem is even more obscure: you do have libgdbm installed but it's not properly installed. Do this:
% ls /usr/lib/libgdbm.so*
If you get at least three lines like I do:
lrwxrwxrwx /usr/lib/libgdbm.so -> libgdbm.so.2.0.0
lrwxrwxrwx /usr/lib/libgdbm.so.2 -> libgdbm.so.2.0.0
-rw-r--r-- /usr/lib/libgdbm.so.2.0.0
you are all set. On some installations the libgdbm.so symbolic link is missing, so you get only:
lrwxrwxrwx /usr/lib/libgdbm.so.2 -> libgdbm.so.2.0.0
-rw-r--r-- /usr/lib/libgdbm.so.2.0.0
To fix this problem add the missing symbolic link:
% cd /usr/lib
% ln -s libgdbm.so.2.0.0 libgdbm.so
Now you should be able to build mod_perl without any problems.
Note that you might need to prepare this symbolic link as well:
lrwxrwxrwx /usr/lib/libgdbm.so.2 -> libgdbm.so.2.0.0
with:
% ln -s libgdbm.so.2.0.0 libgdbm.so.2
Of course if when you read this a new version of the libgdbm library will be released, you will have to adjust the version numbers. We didn't use the usual xx version replacement here, to make it easier to understand how the symbolic links should be set.
【 在 aae (幽谷百合) 的大作中提到: 】
: 刚刚装了gcc那一系列东西啊。。。。。。
--
FROM 211.101.19.14
太感谢了:)这个东西真不好找~~~~~
【 在 baileifirst (漢之雲进行时) 的大作中提到: 】
: 刚google了一下。。。。
: Missing or Misconfigured libgdbm.so
: On some Linux RedHat systems you might encounter a problem during the perl Makefile.PL stage, when the installed from the rpm package Perl was built with the gdbm library, but the library isn't actually installed. If this is your situation make sure
: ...................
--
FROM 211.99.222.*
执行make后有一大堆东西,最后显示这个:
collect2: ld returned 1 exit status
make: *** [sapi/cli/php.exe] Error 1
是不是少了什么东西啊?谢谢~~~~
【 在 aae (幽谷百合) 的大作中提到: 】
: 太感谢了:)这个东西真不好找~~~~~
--
FROM 211.99.222.*
刚才翻旧帖子看到flyriver说把libxm12装上就好了,所以我重新安装了一次libxm12
但问题还在……
【 在 aae (幽谷百合) 的大作中提到: 】
: 执行make后有一大堆东西,最后显示这个:
: collect2: ld returned 1 exit status
: make: *** [sapi/cli/php.exe] Error 1
: ...................
--
FROM 211.99.222.*
ld returned之前那一句呢
【 在 aae (幽谷百合) 的大作中提到: 】
: 标 题: Re: 求助cygwin 下安装php是make的错误。。。。。。:)
: 发信站: 水木社区 (Tue Jan 8 19:30:47 2008), 转信
:
: 刚才翻旧帖子看到flyriver说把libxm12装上就好了,所以我重新安装了一次libxm12
: 但问题还在……
:
: 【 在 aae (幽谷百合) 的大作中提到: 】
: : 执行make后有一大堆东西,最后显示这个:
: : collect2: ld returned 1 exit status
: : make: *** [sapi/cli/php.exe] Error 1
: : ...................
:
: --
:
: ※ 来源:·水木社区 newsmth.net·[FROM: 211.99.222.*]
--
FROM 60.207.206.*
是这个:谢谢~~~:)
ext/xml/xml.o: In function `zif_xml_error_string':
/pack/php-4.3.1/ext/xml/xml.c:1412: undefined reference to `__imp__php_XML_Error
String'
ext/xml/xml.o: In function `zif_xml_get_current_line_number':
/pack/php-4.3.1/ext/xml/xml.c:1431: undefined reference to `__imp__php_XML_GetCu
rrentLineNumber'
ext/xml/xml.o: In function `zif_xml_get_current_column_number':
/pack/php-4.3.1/ext/xml/xml.c:1447: undefined reference to `__imp__php_XML_GetCu
rrentColumnNumber'
ext/xml/xml.o: In function `zif_xml_get_current_byte_index':
/pack/php-4.3.1/ext/xml/xml.c:1463: undefined reference to `__imp__php_XML_GetCu
rrentByteIndex'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php.exe] Error 1
【 在 JulyClyde (七月) 的大作中提到: 】
: ld returned之前那一句呢
--
修改:aae FROM 211.99.222.*
FROM 211.99.222.*
再前呢
【 在 aae (幽谷百合) 的大作中提到: 】
: 是这个:谢谢~~~:)
: ext/xml/xml.o: In function `zif_xml_error_string':
: /pack/php-4.3.1/ext/xml/xml.c:1412: undefined reference to `__imp__php_XML_Error
: ...................
--
FROM 60.207.206.*