/*************依赖包安装****************/
下面是可能的依赖包,安装过程中根据需要安装
build-essential gcc g++ make automake autoconf re2c wget cron bzip2 libzip-dev libc6-dev file rcconf flex vim nano bison m4 gawk less make cpp binutils diffutils unzip tar bzip2 libbz2-dev unrar p7zip libncurses5-dev libncurses5 libncurses5-dev libncurses5-dev libtool libevent-dev libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlibc openssl libsasl2-dev libxml2 libxml2-dev libltdl3-dev libltdl-dev libmcrypt-dev libmysqlclient15-dev zlib1g zlib1g-dev libbz2-1.0 libbz2-dev libglib2.0-0 libglib2.0-dev libpng3 libfreetype6 libfreetype6-dev libjpeg62 libjpeg62-dev libjpeg-dev libpng-dev libpng12-0 libpng12-dev curl libcurl3 libmhash2 libmhash-dev libpq-dev libpq5 gettext libncurses5-dev libcurl4-gnutls-dev libjpeg-dev libpng12-dev libxml2-dev zlib1g-dev libfreetype6 libfreetype6-dev libssl-dev libcurl3 libcurl4-openssl-dev libcurl4-gnutls-dev mcrypt libcap-dev
依赖安装
apt-get install -y build-essential gcc g++ make m4 libpcre3 libpcre3-dev libcurl4-gnutls-dev libjpeg62-dev libpng12-dev libmemcached-dev
dpkg 被中断,您必须手工运行 sudo dpkg --configure -a解决此问题。找了很多解决
sudo rm /var/lib/dpkg/updates/* sudo apt-get update sudo apt-get upgrade
说明:
sudo rm /var/lib/dpkg/updates/*
/var/lib/dpkg/updates 資料夾 裏面的檔案 有問題 使得 更新套件出現錯誤 所以把它完全刪除 下面這個指令會 重新建立
sudo apt-get update
更新你的電腦裏的 可以下載套件明細
sudo apt-get upgrade
根據上面的套件明細 更新已安裝的套件到最新版本
//如果php编译过程中报错如下,请安装libcurl4-gnutls-dev:
//configure: error: Please reinstall the libcurl distribution -
//easy.h should be in /include/curl/
//如果php编译过程报错如下,请安装libjpeg62-dev:
//configure: error: jpeglib.h not found.
//如果php编译过程报错如下,请安装libpng12-dev:
//configure: error: png.h not found.
//安装memcahced扩张时可能报:checking for libmemcached location... configure: error: memcached support requires libmemcached. Use --with-libmemcached-dir=
to specify the prefix where libmemcached headers and library are located.
//请安装libmemcached-dev