Click to See Complete Forum and Search --> : HELP: Flex installation, Apache, PHP


DJKAOS
11-23-2001, 01:40 AM
Still trying to get Apache and PHP installed.

Anyway PHP was *****ing about me not having flex..so I got that and it wouldn't configure because I didnt have yacc...so I got that now.

But I can't get FLEX to install.
I got this far..
1st I ran tar on it (duh)
2nd I did ./config ..no problems.
3rd make ..no prob
4th make check .. no prob
5th. make install
and here is what I get.
[root@DJKAOS_LINUX flex-2.5.4]# make install
/bin/sh ./mkinstalldirs \
/usr/local/bin /usr/local/lib /usr/local/include /usr/local/man/man1
rm -f /usr/local/man/man1/flexdoc.1
116/usr/bin/install -c -m 644 ./flex.1 /usr/local/man/man1/flex.1
make: 116/usr/bin/install: Command not found
make: *** [install.man] Error 127
[root@DJKAOS_LINUX flex-2.5.4]#


Anyone got any ideas? why can't I get flex to install?
I looked everywhere for a FLEX RPM and I can't find one.

I'm running Mandrake 8.1 (I think the stuff is on the CD's but for some reason my CD drive decided to crap out and quit reading CD's)

DJKAOS
11-23-2001, 03:01 AM
I got flex installed finally. (dont know how but it worked.)

but now when I run ./config for PHP I get this. (show below). Anyone know what gives? It looks like ./config can't find my flex program but its there in /usr/local/bin I checked.


---------------------------------------------
[root@DJKAOS_LINUX php-4.0.6]# ./configure --with-apache=/temp/apache_1.3.22 --w
ith-mysql=/usr/local/mysql --enable-track-vars
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
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
[root@DJKAOS_LINUX php-4.0.6]#
---------------------------------------------

DJKAOS
11-23-2001, 03:37 AM
Me again..is this getting anoying yet?
I figure one thing out and run into another one. :)

Finally got flex to work, (I just had to add /usr/local/bin to my PATH)

By the way i'm following the NFS on this site on how to install this stuff.
so anyway now when I run ./config on PHP I get this message...(note you can probably skip down to the last line)

I looked in my /temp/apache_1.3.22 directory and this is what i have in there.....am I just dumb? Why the hell is this such a pain in the *** to install?


[root@DJKAOS_LINUX apache_1.3.22]# ls
ABOUT_APACHE config.layout icons/ logs/ README.configure
Announcement config.status* INSTALL Makefile README-WIN.TXT
cgi-bin/ configure* KEYS Makefile.tmpl src/
conf/ htdocs/ LICENSE README WARNING-WIN.TXT
[root@DJKAOS_LINUX apache_1.3.22]#


----ERROR STUFF-----------------------------
[root@DJKAOS_LINUX php-4.0.6]# ./configure --with-apache=/temp/apache_1.3.22 --w
ith-mysql=/usr/local/mysql --enable-track-vars
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.28 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... no
checking for Apache module support... no
configure: error: Invalid Apache directory - unable to find httpd.h under /temp/
apache_1.3.22
[root@DJKAOS_LINUX php-4.0.6]#