PHP GD libraries on Ubuntu 8.04 - andyceo/documentation GitHub Wiki
Устанавливаем корректные GD-библиотеки для Ubuntu 8.04
:!: Тестировалось только под Ubuntu 8.04! Данный раздел нужен только для системы Ubuntu 8.04! В системе Ubuntu 10.04 GD-библиотеки скомпилированы нормально, в этих действиях на этой системе смысла нет.
-
Установить PGP-ключ для новых репозиториев, откуда будем качать GD-библиотеку:
gpg --keyserver keys.gnupg.net --recv-key 89DF5277 gpg -a --export 89DF5277 | sudo apt-key add -
-
Удалить старую библиотеку вместе с настройками, если она есть:
sudo apt-get --purge remove php5-gd
-
Добавить две строчки в файл
/etc/apt/sources.list
:deb http://packages.dotdeb.org stable all deb-src http://packages.dotdeb.org stable all
-
Обновить репозитории:
sudo aptitude update
-
Установить GD-библиотеку:
sudo aptitude install php5-gd
-
Отвечать "Да" когда Убунта хочет обновить сопутствующие пакеты:
user@84-16-230-159:~$ sudo aptitude install php5-gd Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following packages are BROKEN: libapache2-mod-php5 php5-cli php5-curl php5-mysql php5-xsl The following packages have been automatically kept back: libdns35 libisc35 mysql-common The following packages have been kept back: bind9-host dnsutils libbind9-30 libisccfg30 liblwres30 mysql-server php-pear php5 php5-dev php5-imagick php5-imap php5-mcrypt The following NEW packages will be installed: php5-gd The following packages will be upgraded: php5-common 1 packages upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 475kB of archives. After unpacking 275kB will be used. The following packages have unmet dependencies: php5-xsl: Depends: php5-common (= 5.2.4-2ubuntu5.10) but 5.2.14-0.dotdeb.0 is to be installed. php5-curl: Depends: php5-common (= 5.2.4-2ubuntu5.10) but 5.2.14-0.dotdeb.0 is to be installed. php5-mysql: Depends: php5-common (= 5.2.4-2ubuntu5.10) but 5.2.14-0.dotdeb.0 is to be installed. php5-cli: Depends: php5-common (= 5.2.4-2ubuntu5.10) but 5.2.14-0.dotdeb.0 is to be installed. libapache2-mod-php5: Depends: php5-common (= 5.2.4-2ubuntu5.10) but 5.2.14-0.dotdeb.0 is to be installed. Resolving dependencies... The following actions will resolve these dependencies: Upgrade the following packages: libapache2-mod-php5 [5.2.4-2ubuntu5.10 (hardy-updates, hardy-security, now) -> 5.2.14-0.dotdeb.0 (<NULL>)] php5-cli [5.2.4-2ubuntu5.10 (hardy-updates, hardy-security, now) -> 5.2.14-0.dotdeb.0 (<NULL>)] php5-curl [5.2.4-2ubuntu5.10 (hardy-updates, hardy-security, now) -> 5.2.14-0.dotdeb.0 (<NULL>)] php5-mysql [5.2.4-2ubuntu5.10 (hardy-updates, hardy-security, now) -> 5.2.14-0.dotdeb.0 (<NULL>)] php5-xsl [5.2.4-2ubuntu5.10 (hardy-updates, hardy-security, now) -> 5.2.14-0.dotdeb.0 (<NULL>)] Score is 340 Accept this solution? [Y/n/q/?] y The following packages have been automatically kept back: libdns35 libisc35 mysql-common The following packages have been kept back: bind9-host dnsutils libbind9-30 libisccfg30 liblwres30 mysql-server php-pear php5 php5-dev php5-imagick php5-imap php5-mcrypt The following NEW packages will be installed: php5-gd The following packages will be upgraded: libapache2-mod-php5 php5-cli php5-common php5-curl php5-mysql php5-xsl 6 packages upgraded, 1 newly installed, 0 to remove and 15 not upgraded. Need to get 5893kB of archives. After unpacking 1078kB will be used. Do you want to continue? [Y/n/?] y
-
Обновить все, что осталось:
sudo aptitude safe-upgrade
-
Перезапустить на всякий случай
apache
:sudo /etc/init.d/apache2 restart
Ссылки: