OpenVZ Forum


Home » International » Russian » Проблема при компиляции php-5.2.1
Проблема при компиляции php-5.2.1 [message #12454] Sun, 29 April 2007 00:25 Go to previous message
nervouselectronic is currently offline  nervouselectronic
Messages: 4
Registered: April 2007
Junior Member
Очень важно!!!!! Поджимают сроки а продвинуться не могу, весь Internet перерыл в поисках ответа!!!

Поставил OpenVZ на Red Hat EL 4.
Создал VPS на ostemplate fedora-core-5-minimal.
Стоит задача установки стандартной связки MySQL + Apache + PHP
самых последних версий.
MySQL поставил из RPM пакета без проблем.
Apache ставил из исходников - тоже все получилось (предварительно установив в VPS необходимые для компиляции пакеты).
А вот с PHP возникла проблема, она описана ниже:
1)Компилирую php-5.2.1 следующим образом:
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/lib/mysql --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib

Выскакивает следующая ошибка:

checking for the location of libjpeg... /usr/lib
checking for the location of libpng... /usr/lib
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
configure: error: libjpeg.(a|so) not found.

Хотя путь к файлам библиотеки указан правильно:

# rpm -ql libjpeg
/usr/bin/cjpeg
/usr/bin/djpeg
/usr/bin/jpegtran
/usr/bin/rdjpgcom
/usr/bin/wrjpgcom
/usr/lib/libjpeg.so.62
/usr/lib/libjpeg.so.62.0.0
/usr/share/doc/libjpeg-6b
/usr/share/doc/libjpeg-6b/README
/usr/share/doc/libjpeg-6b/usage.doc
/usr/share/man/man1/cjpeg.1.gz
/usr/share/man/man1/djpeg.1.gz
/usr/share/man/man1/jpegtran.1.gz
/usr/share/man/man1/rdjpgcom.1.gz
/usr/share/man/man1/wrjpgcom.1.gz

2)При сборке с ключами:
# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/lib/mysql

Выпадает следующая ошибка:

Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

config.log выдает следующее:

configure:105900: checking for c++
configure:105900: checking for g++
configure:105900: checking for gcc
configure:105932: checking whether the C++ compiler (gcc ) works
configure:105948: gcc -o conftest conftest.C 1>&5
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
configure: failed program was:

#line 105943 "configure"
#include "confdefs.h"

int main(){return(0);}

Помогите пожалуйста решить эту проблему, очень нужно...

Заранее благодарен.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Жесткая настройка сети
Next Topic: Проблемка: Realtek RTL8111/8168B PCI Express Gigabit
Goto Forum:
  


Current Time: Tue Jul 23 01:19:45 GMT 2024

Total time taken to generate the page: 0.02391 seconds