Submitted by admin on 2009, January 19, 5:21 PM
编译PHP5时提示
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
安装
yum install libtool-ltdl
yum install libtool-ltdl-devel
就可以了.
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.4 (Final)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x8
6_64 x86_64 x86_64 GNU/Linux
php-5.2.12
在用yum安装libtool-ltdl-devel后编译php-5.2.12提示下如
/usr/lib/libltdl.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
安装php-5.2.13没问题
----------------------------------
yum install libpng
configure: error: libjpeg.(a|so) not found
ln -sf libjpeg.so.62.0.0 libjpeg.so
configure: error: libpng.(a|so) not found.
yum install libpng-devel
php | 评论:0
| Trackbacks:0
| 阅读:1206
Submitted by admin on 2009, January 7, 1:54 PM
set password for user1@"localhost"=old_password('yourPassword');
UPDATE user SET Password = OLD_PASSWORD('newpwd') WHERE User = 'usrname';
flush privileges;
MYSQL 帮助:
A.2.3 Client does not support authentication protocol
MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. If you upgrade the server to 4.1, attempts to connect to it with an older client may fail with the following message:
shell> mysql
Client does not support authentication protocol requested
by server; consider upgrading MySQL client
To solve this problem, you should use one of the following approaches:
- Upgrade all client programs to use a 4.1.1 or newer client library.
- When connecting to the server with a pre-4.1 client program, use an account that still has a pre-4.1-style password.
- Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the
SET PASSWORD
statement and the OLD_PASSWORD()
function:
mysql> SET PASSWORD FOR
-> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
Alternatively, use UPDATE
and FLUSH PRIVILEGES
:
mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;
Substitute the password you want to use for ``newpwd'' in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.
- Tell the server to use the older password hashing algorithm:
- Start
mysqld
with the --old-passwords
option.
- Assign an old-format password to each account that has had its password updated to the longer 4.1 format. You can identify these accounts with the following query:
mysql> SELECT Host, User, Password FROM mysql.user
-> WHERE LENGTH(Password) > 16;
For each account record displayed by the query, use the Host
and User
values and assign a password using the OLD_PASSWORD()
function and either SET PASSWORD
or UPDATE
, as described earlier.
For additional background on password hashing and authentication, see section 5.5.9 Password Hashing in MySQL 4.1.
mysql/db | 评论:0
| Trackbacks:0
| 阅读:1079
Submitted by admin on 2009, January 6, 5:31 PM
checking for termcap functions library... configure: error: No curses/termcap library found
安装 ncurses
还不行的话,加上 ./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5
-------------------------------------------------
Notice: Following unknown configure options were used:
--with-png
--with-png-dir=/usr
apache/web | 评论:0
| Trackbacks:0
| 阅读:1201
Submitted by admin on 2009, January 6, 5:30 PM
无法载入 mcrypt 扩展,<br />请检查 PHP 配置
windows下好解决,在php.ini里把相关的模块加载就可以了
在Linux,要以编译PHP里,加上相关选项
php config
--with-mcrypt[=DIR] Include mcrypt support
在此之前,应该确认已安装 libmcrypt
可以在下面地址下载,手工编译安装
ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/
也可以用yum安装更方便
yum -y install libmcrypt
yum -y install libmcrypt-devel
如果没有安装,在编译PHP时,会提示如下
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
php | 评论:0
| Trackbacks:0
| 阅读:2030