OpenWrt(Linino)+ uHTTPd + PHP 5.4 - 如何将Phar和Filter模块添加到PHP

时间:2014-04-06 22:58:46

标签: php filter arduino openwrt phar

我正在努力将PharFilter模块添加到PHP uHTTPd上的OpenWrt (Linino)服务器下。我可以请一些建议吗?

My system settings:
Linux Arduino 3.8.3
PHP Version 5.4.17

我只需运行curl命令就可以成功安装其他模块,例如opkg

opkg install php5-mod-curl

但是在PharFilter尝试同样的情况时,没有运气,这些套餐也不存在。

root@Arduino:~# opkg install php5-mod-phar
Unknown package 'php5-mod-phar'.

我是否需要重建我的php以包含它们(如果是,如何?)或者有更简单的方法吗? 任何人都可以帮助我并指出正确的方向吗?

此外,这是我phpinfo()

输出的一部分
Configure Command
'./configure' '--target=mips-openwrt-linux' '--host=mips-openwrt-linux' '--build=x86_64-linux-gnu' '--program-prefix=' '--program-suffix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--sysconfdir=/etc' '--datadir=/usr/share' '--localstatedir=/var' '--mandir=/usr/man' '--infodir=/usr/info' '--disable-nls' '--enable-shared' '--disable-static' '--disable-rpath' '--disable-debug' '--without-pear' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php5' '--disable-short-tags' '--with-zlib=/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-zlib-dir=/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-pcre-regex=/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--disable-phar' '--enable-cli' '--enable-cgi' '--enable-calendar=shared' '--enable-ctype=shared' '--with-curl=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-fileinfo=shared' '--with-gettext=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libintl-full' '--enable-dom=shared' '--enable-exif=shared' '--enable-ftp=shared' '--with-gd=shared' '--without-freetype-dir' '--with-jpeg-dir=/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-png-dir=/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--without-xpm-dir' '--without-t1lib' '--enable-gd-native-ttf' '--disable-gd-jis-conv' '--with-gmp=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-hash=shared' '--with-iconv=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib/libiconv-stub' '--enable-json=shared' '--with-ldap=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-ldap-sasl=/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-mbstring=shared' '--enable-mbregex' '--with-mcrypt=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-mysql=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-mysqli=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/bin/mysql_config' '--with-openssl=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-kerberos=no' '--with-openssl-dir=/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-pcntl=shared' '--enable-pdo=shared' '--with-pdo-mysql=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-pdo-pgsql=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-pdo-sqlite=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-pgsql=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-session=shared' '--enable-shmop=shared' '--enable-simplexml=shared' '--enable-soap=shared' '--enable-sockets=shared' '--with-sqlite=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--with-sqlite3=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-tokenizer=shared' '--enable-xml=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-xmlreader=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-xmlwriter=shared,/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr' '--enable-zip=shared' '--disable-filter' '--enable-libxml' '--with-libxml-dir=/home/build/builddir/all-in-one/dogstick/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/libxml2' '--with-system-tzdata'

1 个答案:

答案 0 :(得分:0)

使用过滤器支持构建PHP:

make menuconfig

选择

language/php/PHP5 filter support

<强>重建:

make package/feeds/packages/php5/compile