Home Backend Development PHP Tutorial How to install yaf extension on Ubuntu

How to install yaf extension on Ubuntu

Jan 31, 2018 am 09:12 AM
ubuntu how Expand

This article mainly shares with you how to install the yaf extension on Ubuntu. It has a good reference value and I hope it will be helpful to everyone. Let’s follow the editor to take a look, I hope it can help everyone.

1. Download

yaf extension download address

http://pecl.php.net/package/yaf

Choose what you want Package to be downloaded

1

2

3

wget http://pecl.PHP.net/get/yaf-2.3.5.tgz

tar zxvf yaf-2.3.5.tgz

cd yaf-2.3.5

Copy after login

2. Installation

1

2

3

4

5

6

#whereis phpize

/data/yaf-2.3.5# /usr/bin/phpize

#whereis php-config

php-config: /usr/bin/php-config /usr/share/man/man1/php-config.1.gz

/data/yaf-2.3.5# ./configure --with-php-config=/usr/bin/php-config

/data/yaf-2.3.5# make && make install

Copy after login

Solution:

An error may occur during the last command: compilation terminated. make: * [yaf_router.lo] Error 1

1

sudo apt-get install libpcre3 libpcre3-dev openssl libssl-dev

Copy after login

Execute the last command again.

If everything goes well, it should look like this:

1

也可以执行以下make test

Copy after login

There may also be errors like this: cp:cannot create regular file '/usr/lib /php5/20121212/#INST@13121#':Permission denied

This is insufficient permission. The current user is not root. You can switch to root through su and enter the root password. If you forget the password, you can reset it: sudo passwd root

Add in php.ini:

1

extension=yaf.so

Copy after login

If you don’t know where php.ini is, you can look at phpinfo

Finally , restart the server

Related recommendations:

Detailed example of Yaf framework PHPUnit integration test method

Share the tutorial on how to install Swoole, Yar, and Yaf under PHP 7

Installation of LAMP environment and yaf extension under Ubuntu14

The above is the detailed content of How to install yaf extension on Ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What should I do if the Ubuntu terminal cannot be opened? How to fix the problem that Ubuntu cannot open the terminal What should I do if the Ubuntu terminal cannot be opened? How to fix the problem that Ubuntu cannot open the terminal Feb 29, 2024 pm 05:30 PM

What should I do if the Ubuntu terminal cannot be opened? How to fix the problem that Ubuntu cannot open the terminal

Log in to Ubuntu as superuser Log in to Ubuntu as superuser Mar 20, 2024 am 10:55 AM

Log in to Ubuntu as superuser

A sneak peek of the seven highlights of Ubuntu 24.04 LTS A sneak peek of the seven highlights of Ubuntu 24.04 LTS Feb 27, 2024 am 11:22 AM

A sneak peek of the seven highlights of Ubuntu 24.04 LTS

Ubuntu 20.04 screen recording software OBS installation and uninstallation graphic tutorial Ubuntu 20.04 screen recording software OBS installation and uninstallation graphic tutorial Feb 29, 2024 pm 04:01 PM

Ubuntu 20.04 screen recording software OBS installation and uninstallation graphic tutorial

How to remove icons in Ubuntu start menu? How to remove icons in Ubuntu start menu? Jan 13, 2024 am 10:45 AM

How to remove icons in Ubuntu start menu?

How to install Angular on Ubuntu 24.04 How to install Angular on Ubuntu 24.04 Mar 23, 2024 pm 12:20 PM

How to install Angular on Ubuntu 24.04

Detailed guide to install PHP and configure MSSQL connection on Ubuntu Detailed guide to install PHP and configure MSSQL connection on Ubuntu Feb 29, 2024 am 11:15 AM

Detailed guide to install PHP and configure MSSQL connection on Ubuntu

Android TV Box gets unofficial Ubuntu 24.04 upgrade Android TV Box gets unofficial Ubuntu 24.04 upgrade Sep 05, 2024 am 06:33 AM

Android TV Box gets unofficial Ubuntu 24.04 upgrade

See all articles