Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: flex-2.5.4a   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources/  &&
tar -xjf flex-2.5.4a.tar.bz2 &&
cd flex-2.5.4 &&
./configure --prefix=/usr &&
make &&
make install 


The output should look something like this:

creating cache ./config.cache
checking whether ln -s works... yes
checking for bison... bison -y
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /bin/install -c
checking whether make sets $MAKE... yes
checking for working const... yes
checking how to run the C preprocessor... gcc -E
checking whether cross-compiling... no
checking for ANSI C header files... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for string.h... yes
checking for malloc.h... yes
checking for sys/types.h... yes
checking for working alloca.h... yes
checking for alloca... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
cp ./initscan.c scan.c
touch .bootstrap
gcc -c -I. -I. -g -O ccl.c
gcc -c -I. -I. -g -O dfa.c
gcc -c -I. -I. -g -O ecs.c
gcc -c -I. -I. -g -O gen.c
gcc -c -I. -I. -g -O main.c
gcc -c -I. -I. -g -O misc.c
gcc -c -I. -I. -g -O nfa.c
bison -y -d ./parse.y
gcc -c -I. -I. -g -O parse.c
gcc -c -I. -I. -g -O scan.c
gcc -c -I. -I. -g -O skel.c
gcc -c -I. -I. -g -O sym.c
gcc -c -I. -I. -g -O tblcmp.c
gcc -c -I. -I. -g -O yylex.c
gcc -c -I. -I. -g -O libmain.c
gcc -c -I. -I. -g -O libyywrap.c
ar cru libfl.a libmain.o libyywrap.o
ranlib libfl.a
gcc -g -O -o flex  ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o  libfl.a 
/bin/sh ./mkinstalldirs \
  /usr/bin /usr/lib /usr/include /usr/man/man1
rm -f /usr/man/man1/flexdoc.1
/bin/install -c -m 644 ./flex.1 /usr/man/man1/flex.1
/bin/install -c flex /usr/bin/flex
cd /usr/bin && ln -s flex flex++
/bin/install -c -m 644 libfl.a /usr/lib/libfl.a
cd /usr/lib && ranlib libfl.a
/bin/install -c -m 644 ./FlexLexer.h /usr/include/FlexLexer.h


~~~
Please read our Terms of Use
The Mountain Climbing Journal filesystem has borrowed heavily from various pieces of Linux From Scratch.

Copyright 2006-2008 NoNIC.org

Created by:
MCJ
MCJ CMS