VPS侦探论坛

 找回密码
 注册
查看: 3737|回复: 8

树莓派3B+安装lnmp失败,求解决

[复制链接]
发表于 2019-7-1 20:07:19 | 显示全部楼层 |阅读模式

树莓派3B+安装lnmp失败,求解决





日志

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-7-1 20:43:17 | 显示全部楼层


[ 13%] Building C object unittest/mysys/CMakeFiles/ma_dyncol-t.dir/ma_dyncol-t.c.o
/root/lnmp1.6/src/mariadb-10.1.40/unittest/mysys/ma_dyncol-t.c: In function ‘test_value_single_null’:
/root/lnmp1.6/src/mariadb-10.1.40/unittest/mysys/ma_dyncol-t.c:51:5: internal compiler error: in maybe_gen_insn, at optabs.c:6988
   rc= (res.type == DYN_COL_NULL);
   ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.

。。。。。。
apps/app_rand.c: In function 'opt_rand':
apps/app_rand.c:78:5: internal compiler error: in maybe_gen_insn, at optabs.c:6988
int opt_rand(int opt)
     ^~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Makefile:678: recipe for target 'apps/app_rand.o' failed
make[3]: *** [apps/app_rand.o] Error 1

几个程序安装都是类似的错误,有可能gcc有问题
正常树莓派安装lnmp是没问题的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-7-1 20:56:19 | 显示全部楼层

额    那我该怎么做呢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-7-2 19:04:42 | 显示全部楼层



rhinocero 发表于 2019-7-1 20:56
额    那我该怎么做呢

目前没设备没法测试
你这个是官网下载的系统吗,是否改动过
如果是官网系统,没做改动且方便短消息ssh链接信息的话,我们可以调试看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-7-3 11:57:22 | 显示全部楼层

licess 发表于 2019-7-2 19:04
目前没设备没法测试
你这个是官网下载的系统吗,是否改动过
如果是官网系统,没做改动且方便短消息ssh链 ...

Starting php-fpm /etc/init.d/php-fpm: 57: /etc/init.d/php-fpm: /usr/local/php/sbin/php-fpm: not found
failed
mError: PHP install failed
mSorry, Failed to install LNMP!

树莓派3B+安装lnmp也出现问题了,php安装失败。

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

发表于 2019-7-3 17:55:20 | 显示全部楼层

iLear 发表于 2019-7-3 11:57
Starting php-fpm /etc/init.d/php-fpm: 57: /etc/init.d/php-fpm: /usr/local/php/sbin/php-fpm: not fo ...

没有日志无法确定原因
发表于 2019-7-4 09:20:02 | 显示全部楼层

licess 发表于 2019-7-3 17:55
没有日志无法确定原因

感谢抽时间回复

问题已经解决了,因为树莓派3B+这板子内存只有1G,swap分配得又不够,内存不够用导致php安装失败。
我遍历了整个log日志,没有这一块问题的错误日志,全程无错误,就只有最后出现这些错误信息:

Starting php-fpm /etc/init.d/php-fpm: 57: /etc/init.d/php-fpm: /usr/local/php/sbin/php-fpm: not found
============================== Check install ==============================
Error: PHP install failed

通过这两条日志还真很难判断是哪个环节出错了。这次解决纯粹是碰运气修改了下swap大小解决的。

建议优化下lnmp的安装脚本,列出php安装版本之前就对Raspbian内存和swap做一个判断,若内存过少就仅列出支持安装的版本,避免耗费1个小时的时间结果又安装失败。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-7-6 20:51:16 | 显示全部楼层

licess 发表于 2019-7-2 19:04
目前没设备没法测试
你这个是官网下载的系统吗,是否改动过
如果是官网系统,没做改动且方便短消息ssh链 ...

官方系统没改过,但是我重装的时候,官方已经变成更新版本了,刷进去开不了机,我就换成ubuntu mate了,除了mysql其他都安装成功了
尝试单独安装数据库还是报错,实在不知道是为什么
错误代码
  1. dpkg: error processing package mysql-server-5.7 (--configure):
  2. installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
  3. dpkg: dependency problems prevent configuration of mysql-server:
  4. mysql-server depends on mysql-server-5.7; however:
  5.   Package mysql-server-5.7 is not configured yet.
  6. dpkg: error processing package mysql-server (--configure):
  7. dependency problems - leaving unconfigured
  8. No apport report written because the error message indicates its a followup error from a previous failure.
  9.                                                                                                           Processing triggers for systemd (237-3ubuntu10.24) ...
  10. Errors were encountered while processing:
  11. mysql-server-5.7
  12. mysql-server
  13. E: Sub-process /usr/bin/dpkg returned an error code (1)
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-7-8 14:38:04 | 显示全部楼层


rhinocero 发表于 2019-7-6 20:51
官方系统没改过,但是我重装的时候,官方已经变成更新版本了,刷进去开不了机,我就换成ubuntu mate了, ...

试试把swap改成4G
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-8 10:00 , Processed in 0.029231 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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