LINUX.ORG.RU

роблема при компиляции php-5.2.1


0

0

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);}

Используемая система - Fedora Core 5.

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

Заранее благодарен.

libjpeg-devel ещё поставить надо.

Deleted
()
Ответ на: комментарий от phoenix

Дело в том что gcc у меня уже стоит. К тому же перед установкой php установка Apache из исходных кодов прошла успешно!!! Поэтому с компилятором все отлично.

nervouselectronic
() автор топика
Ответ на: комментарий от nervouselectronic

Еще раз, внимательно, прочти то, что написано выше.

cobold ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.