nixp.ru v3.0

28 марта 2024,
четверг,
20:50:07 MSK

anonymous написал 7 января 2005 года в 16:58 (939 просмотров) Ведет себя неопределенно; открыл 1814 темы в форуме, оставил 5575 комментариев на сайте.

Попытлся установить прогу SIM, и во время выполнения ./configure произошла ошибка

checking for lex… (cached) no

./configure: line 24691: text: command not found

checking for flex… no

checking for yywrap in -lfl… no

checking for yywrap in -ll… no

checking lex output file root… configure: error: cannot find output from no; g iving up

Неподскажите ди что мне делать?

Genie

поставить пакет flex или bison или что-то типа этого… yacc или byacc.

anonymous

А что это за пакеты? Для чего они нужны?

Genie

ммм…. ему говоришь, что сделать, чтобы дальше у него заработало, а тут в довесок вопросы.

хорошо. вот ответ (станет ли от этого легче?):

$ apt-cache show flex
Package: flex
Version: 2.5.4a-24
Description: A fast lexical analyzer generator.
 flex is a tool for generating scanners: programs which recognized lexical
 patterns in text. flex reads the given input files for a description of a
 scanner to generate. The description is in the form of pairs of regular
 expressions and C code, called rules. flex generates as output a C source
 file, lex.yy.c, which defines a routine yylex().  This file is compiled
 and linked with the -lfl library to produce an executable. When the
 executable is run, it analyzes its input for occurrences of the regular
 expressions. Whenever it finds one, it executes the corresponding C code.
 .
 This product includes software developed by the University of California,
 Berkeley and its contributors. The upstream source code can be found at
 ftp://ftp.gnu.org/pub/non-gnu/flex/

это одна запчасть тебе нужного. вот вторая.

$ apt-cache show bison
Package: bison
Version: 1:1.35-3
Description: A parser generator that is compatible with YACC.
 Bison is a general-purpose parser generator that converts a
 grammar description for an LALR(1) context-free grammar into a C
 program to parse that grammar.  Once you are proficient with Bison, you
 may use it to develop a wide range of language parsers, from those used
 in simple desk calculators to complex programming languages.
 .
 Bison is upward compatible with Yacc: all properly-written Yacc
 grammars ought to work with Bison with no change.  Anyone familiar with
 Yacc should be able to use Bison with little trouble.

для чего они нужны именно тебе — вопрос открытый.

но вот для сборки того, что ты собираешься ставить — они нужны.

если есть желание — почитай назначение на сайте. мне как-то лениво это объяснять.

anonymous

скачал с www.gnu.org архив с bison, при выполнении команды ./configure произошла ощибка:

checking for gm4… no

checking for gnum4… no

checking for m4… no

checking whether m4 supports frozen files… no

configure: error: GNU M4 1.4 is required

Это почти самый конец, с текстом самой ошибки!

Genie

так… automake, autoconf, autotools(-dev), m4 — это тебе тоже надо…

хотя, скорее всего первые три у тебя стоят..

$ apt-cache show m4
Package: m4
Version: 1.4-14
Description: a macro processing language
 GNU `m4' is an implementation of the traditional UNIX macro
 processor.  It is mostly SVR4 compatible, although it has some
 extensions (for example, handling more than 9 positional parameters to
 macros).  `m4' also has builtin functions for including files, running
 shell commands, doing arithmetic, etc.  Autoconf needs GNU `m4' for
 generating `configure' scripts, but not for running them.

качать оттуда же.

хотя странно, что же это такое установлено, что такие вещи приходится собирать, и собирать самому?

может они есть готовые, собранные, на дисках, с которых ставилась система?

какая она, кстати?

anonymous

У меня мандрайк 10.0

Спасибо за помощ, дальше думаю как нибудь сам разберусь!

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.