安装lnmp时失败
环境是Vmware Workstation系统是Centos5.5
./centos.sh执行以后
mysql能正常安装
在开始安装php和后续程序包时会报错。
原因是无法解压。
我在终端下手动tar zxvf php的程序包会报错。
我原来在1台openvz的VPS能用centos.sh正常安装。
不知道这是什么问题?
回复 1# 的帖子
请把错误信息发上来,要不我们无法为你解答是什么问题。 造成这个错误的原因就是在安装php的时候无法解压那个包php-5.2.10.tar.gz错误信息就是提示文件不存在 不是php-5.2.10.tar.gz这个包找不到
是对本应该解压出来的文件提示文件不存在
回复 4# 的帖子
请把原始错误提交上来,或直接截图。 vmware重新安装以后,解压不再出错。现在我在我新买的VPS会提示如下错误。
Xen方案的,内存256MB
提示这个
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DMYSQL_DATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DPLUGINDIR="\"/usr/local/mysql/lib/mysql/plugin\"" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I../include -I../include -I../include -I../regex -I. -O3 -fno-implicit-templates -fno-exceptions -fno-rtti -MT sql_yacc.o -MD -MP -MF .deps/sql_yacc.Tpo -c -o sql_yacc.o sql_yacc.cc
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** Error 1
make: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/sql'
make: *** Error 1
make: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/sql'
make: *** Error 2
make: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/sql'
make: *** Error 1
cp: cannot stat `/usr/local/mysql/share/mysql/my-medium.cnf': No such file or directory
./centos.sh: line 243: /usr/local/mysql/bin/mysql_install_db: No such file or directory
chown: cannot access `/usr/local/mysql/var': No such file or directory
chgrp: cannot access `/usr/local/mysql/.': No such file or directory
cp: cannot stat `/usr/local/mysql/share/mysql/mysql.server': No such file or directory
chmod: cannot access `/etc/init.d/mysql': No such file or directory
error reading information on service mysql: No such file or directory
./centos.sh: line 255: /etc/init.d/mysql: No such file or directory
./centos.sh: line 257: /usr/local/mysql/bin/mysqladmin: No such file or directory
./centos.sh: line 259: /etc/init.d/mysql: No such file or directory
./centos.sh: line 260: /etc/init.d/mysql: No such file or directory
error reading information on service mysql-ndb: No such file or directory
error reading information on service mysql-ndb-mgm: No such file or directory
接下去编译php的时候
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore!
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
cp: cannot create regular file `/usr/local/php/etc/php.ini': No such file or directory
package.xml
memcache-2.2.5/config.m4
memcache-2.2.5/config9.m4
memcache-2.2.5/config.w32
memcache-2.2.5/CREDITS
memcache-2.2.5/example.php
memcache-2.2.5/memcache.c
memcache-2.2.5/memcache_queue.c
memcache-2.2.5/memcache_session.c
memcache-2.2.5/memcache_standard_hash.c
memcache-2.2.5/memcache_consistent_hash.c
memcache-2.2.5/memcache.dsp
memcache-2.2.5/php_memcache.h
memcache-2.2.5/memcache_queue.h
memcache-2.2.5/README
memcache-2.2.5/memcache.php
./centos.sh: line 282: /usr/local/php/bin/phpize: No such file or directory
./centos.sh: line 283: ./configure: No such file or directory
make: *** No targets specified and no makefile found.Stop.
package2.xml
PDO_MYSQL-1.0.2/config.m4
PDO_MYSQL-1.0.2/CREDITS
PDO_MYSQL-1.0.2/mysql_driver.c
PDO_MYSQL-1.0.2/mysql_statement.c
PDO_MYSQL-1.0.2/pdo_mysql.c
PDO_MYSQL-1.0.2/php_pdo_mysql.h
PDO_MYSQL-1.0.2/php_pdo_mysql_int.h
PDO_MYSQL-1.0.2/php_pdo_mysql_sqlstate.h
package.xml
./centos.sh: line 289: /usr/local/php/bin/phpize: No such file or directory
./centos.sh: line 290: ./configure: No such file or directory
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
有没有可能是内存用光造成的?我这个VPS是xen方案的256mb
mysql出错前正在编译的那个文件,我重新试了好几次,都卡在这里。
编译的时间也很长。
top - 18:04:47 up 37 min,2 users,load average: 5.68, 3.95, 2.27
Tasks:51 total, 2 running,49 sleeping, 0 stopped, 0 zombie
Cpu(s):0.2%us, 93.9%sy,0.0%ni,0.0%id,5.7%wa,0.0%hi,0.0%si,0.2%st
Mem: 262144k total, 260020k used, 2124k free, 104k buffers
Swap: 0k total, 0k used, 0k free, 4116k cached
PID USER PRNIVIRTRESSHR S %CPU %MEM TIME+COMMAND
85 root 10-5 0 0 0 S 29.20.0 1:35.98 kswapd0
1241 root 18 03804216128 S 29.10.1 0:41.25 klogd
6320 root 18 0 12608504236 R 18.40.2 0:13.96 top
1238 root 18 05908228104 D5.80.1 0:41.26 syslogd
6261 root 18 0226m 198m184 D3.3 77.7 0:46.08 cc1plus
1 root 18 0 10348108 0 S3.10.0 0:22.69 init
24289 root 15 0 90248884 4 S0.20.3 0:11.72 sshd
246 root 10-5 0 0 0 S0.10.0 0:00.47 kjournald
2 root RT-5 0 0 0 S0.00.0 0:00.00 migration/0
3 root 3419 0 0 0 S0.00.0 0:00.01 ksoftirqd/0
4 root RT-5 0 0 0 S0.00.0 0:00.00 watchdog/0
5 root 10-5 0 0 0 S0.00.0 0:00.00 events/0
6 root 10-5 0 0 0 S0.00.0 0:00.00 khelper
7 root 11-5 0 0 0 S0.00.0 0:00.00 kthread
9 root 10-5 0 0 0 S0.00.0 0:00.00 xenwatch
10 root 10-5 0 0 0 S0.00.0 0:00.00 xenbus
17 root 10-5 0 0 0 S0.00.0 0:00.00 kblockd/0
-bash-3.2# free
total used free shared buffers cached
Mem: 262144 252508 9636 0 136 3964
-/+ buffers/cache: 248408 13736
Swap: 0 0 0
[ 本帖最后由 luyi 于 2010-6-9 18:08 编辑 ]
页:
[1]