openwrt 安装swoole
程序员文章站
2024-02-22 11:58:52
...
本人所写的博客都为开发之中遇到问题记录的随笔,主要是给自己积累些问题。免日后无印象,如有不当之处敬请指正;
打算在在openwrt下安装PHP扩展swoole,下面记录相关的过程:
swoole在PECL地址为:http://pecl.php.net/package/swoole
先下载最新的软件包swoole-4.4.16.tgz ,并移动openwrt/dl目录下
root# cd openwrt
root# mkdir -p package/utils/php7
root# cp feeds/packages/lang/php7-pecl-redis/ package/utils/php7/php7-pecl-swoole -rf
root# sha256sum dl/swoole-4.4.16.tgz
04864e1b705c2b62198a5f3890dd3c23f95a4787c97f3c1b086f0367bdaf9a87 dl/swoole-4.4.16.tgz
root# vim package/utils/php7/php7-pecl-swoole/Makefile
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PECL_NAME:=swoole
PECL_LONGNAME:=Bindings for the libswoole library
PKG_VERSION:=4.4.16
PKG_RELEASE:=16
PKG_HASH:=04864e1b705c2b62198a5f3890dd3c23f95a4787c97f3c1b086f0367bdaf9a87
PKG_NAME:=php7-pecl-swoole
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://pecl.php.net/get/
PKG_MAINTAINER:=shen zhe <shenzhe163 at gmail dot com> (developer)\
Han Tianfeng <mikan dot tenny at gmail dot com> (lead)\
QiHao ChenCao <twose at qq dot com>
PKG_LICENSE:=Apache2.0
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=php7
PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php7/$(PECL_NAME)-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
include $(TOPDIR)/feeds/packages/lang/php7/pecl.mk
CONFIGURE_ARGS+= --enable-openssl,--enable-http2,"$(STAGING_DIR)/usr"
$(eval $(call PECLPackage,swoole,$(PECL_LONGNAME),+libswoole +libltdl,30))
$(eval $(call BuildPackage,$(PKG_NAME)))
:wq
root# ./scripts/feeds update -p local
root# ./scripts/feeds install -p local
root# make meunconfig
root# make
上一篇: java验证电话号码的方法