tinywan

安装swoole扩展,怎么安装到7.0下去了,我本来编译的版本是7.19版本,但是没吃

 升级步骤

$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get upgrade php

直接安装提示这个:

www@TinywanAliYun:~$ pecl install swoole
The program \'pecl\' is currently not installed. To run \'pecl\' please ask your administrator to install the package \'php-pear\'

 

sudo apt-get install php-pear

 

 错误提示:

PHP Warning:  PHP Startup: Unable to load dynamic library \'/usr/lib/php/20160303/xml.so\' - /usr/lib/php/20160303/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library \'/usr/lib/php/20160303/dom.so\' - /usr/lib/php/20160303/dom.so: cannot open shared object file: No such file or directory in Unknown on line 0

 

 

开始了

1、软连接

sudo ln -s /usr/local/php-7.1.8/bin/php /usr/bin/php

2、php7.1-dev

sudo apt search php7

sudo
apt-get install php7.1-dev

 

 





分类:

技术点:

相关文章:

  • 2022-02-08
  • 2021-07-02
  • 2021-06-17
  • 2022-02-23
  • 2022-12-23
  • 2022-01-02
  • 2021-12-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-28
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案