PDFLib icon indicating copy to clipboard operation
PDFLib copied to clipboard

PHP requirement incompatible

Open taffners opened this issue 3 years ago • 2 comments

Can you help me with the install of PDFLib? I'm getting an error related to my PHP version but the error does not provide enough info to fix my PHP version.

$ composer.phar require imal-h/pdf-box

[InvalidArgumentException] Package imal-h/pdf-box has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

Here's info on my ghostscript install.

$ yum info ghostscript Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager Installed Packages Name : ghostscript Arch : i686 Version : 9.25 Release : 5.el7 Size : 133 k Repo : installed From repo : rhel-7-server-rpms Summary : Interpreter for PostScript language & PDF URL : https://ghostscript.com/ License : AGPLv3+ Description : This package provides useful conversion utilities based on Ghostscript software, : for converting PS, PDF and other document formats between each other. : : Ghostscript is a suite of software providing an interpreter for Adobe Systems' : PostScript (PS) and Portable Document Format (PDF) page description languages. : Its primary purpose includes displaying (rasterization & rendering) and printing : of document pages, as well as conversions between different document formats.

Name : ghostscript Arch : x86_64 Version : 9.25 Release : 5.el7 Size : 150 k Repo : installed From repo : rhel-7-server-rpms Summary : Interpreter for PostScript language & PDF URL : https://ghostscript.com/ License : AGPLv3+ Description : This package provides useful conversion utilities based on Ghostscript software, : for converting PS, PDF and other document formats between each other. : : Ghostscript is a suite of software providing an interpreter for Adobe Systems' : PostScript (PS) and Portable Document Format (PDF) page description languages. : Its primary purpose includes displaying (rasterization & rendering) and printing : of document pages, as well as conversions between different document formats.

taffners avatar Mar 23 '21 21:03 taffners

you must have php version higher or equal to 5.5.0 make in your cli this command php -v to check your installed php version

geek5 avatar Mar 23 '21 21:03 geek5

Thank you for the speedy reply. Yes that is the problem. I have php 5.4. Thank you.

taffners avatar Mar 23 '21 21:03 taffners