Install the pear package in ubuntu (lynx and php-cli installation)
If you have installed lynx and php5-cli, you can easily install the pear package. If lynx and php5-cli are installed, run the # lynx-source http://pear.php.net/go-pear directly | php and you can see the installation If you have installed lynx and php5-cli, you can easily install the pear package. If lynx and php5-cli are installed, run # lynx-source http://pear.php.net/go-pear | php to see the installation interface. Press the prompt and press enter. In case of y/n, select y directly. Installation is successful without entering anything. If the two are not installed, an error will be reported during this operation. At this time, you need to install the two. It is very easy in ubuntu. Directly apt-get install lynx install lynxapt-get install php5-cli install php5-cli here will change some php. ini configuration, and finally restart apache can use the above command to install the pear package. The code is as follows: apt-get install lynxapt-get install php-pearwget http://pear.php.net/go-pearphp go-pear // lynx-source http://pear.php.net/go-pear | phpModify php. ini and add include_path = ".:/usr/local/php/PEAR" (note that this path must be modified based on actual conditions) Restart NGIN. Or use sudo apt-get install php-pear. |