URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 23443
[ Назад ]

Исходное сообщение
"RE: Ошибка при конфигурации РНР"

Отправлено Сопляк , 26-Ноя-02 12:46 
Редхат-7.3
Хочу сделать связку Apache+Mysql+PHP

1. Конфигурирую и инсталирую MySQL 3.23.39
./configure prefix=/usr/local/mysql --with-unix-socket-path=/tmp --with-charset=koi8_ru
make, make install
2. Конфигурация русского apache1.3.27rusPL30.16
./configure
3. Конфигурация PHP-4.1.2
./configure --with-mysql --with-apache=/usr/local/src/apache1.3.27rusPL30.16 --with-mod_charset

Выдает ошибку:
...................
..................

checking whether ln -s works... yes
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: lex: command not found
configure: error: cannot find output from lex; giving up

В config.log
.....................
.....................
onfigure:2501: checking for flex
configure:2535: checking for yywrap in -ll
configure:2554: gcc -o conftest -g -O2 conftest.c -ll 1>&5
/usr/bin/ld: cannot find -ll
collect2: ld returned 1 exit status
configure: failed program was:
#line 2543 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char yywrap();

int main() {
yywrap()
; return 0; }
configure:2578: checking lex output file root

Братцы, помогите разобраться


Содержание

Сообщения в этом обсуждении
"RE: Ошибка при конфигурации РНР"
Отправлено shaman , 26-Ноя-02 12:50 
>Редхат-7.3
>Хочу сделать связку Apache+Mysql+PHP
>
>1. Конфигурирую и инсталирую MySQL 3.23.39
>./configure prefix=/usr/local/mysql --with-unix-socket-path=/tmp --with-charset=koi8_ru
>make, make install
>2. Конфигурация русского apache1.3.27rusPL30.16
>./configure
>3. Конфигурация PHP-4.1.2
>./configure --with-mysql --with-apache=/usr/local/src/apache1.3.27rusPL30.16 --with-mod_charset
>
>Выдает ошибку:
>...................
>..................
>
>checking whether ln -s works... yes
>checking for flex... lex
>checking for yywrap in -ll... no
>checking lex output file root... ./configure: lex: command not found
-----------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Не может найти lex, вот и все.

>configure: error: cannot find output from lex; giving up

>В config.log
>.....................
>.....................
>onfigure:2501: checking for flex
>configure:2535: checking for yywrap in -ll
>configure:2554: gcc -o conftest -g -O2 conftest.c -ll 1>&5
>/usr/bin/ld: cannot find -ll
>collect2: ld returned 1 exit status
>configure: failed program was:
>#line 2543 "configure"
>#include "confdefs.h"
>/* Override any gcc2 internal prototype to avoid an error. */
>/* We use char because int might match the return type of
>a gcc2
>builtin and then its argument prototype would still apply. */
>char yywrap();
>
>int main() {
>yywrap()
>; return 0; }
>configure:2578: checking lex output file root
>
>Братцы, помогите разобраться



"RE: Ошибка при конфигурации РНР"
Отправлено shaman , 26-Ноя-02 12:53 
В моей системе есть такой файл:
/usr/bin/lex

#!/bin/sh
exec /usr/bin/flex -l "$@"


"RE: Ошибка при конфигурации РНР"
Отправлено Сопляк , 26-Ноя-02 13:49 
>В моей системе есть такой файл:
>/usr/bin/lex
>
>#!/bin/sh
>exec /usr/bin/flex -l "$@"

Спасиба ШАМАН!


"RE: Ошибка при конфигурации РНР"
Отправлено shaman , 26-Ноя-02 13:50 
>>В моей системе есть такой файл:
>>/usr/bin/lex
>>
>>#!/bin/sh
>>exec /usr/bin/flex -l "$@"
>
>Спасиба ШАМАН!

Не за что!