[GRASSLIST:5684] Re: configure options
Hamish
hamish_nospam at yahoo.com
Tue Feb 8 17:26:19 EST 2005
> I'm trying to compiling GRASS(6.0.0beta2) in Scientific Linux
> (http://linux.web.cern.ch/linux/scientific3/) and I don't have
> any problem with the following ./configure options:
> --with-blas
> --with-lapack
> --with-obdc
> --with-motif
> --with-glw
> --with-nls
> --with-cxx
> But I got problems with
> --with-mysql (And SL (Scientific Linux) has MySQL installed.
> also with
> --with-readline,--with-freetype
> I verify with the synaptic application and apt-get that
> ReadLine and FreeType are installed.
> What am I missing?
> Where to locate the Readline and the FreeType library?
> From where can I download the appropiate .rpm file to install those
> libraries?
>
> When I use --with-readline option I got:
> ...
> checking whether to use Readline... yes
> checking for location of Readline includes...
> checking for readline/readline.h... yes
> checking for readline/history.h... yes
> checking for location of Readline library...
> checking for readline in -lreadline... no
> configure: error: *** Unable to locate Readline library.
>
> When I use --with-freetype option I got:
> ...
> checking whether to use FreeType... yes
> checking for location of FreeType includes...
> checking for ft2build.h... no
> configure: error: *** Unable to locate FreeType includes.
>
> When I use --with-mysql option, I got:
> ...
> checking whether to use PostgreSQL... yes
> checking for location of PostgreSQL includes...
> checking for libpq-fe.h... yes
> checking for location of PostgreSQL library...
> checking for PQsetdbLogin in -lpq... yes
> checking for PQcmdTuples in -lpq... yes
> checking whether to use MySQL... yes
> checking for location of MySQL includes...
> checking for mysql.h... no
> configure: error: *** Unable to locate MySQL includes.
you probably just have to add"--with-mysql-includes=",
"--with-freetype-includes=", and/or "--with-readline-libs="
parts to direct it where to look. I see SciLinux is based on Redhat.
Here's how I configure grass for that: (Redhat 9)
CFLAGS="-O3 -march=pentium4 -g -Wall" ./configure \
--with-motif \
--with-motif-includes=/usr/X11R6/LessTif/Motif1.2/include \
--with-motif-libs=/usr/X11R6/LessTif/Motif1.2/lib \
--with-glw --with-proj --with-gdal \
--with-cxx \
--with-freetype --with-freetype-includes=/usr/include/freetype2
You can get config options with:
./configure --help | less
find missing includes with "locate":
locate mysql.h
should tell you where the file lives. (sometimes leave off any trailing
/lib or /include as they are assumed)
You may need the -dev version of the packages installed...
Redhat 9 had problems with readline, it isn't critical to have though.
Hamish
More information about the grass-user
mailing list