is there a reason why you can't install flex or lex? It's a pretty
standard gnu tool and there should be a prebuilt package for it.
Tim
On Jun 15, 2009, at 3:46 PM, Tom Marsh wrote:
> Hello,
>
> its me again I'm afraid. Having got past the bootstrap problem I got
> as far as:
>
> ./configure -C
>
> which ran along merrily until it said:
>
> configure: error: Failed to locate lex or flex
>
> (see below for a bit more surrounding context). Note that I am
> trying here
> to compile with gfortran (gcc version 4.3.2) because I seem to be
> having
> difficulties with an application
> that I link to starlink libraries when I use g95. I had the same
> problem a
> while ago which was cured when I realised that I was using an unstable
> release of g95, but this time I can't seem to find a version of g95
> which
> works, so I thought I would bite the bullet and switch to gfortran.
>
> Tom
>
>
> checking for g++... (cached) g++
>
>
> checking whether we are using the GNU C++ compiler... (cached) yes
>
>
> checking whether g++ accepts -g... (cached) yes
>
>
> checking dependency style of g++... (cached) gcc3
>
>
> checking how to run the C++ preprocessor... (cached) g++ -E
>
>
> checking for g77... (cached) gfortran
>
>
> checking for suffix of module files... mod
>
>
> checking whether we are using the GNU Fortran 77 compiler...
> (cached) yes
>
>
> checking whether gfortran accepts -g... (cached) yes
>
>
> checking the maximum length of command line arguments... (cached)
> 32768
>
>
> checking command to parse /usr/bin/nm -B output from gcc object...
> (cached)
> ok
>
> checking for objdir... (cached) .libs
>
>
> checking for ar... (cached) ar
>
>
> checking for ranlib... (cached) ranlib
>
>
> checking for strip... (cached) strip
>
>
> checking if gcc static flag works... yes
>
>
> checking if gcc supports -fno-rtti -fno-exceptions... (cached) no
>
>
> checking for gcc option to produce PIC... -fPIC
>
>
> checking if gcc PIC flag -fPIC works... yes
>
>
> checking if gcc supports -c -o file.o... (cached) yes
>
>
> checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m
> elf_x86_64) supports shared libraries... yes
>
> checking whether -lc should be explicitly linked in... no
>
>
> checking dynamic linker characteristics... GNU/Linux ld.so
>
>
> checking how to hardcode library paths into programs... immediate
>
>
> checking whether stripping libraries is possible... yes
>
>
> checking if libtool supports shared libraries... yes
>
>
> checking whether to build shared libraries... yes
>
>
> checking whether to build static libraries... yes
>
>
> configure: creating libtool
>
>
> appending configuration tag "CXX" to libtool
>
>
> checking for ld used by g++... (cached) /usr/x86_64-suse-linux/bin/
> ld -m
> elf_x86_64
>
> checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64)
> is GNU
> ld... (cached) yes
>
> checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m
> elf_x86_64) supports shared libraries... yes
>
> checking for g++ option to produce PIC... -fPIC
>
>
> checking if g++ PIC flag -fPIC works... yes
>
>
> checking if g++ supports -c -o file.o... (cached) yes
>
>
> checking whether the g++ linker (/usr/x86_64-suse-linux/bin/ld -m
> elf_x86_64) supports shared libraries... yes
>
> checking dynamic linker characteristics... GNU/Linux ld.so
>
>
> checking how to hardcode library paths into programs... immediate
>
>
> checking whether stripping libraries is possible... yes
>
>
> appending configuration tag "F77" to libtool
>
>
> checking if libtool supports shared libraries... yes
>
>
> checking whether to build shared libraries... yes
>
>
> checking whether to build static libraries... yes
>
>
> checking for gfortran option to produce PIC... -fPIC
>
>
> checking if gfortran PIC flag -fPIC works... yes
>
>
> checking if gfortran supports -c -o file.o... (cached) yes
>
>
> checking whether the gfortran linker (/usr/x86_64-suse-linux/bin/ld -m
> elf_x86_64) supports shared libraries... yes
>
> checking dynamic linker characteristics... GNU/Linux ld.so
>
>
> checking how to hardcode library paths into programs... immediate
>
>
> checking whether stripping libraries is possible... yes
>
>
> checking for star2html... (cached) star2html
>
>
> configure: creating ./config.status
>
>
> config.status: creating Makefile
>
>
> config.status: creating component.xml
>
>
> config.status: creating extractor.icl
>
>
> config.status: executing depfiles commands
>
>
> configure: configuring in extreme
>
>
> configure: running /bin/sh './configure'
> --prefix=/home/phsaap/software/gstar '--prefix=/home/phsaap/
> software/gstar'
> '-C' '--cache-file=../config.cache' '--srcdir=.' 'CFLAGS=-Wall -O'
> 'CPPFLAGS=-I/home/phsaap/software/include'
> 'LDFLAGS=-L/home/phsaap/software/lib' --cache-file=../../config.cache
> --srcdir=.
> configure: loading cache ../../config.cache
> checking for a BSD-compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... (cached) gawk
> checking whether make sets $(MAKE)... (cached) yes
> checking build system type... (cached) x86_64-unknown-linux-gnu
> checking for style of include used by make... GNU
> checking for gcc... (cached) gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... (cached) o
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ANSI C... (cached) none needed
> checking dependency style of gcc... (cached) none
> checking for g95... (cached) gfortran
> checking for suffix of module files... mod
> checking whether we are using the GNU Fortran compiler... (cached) yes
> checking whether gfortran accepts -g... (cached) yes
> configure: Starlink tree located at /home/phsaap/software/gstar
> checking whether we need any library fixups... (cached) no
> configure: STAR_DEFAULTS has option per-package-dirs:
> configure: bindir=${exec_prefix}/bin/extreme
> starhelpdir=${prefix}/help/extreme
> staretcdir=${prefix}/etc/extreme
> checking for git... (cached) /usr/bin/git
> checking for pax... (cached) /usr/bin/pax
> checking for gnutar... (cached) /bin/tar
> checking for gcc... (cached) gcc
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ANSI C... (cached) none needed
> checking dependency style of gcc... (cached) none
> checking for perl... (cached) /home/phsaap/software/gstar/Perl/bin/
> perl
> checking for prolat... (cached) prolat
> checking for flex... no
> checking for lex... no
> checking for yywrap in -lfl... no
> checking for yywrap in -ll... no
> configure: error: Failed to locate lex or flex
> configure: error: /bin/sh './configure' failed for extreme
> configure: error: /bin/sh './configure' failed for applications
> software/starlink>
--
Tim Jenness
Joint Astronomy Centre
|