我試圖在Ubuntu 11.04上安裝PHP。我從源代碼編譯。在Ubuntu上安裝支持IMAP/Kerberos的PHP的問題11
下面是我安裝的依賴:
apt-get -y install php5-dev php-pear
apt-get -y install libxml2-dev libevent-dev zlib1g-dev libbz2-dev libgmp3-dev libssl-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libgd2-xpm-dev libmcrypt-dev memcached libmemcached-dev libc-client-dev libkrb5-dev
這裏是我的配置腳本:
./configure --enable-fpm --enable-cli --with-fpm-user=php-fpm --with-fpm-group=php-fpm --prefix=/usr/local/php --exec-prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/etc --enable-bcmath --enable-ctype --with-curl --with-curlwrappers --enable-dba --with-cdb --with-flatfile --with-inifile --enable-exif --enable-ftp --disable-fileinfo --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-ttf --with-freetype-dir --enable-gd-native-ttf --with-gettext --with-gmp --with-imap --with-imap-ssl --with-ldap --with-ldap-sasl --enable-mbstring=all --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-pdo-mysql --with-openssl --with-kerberos --with-pspell --enable-shmop --enable-simplexml --with-snmp --enable-soap --enable-sockets --with-tidy --enable-wddx --enable-xmlreader --with-xmlrpc --with-xsl --with-zip --with-zlib --enable-sysvsem --enable-sysvshm
但是,我得到一個錯誤:
configure: error: Kerberos libraries not found.
Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr)
我沒有提供一個路徑,但在我的系統上沒有像/ usr/kerberos這樣的目錄。在錯誤之上大約五行處有一個日誌項,表示checking for IMAP Kerberos support... yes
。
我需要指定一個目錄爲--with-kerberos
,這個目錄是什麼?我整天都在這裏,似乎無法弄清楚。
在此先感謝。
編輯:
我能出一個符號鏈接排序這個問題。
以下是您在運行configure命令之前執行的操作。
mkdir /usr/kerberos
ln -s /usr/lib/x86_64-linux-gnu /usr/kerberos/lib
乾杯。
非常感謝凱文。我實際上已經整理了這個問題,並忘了更新它。我現在要做。乾杯。 –