Today, when configuring a new server to install php-5.5.19, there is a make: *** [sapi/cli/php] error 1 problem. I looked at the reason because the configure environment variable is not set. The reason, here is make: *** [sapi/cli/php] The solution to error 1 is written down and may be used later.
Solution:
Step 1: Execute "ld Makefile" in the terminal.
Step 2: Find about 106 lines of code EXTRA_LIBS. The following is the complete default code of the author here.
EXTRA_LIBS = -lcrypt -lz -lcrypt -lrt -lmysqlclient -lmcrypt -lltdl -lpng -lz -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl -lrt -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lfreetype -lmysqlclient -lz -lm -lrt -ldl -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
Step 3: Add “ -liconv” at the end, add the following as shown below.
EXTRA_LIBS = -lcrypt -lz -lcrypt -lrt -lmysqlclient -lmcrypt -lltdl -lpng -lz -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl -lrt -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lfreetype -lmysqlclient -lz -lm -lrt -ldl -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -liconv
Note: If you can't find it, you can go directly to sftp and directly make the makefile Download the file, full-text search "EXTRA_LIBS", you can, because different php versions, may be in different lines.
1. start --- & gt; control panel --- & gt; management tools --- & gt; Internet In
Traditional hard drives have a very slow performance improvement due to limitatio
Microsoft has said that Windows Server 2003 R2 is the latest version
Problem Description How to set resource allocation for each virtual machine in Sys
Enable Gzip compression (HTTP compression) on IIS
Actually solve the "HTTP 500 internal server error" of IIS server
Solve the problem of no network in CentOS 6.5 installation
Briefly use linux to build www server (3)
12 major faults and treatment methods of the computer room monitoring system
Win 2003 distribution function to reduce the network management
How to remotely restart NT server with port 139
VPN Server Setup Guide under Windows 2003
Storm transcoding how to convert file format Storm transcoding using tutorial
70 small trick list win7 system (4)
Shorten system startup wait time under Vista
How to partition win10? Win10 hard disk partition operation tutorial
Windows Server 2008 R2 switch machine to cancel login, press Ctrl+Alt+Delete group
WIN8 junk file cleaning batch processing tutorial
Win10 system is difficult to wrap up bug
WinXP Msconfig.exe file missing solution
Method for diagnosing IPsec problems in Win 2003
Win10 open photo application prompt "invalid registry value" solution