Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the failure of php7.2

Shulou Source: shulou.com Published: 2022-06-02 07:20:47 10月03日 Update

This article mainly explains "how to solve the failure of php7.2 operation". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the failure of php7.2.

Solutions to php7.2 failure: 1, execute "vi Makefile" under the PHP source directory; 2, find the EXTRA_LIBS line; 3, add "- llber" at the end of the line; 4, save exit and make again.

This article operating environment: Windows7 system, PHP7.2 version, Dell G3 computer.

What if php7.2 fails to run?

Pits encountered in php7.2 compilation

Checking size of long int... (cached) 8configure: error: Cannot find ldap libraries in / usr/lib

Resolve:

. / configure php encountered the following error and quit

Configure: error: Cannot find ldap libraries in / usr/lib

Solution:

Cp-frp / usr/lib64/libldap* / usr/lib/

Then. / configure. Can

/ usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol 'ber_strdup' / / usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: * * [sapi/cli/php] Error 1

Solution: encounter this similar situation, indicating that ". / configure" did not grasp some environmental variables.

The solution is an article from a foreigner:

Find the EXTRA_LIBS line in vi Makefile under the PHP source directory, and add'- llber'at the end of the line to save and exit and make again.

/ usr/local/src/php-7.2.7/sapi/cli/php: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directorymake: * * [ext/phar/phar.php] Error 127

Resolve:

1. First

# vi / etc/ld.so.conf

Add a line / usr/local/lib to it

two。 Then run / sbin/ldconfig

# / sbin/ldconfig

Compile make

Generating phar.phar chmod: cannot access' ext/phar/phar.phar': No such file or directorymake: [ext/phar/phar.phar] Error 1 (ignored)

Resolve:

Cd ext/phar/cp. / phar.php. / phar.phar at this point, I believe you have a deeper understanding of "how to solve the failure of php7.2 operation". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Run method line content again method source code environment directory learning compilation practical deeper one line interest practicality practical how to do situation simple operation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno macOS Docker MySQL Redmi