VPS侦探论坛

 找回密码
 注册
查看: 11892|回复: 5

安装lnmp时失败

[复制链接]
发表于 2010-6-9 08:22:00 | 显示全部楼层 |阅读模式

环境是Vmware Workstation
系统是Centos5.5

./centos.sh执行以后
mysql能正常安装
在开始安装php和后续程序包时会报错。
原因是无法解压。
我在终端下手动tar zxvf php的程序包会报错。

我原来在1台openvz的VPS能用centos.sh正常安装。

不知道这是什么问题?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-6-9 08:45:27 | 显示全部楼层

回复 1# 的帖子



请把错误信息发上来,要不我们无法为你解答是什么问题。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-6-9 09:29:56 | 显示全部楼层

造成这个错误的原因就是在安装php的时候无法解压那个包php-5.2.10.tar.gz

错误信息就是提示文件不存在
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2010-6-9 09:33:43 | 显示全部楼层



不是php-5.2.10.tar.gz这个包找不到
是对本应该解压出来的文件提示文件不存在
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2010-6-9 09:52:39 | 显示全部楼层

回复 4# 的帖子


请把原始错误提交上来,或直接截图。

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2010-6-9 18:01:24 | 显示全部楼层

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[3]: *** [sql_yacc.o] Error 1
make[3]: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/sql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/sql'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/sql'
make: *** [all-recursive] 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      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
   85 root      10  -5     0    0    0 S 29.2  0.0   1:35.98 kswapd0
1241 root      18   0  3804  216  128 S 29.1  0.1   0:41.25 klogd
6320 root      18   0 12608  504  236 R 18.4  0.2   0:13.96 top
1238 root      18   0  5908  228  104 D  5.8  0.1   0:41.26 syslogd
6261 root      18   0  226m 198m  184 D  3.3 77.7   0:46.08 cc1plus
    1 root      18   0 10348  108    0 S  3.1  0.0   0:22.69 init
24289 root      15   0 90248  884    4 S  0.2  0.3   0:11.72 sshd
  246 root      10  -5     0    0    0 S  0.1  0.0   0:00.47 kjournald
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.01 ksoftirqd/0
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 events/0
    6 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
    7 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
    9 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 xenwatch
   10 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 xenbus
   17 root      10  -5     0    0    0 S  0.0  0.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 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-22 02:32 , Processed in 0.027020 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表