- 主题:按照精华区的帖子安装 SMTHBBS 1.2 出错
先:
php-4.3.1]# ./configure --with-apxs=/usr/local/www/bin/apxs --disable-debug --enable-pic --disable-rpath --enable-inline-optimization
--with-dom --with-gd --with-freetype-dir=/usr/lib --with-png-dir --with-iconv --with-jpeg-dir --with-zlib --enable-track-vars
在 make 时:
ext/mysql/libmysql/my_tempnam.lo(.text+0x49): In function `my_tempnam':
/root/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'
ext/mysql/libmysql/my_lib.lo(.text+0x1d3): In function `my_stat':
/root/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to `errno'
ext/mysql/libmysql/my_lib.lo(.text+0x63b): In function `my_dir':
/root/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to `errno'
ext/mysql/libmysql/my_malloc.lo(.text+0x149): In function `my_malloc':
/root/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno'
ext/mysql/libmysql/my_realloc.lo(.text+0x188): In function `my_realloc':
/root/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno'
ext/mysql/libmysql/my_delete.lo(.text+0x102): In function `my_delete':
/root/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno'
ext/mysql/libmysql/my_tempnam.lo(.text+0x97):/root/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:108: more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
请问怎么办?
--
FROM 219.128.252.*
什么操作系统?
这个 make 过程错误是 php 的,不是 smthbbs 的 :)
【 在 wgwhl (流浪汉) 的大作中提到: 】
: 先:
: php-4.3.1]# ./configure --with-apxs=/usr/local/www/bin/apxs --disable-debug --enable-pic --disable-rpath --enable-inline-optimization
: --with-dom --with-gd --with-freetype-dir=/usr/lib --with-png-dir --with-iconv --with-jpeg-dir --with-zlib --enable-track-vars
: ...................
--
FROM 61.149.140.*
我的是 Redhat9,php是在smth提供的连接下载的,不知对不对?
【 在 flyriver (江~~人生抉择) 的大作中提到: 】
: 什么操作系统?
: 这个 make 过程错误是 php 的,不是 smthbbs 的 :)
--
FROM 219.128.252.*
apache什么版本,另外mysql装了什么版本?
rpm -q httpd
rpm -q mysql
看看
php有这个和mysql之间配合的问题,有段时间差点搞死我,后来php5里面干脆大调整...
【 在 wgwhl (流浪汉) 的大作中提到: 】
: 我的是 Redhat9,php是在smth提供的连接下载的,不知对不对?
--
FROM 128.12.155.*
有这个问题?
【 在 atppp (Big Mouse) 的大作中提到: 】
: apache什么版本,另外mysql装了什么版本?
: rpm -q httpd
: rpm -q mysql
: ...................
--
FROM 219.224.186.149
他不是php编译出错嘛...
【 在 Carlking (我的心因你而醉) 的大作中提到: 】
: 有这个问题?
--
FROM 128.12.155.*
我好像也有这个问题
apache是2.0.46的
php是4.3.3的
【 在 atppp (Big Mouse) 的大作中提到: 】
: 他不是php编译出错嘛...
--
FROM 219.224.186.149
httpd-2.0.40-21
mysql-3.23.54a-11
何解?
【 在 atppp (Big Mouse) 的大作中提到: 】
: apache什么版本,另外mysql装了什么版本?
: rpm -q httpd
: rpm -q mysql
: ...................
--
FROM 219.128.252.*
doc/INSTALL 可以加上这个:
2.8 如果使用 apache2,步骤 2.4 - 2.7 中需要修改的地方是:
apache 的 configure 命令改成:
./configure --prefix=/usr/local/www --enable-so
php 的 configure 命令里面的 --with-apxs=/usr/local/www/bin/apxs 改成:
--with-apxs2=/usr/local/www/bin/apxs
有没有人有意见...
【 在 Carlking (我的心因你而醉) 的大作中提到: 】
: 我好像也有这个问题
: apache是2.0.46的
: php是4.3.3的
: ...................
--
FROM 128.12.155.*
这个版本的php好象就是这样的
我的解决方法是在那些有问题的文件里前面加上了
#include <errno.h>
【 在 wgwhl (流浪汉) 的大作中提到: 】
: 先:
: php-4.3.1]# ./configure --with-apxs=/usr/local/www/bin/apxs --disable-debug --enable-pic --disable-rpath --enable-inline-optimization
: --with-dom --with-gd --with-freetype-dir=/usr/lib --with-png-dir --with-iconv --with-jpeg-dir --with-zlib --enable-track-vars
: ...................
--
FROM 219.224.139.*