Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the failure of php7.2

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report