search
HomeBackend DevelopmentPHP7What to do if php7.2 fails to run

Solution to the failure of php7.2: 1. Execute "vi Makefile" in the PHP source directory; 2. Find the EXTRA_LIBS line; 3. Add "-llber" at the end of the line; 4. Save and exit and try again Just make.

What to do if php7.2 fails to run

The operating environment of this article: Windows 7 system, PHP version 7.2, Dell G3 computer.

What should I do if php7.2 fails to run?

php7.2 pitfalls encountered during compilation

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

Solution:

./configure php occurred when the following error occurred and exited

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

Solution:

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

Then ./configure...

/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: When encountering this similar situation, it means that "./configure" did not take care of some environment changes. numerical value.

Solution, an article from a foreigner:

Find the EXTRA_LIBS line in vi Makefile in the PHP source directory, add '-llber' at the end of the line, 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 directory
make: *** [ext/phar/phar.php] Error 127

Solution:

1. First

#vi /etc/ld.so.conf

Add a line /usr/local/lib

2. Then run /sbin/ldconfig

 #/sbin/ldconfig

Compile make

Generating phar.phar
 
chmod: cannot access ‘ext/phar/phar.phar’: No such file or directory
make: [ext/phar/phar.phar] Error 1 (ignored)

Solution:

cd ext/phar/
cp ./phar.php ./phar.phar

Recommended study: "PHP Video Tutorial"

The above is the detailed content of What to do if php7.2 fails to run. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software