Pdflib - sh: phpize: command not found

I need my site to create a pdf file. I planned to use PDFlib. When I try to install it via the PEAR GUI, I get the error message "sh: phpize: command not found". Anyone have any suggestions?

+6
source share
1 answer

As noted by Marc B, you must have a package on your system containing the files necessary to create PHP extensions (usually php-devel).

On my Centos system, you should enter this command as root in the terminal:

yum install php-devel 

This should work on Red Hat and Fedora, by the way.

On Debian or Ubuntu, the command is slightly different:

 sudo apt-get install php5-dev 

If you want to start the terminal, the required steps depend on your desktop environment. Ubuntu users usually get Unity, so:

  Dash -> More Apps -> Accessories -> Terminal 

In Gnome3:

  Applications menu -> Accessories -> Terminal 

The key combination in both environments is the same: Ctrl + Alt + T.

For other DEs, take a look at this document: https://help.ubuntu.com/community/UsingTheTerminal

+15
source

Source: https://habr.com/ru/post/897715/


All Articles