busybox filesystem matrix-gui-2.0 undefined function json_encode()
/********************************************************************************
* 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()的更多相关文章
- busybox filesystem add ldd function
/******************************************************************** * busybox filesystem add ldd f ...
- busybox filesystem httpd php-5.5.31 sqlite3 webserver
/******************************************************************** * busybox filesystem httpd php ...
- 在ubuntu16.10 PHP测试连接MySQL中出现Call to undefined function: mysql_connect()
1.问题: 测试php7.0 链接mysql数据库的时候发生错误: Fatal error: Uncaught Error: Call to undefined function mysqli_con ...
- "Fatal error: Call to undefined function: file_put_contents()"
打开页面时提示这个错误: Fatal error: Call to undefined function: file_put_contents() 意思是请求未定义的函数,出现这个提示通常有两种情况: ...
- fatal error: Call to undefined function mysqli_connect()
在搭建PHP5.6+APACHE2.4+MYSQL5的平台时,测试是否成功连接mysql, 测试程序index.php <?php phpinfo() ?> 没有出现mysql的信息 所以 ...
- Mac下Call to undefined function imagettftext() 解决方案
文章转载至Mac下Call to undefined function imagettftext()终极解决方案 安装了一套onethink程序准备调试,结果在登录页面发现验证码无法显示,单独访问验证 ...
- JS魔法堂:从void 0 === undefined说起
一.前言 当使用coffeescript书写如下代码时 name = person?.name 会被预编译为 ; ,那么void 0到底是什么意思呢?运行得知void 0===undefined为tr ...
- Fatal error: Call to undefined function imagettftext()解决办法
Fatal error: Call to undefined function imagettftext()解决办法 我的问题是php编译安装时指定了gd的目录,其实不用指定.就可以了 博客分类: ...
- PHP ERROR : Call to undefined function curl_init()
在使用PHP 的Curl方法时出现了以下错误 可能的解决办法: 在php.ini 中确保 启用了php_curl.dll组件 确保PHP版本 (PHP 4 >= 4.0.2, PHP 5, PH ...
随机推荐
- Codeforces Round #227 (Div. 2) E. George and Cards 线段树+set
题目链接: 题目 E. George and Cards time limit per test:2 seconds memory limit per test:256 megabytes 问题描述 ...
- C# 获取属性字段上DescriptionAttribute的值
var ent = new Ent(); foreach (var item in ent.GetType().GetProperties()) { var v = (DescriptionAttri ...
- Block、委托、回调函数原理剖析(在Object C语境)——这样讲还不懂,根本不可能!
开篇:要想理解Block和委托,最快的方法是搞明白“回调函数”这个概念. 做为初级选手,我们把Block.委托.回调函数,视为同一原理的三种不同名称.也就是说,现在,我们把这三个名词当成一回事.在这篇 ...
- hdu 1713 相遇周期
求分数的最小公倍数.对于a/b c/d 先化简为最简分数,分数最小公倍数=分子的最小公倍数/分母的最大公约数. ;}
- 获取SqlDataReader的列名
SqlConnection thisConnection = new SqlConnection(ConfigurationManager.AppSettings["ConnectionSt ...
- 使用CXF与Spring集成实现RESTFul WebService
以下引用与网络中!!! 一种软件架构风格,设计风格而不是标准,只是提供了一组设计原则和约束条件.它主要用于客户端和服务器交互类的软件.基于这个风格设计的软件可以更简洁,更有层次,更易于实现缓存 ...
- lintcode 中等题:kth-largest-element 第k大元素
题目 第k大元素 在数组中找到第k大的元素 样例 给出数组[9,3,2,4,8],第三大的元素是4 给出数组 [1,2,3,4,5],第一大的元素是5,第二大的元素是4,第三大的元素是3,以此类推 注 ...
- 安装xampp后,出现“Apache 2 Test Page powered by CentOS“
因为是在本地测试,所以没有去考虑为什么会这样,考虑太多的原因.只要能运行就行. 所以网络搜索了一番. 最后,解决办法是: 1, 找到apachectl. 那么就在命令行敲find / -name ap ...
- AO创建IFeature的两种方法
原文地址:http://www.cnblogs.com/MyLucifer/archive/2010/12/01/1893212.html 在ArcGIS Resouce Center中,ESRI介绍 ...
- 在VS2012后的版本中做数据报表时,提示尚未指定报表“Report1”的报表定义
有一群的朋友在用VS2012做数据报表时,老是提示 本地报表处理期间出错. 尚未指定报表“Report1”的报表定义 未将对象引用设置到对象的实例. 我看了一下,步骤没错,我用VS2010做了一下,一 ...