busybox filesystem matrix-gui-2.0 undefined function json_encode()

时间:2021-07-10 08:56:24
/********************************************************************************
* matrix-gui-2.0 undefined function json_encode()
* 声明:
* 本文解决matrix-gui-2.0中遇到的:
* Fatal error:
* Call to undefined function json_encode() in /www/generate.php on line 134
* 以及busybox httpd找不到index.html,主要是由于index.html被替换成了index.php
*
* 2016-1-31 深圳 南山平山村 曾剑锋
*******************************************************************************/ 一、参考文章:
. PHP移植
http://www.cnblogs.com/dancheblog/p/3508675.html
. Ubuntu Correct path to libxml2 when configuring PHP
https://www.howtoforge.com/community/threads/ubuntu-correct-path-to-libxml2-when-configuring-php-5.9982/
. 编译安装php
http://www.cnblogs.com/alexqdh/archive/2012/11/20/2776017.html
. linux下安装PHP出现错误 求助大家了
http://bbs.chinaunix.net/thread-1962843-1-1.html
. Using the busybox HTTP server
http://wiki.chumby.com/index.php?title=Using_the_busybox_HTTP_server 二、下载、编译libxml2-2.7..tar.gz
. https://buildroot.org/downloads/
. sudo ./configure --host=arm-linux-gnueabihf --prefix=/usr/local/php && make && make install
. 注意配置好编译器环境变量。 三、 下载、编译zlib-1.2..tar.gz
. http://www.zlib.net/
. sudo CC=arm-linux-gnueabihf-gcc ./configure --shared --prefix=/usr/local/php && make && make install
. 注意配置好编译器环境变量。 四、重新编译php-5.5..tar.bz2
./configure --host=arm-linux-gnueabihf --prefix=/usr/local/php --disable-all --enable-fastcgi --enable-session --enable-tokenizer --enable-pdo --with-sqlite --with-sqlite3 --with-pdo-sqlite --with-pcre-regex --without-iconv --with-libxml-dir=/usr/local/php --enable-libxml --enable-spl --enable-simplexml --enable-json --with-zlib --with-zlib-dir=/usr/local/php 五、error:
. 错误1:
. 错误现象:
......
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path... (cached) /usr/bin/xml2-config
configure: error: xml2-config not found. Please check your libxml2 installation.
. 解决办法:
. 编译安装:libxml2-2.7..tar.gz
. php-5.5.31加入编译条件(目录根据自己前面编译libxml是写的目录):
--enable-libxml --with-libxml-dir=/home/Qt/rootfs/busybox/php/libxml2-2.7.
. 错误2:
. 错误现象:
......
checking for strftime... (cached) yes
checking which regex library to use... php
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /home/Qt/rootfs/busybox/php/libxml2-2.7.
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
. 解决办法:“
sudo apt-get install libxml2-dev
. 错误3:
. 错误现象:
......
checking whether to enable the SQLite3 extension... yes
checking bundled sqlite3 library... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for zlib version >= 1.2.0.4... 1.2.3.4
checking for gzgets in -lz... no
configure: error: ZLIB extension requires gzgets in zlib
. 解决办法:
. 编译安装:zlib-1.2..tar.gz
. php-5.5.31加入编译条件(目录根据自己前面编译zlib是写的目录):
--with-zlib --with-zlib-dir=/usr/local/php 六、matrix_gui 找不到index.html:
. 这可能是由于busybox的httpd默认识别的index.html,但我们的是index.php;
. 由上可知,我们需要在matrix_gui中指定我们需要访问的是index.php;
. 当然,我们也是可以在/etc/httpd.conf配置:
I:index.php # Show index.php when a directory is requested 七、总结:
zlib最好要先于libxml2编译,同时在编译libxml2的时候将zlib的安装目录放置于PATH最前面。

busybox filesystem matrix-gui-2.0 undefined function json_encode()的更多相关文章

  1. busybox filesystem add ldd function

    /******************************************************************** * busybox filesystem add ldd f ...

  2. busybox filesystem httpd php-5.5.31 sqlite3 webserver

    /******************************************************************** * busybox filesystem httpd php ...

  3. 在ubuntu16.10 PHP测试连接MySQL中出现Call to undefined function: mysql_connect()

    1.问题: 测试php7.0 链接mysql数据库的时候发生错误: Fatal error: Uncaught Error: Call to undefined function mysqli_con ...

  4. "Fatal error: Call to undefined function: file_put_contents()"

    打开页面时提示这个错误: Fatal error: Call to undefined function: file_put_contents() 意思是请求未定义的函数,出现这个提示通常有两种情况: ...

  5. fatal error: Call to undefined function mysqli_connect()

    在搭建PHP5.6+APACHE2.4+MYSQL5的平台时,测试是否成功连接mysql, 测试程序index.php <?php phpinfo() ?> 没有出现mysql的信息 所以 ...

  6. Mac下Call to undefined function imagettftext&lpar;&rpar; 解决方案

    文章转载至Mac下Call to undefined function imagettftext()终极解决方案 安装了一套onethink程序准备调试,结果在登录页面发现验证码无法显示,单独访问验证 ...

  7. JS魔法堂:从void 0 &equals;&equals;&equals; undefined说起

    一.前言 当使用coffeescript书写如下代码时 name = person?.name 会被预编译为 ; ,那么void 0到底是什么意思呢?运行得知void 0===undefined为tr ...

  8. Fatal error&colon; Call to undefined function imagettftext&lpar;&rpar;解决办法

    Fatal error: Call to undefined function imagettftext()解决办法   我的问题是php编译安装时指定了gd的目录,其实不用指定.就可以了 博客分类: ...

  9. PHP ERROR &colon; Call to undefined function curl&lowbar;init&lpar;&rpar;

    在使用PHP 的Curl方法时出现了以下错误 可能的解决办法: 在php.ini 中确保 启用了php_curl.dll组件 确保PHP版本 (PHP 4 >= 4.0.2, PHP 5, PH ...

随机推荐

  1. Json 的日期格式转换成DateTime

    JSON 的日期形式:”/Date(1242357713797+0800)/” , 下面我们就用以下C#的方法将他转换成DateTime类型: /// <summary> /// Json ...

  2. PHP If&period;&period;&period;Else 语句

    PHP If...Else 语句 条件语句用于根据不同条件执行不同动作. PHP 条件语句 当您编写代码时,您常常需要为不同的判断执行不同的动作.您可以在代码中使用条件语句来完成此任务. 在 PHP ...

  3. mysql杯观锁与乐观锁

    悲观锁与乐观锁是两种常见的资源并发锁设计思路,也是并发编程中一个非常基础的概念.本文将对这两种常见的锁机制在数据库数据上的实现进行比较系统的介绍. 悲观锁(Pessimistic Lock) 悲观锁的 ...

  4. element ui中dialog相关问题

    一,今天需要在dialog里面引入另一个页面,就是打开dialog显示该页面(把页面放到dialog中),引入的语句如下: <iframe src="view?path=rkdj_b& ...

  5. C语言的问题,头文件:keil也许有漏洞

    2018-06-15   16:52:03 ------------------------------------------------------------------------------ ...

  6. nc命令简介

    nc介绍 ncat/nc 既是一个端口扫描工具,也是一款安全工具,还能是一款监测工具,甚至可以做为一个简单的 TCP 代理. 在大多数 Debian 发行版中,nc 是默认可用的,它会在安装系统的过程 ...

  7. nlp 总结 分词,词义消歧,词性标注,命名体识别,依存句法分析,语义角色标注

    分词 中文分词 (Word Segmentation, WS) 指的是将汉字序列切分成词序列. 因为在汉语中,词是承载语义的最基本的单元.分词是信息检索.文本分类.情感分析等多项中文自然语言处理任务的 ...

  8. Linux虚拟机下安装Oracle 11G教程

    1.安装环境 操作系统:Red hat 6.5 内存:内存最低要求256M (使用:grep MemTotal /proc/meminfo 命令查看) 交换空间:SWAP交换空间大小根据内存大小决定( ...

  9. BZOJ4653 &lbrack;NOI2016&rsqb;区间 &lbrack;线段树,离散化&rsqb;

    题目传送门 区间 Description 在数轴上有 n个闭区间 [l1,r1],[l2,r2],...,[ln,rn].现在要从中选出 m 个区间,使得这 m个区间共同包含至少一个位置.换句话说,就 ...

  10. linux用户登录指定目录

    一.创建用户和用户组 [root@web4 lianyu]# groupadd lianyu [root@web4 lianyu]# useradd lianyu -g lianyu [root@we ...