[GRASS-user] ./configure oddities

Some configure errors:

checking whether to use MySQL... yes
checking for location of MySQL includes... /usr/include/mysql
checking for mysql.h... yes
checking for location of MySQL library... /usr/lib64/mysql
checking for mysql_query in -lmysqlclient... yes
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_server_init... no
configure: warning: libmysqld not found

On my CentOS 4.3 system with all mysql packages installed (base,
client, server, devel), there is no mysql_server_init and no
libmysqld. Why is it trying to find them? I assume they are not
really needed because it only gives a warning, not an error. If
I knew what it's utterly trying to check for, I could tell it
what to look for.

Likewise,

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.

but

# rpm -ql readline-devel
/usr/include/readline
/usr/include/readline/chardefs.h
/usr/include/readline/history.h
/usr/include/readline/keymaps.h
/usr/include/readline/readline.h
/usr/include/readline/rlconf.h
/usr/include/readline/rlstdc.h
/usr/include/readline/rltypedefs.h
/usr/include/readline/tilde.h
/usr/lib64/libhistory.a
/usr/lib64/libhistory.so
/usr/lib64/libreadline.a
/usr/lib64/libreadline.so

It's libreadline it should be looking for instead of readline,
isn't it?

Z

Zenon Panoussis napisaƂ(a):

Some configure errors:

checking whether to use MySQL... yes
checking for location of MySQL includes... /usr/include/mysql
checking for mysql.h... yes
checking for location of MySQL library... /usr/lib64/mysql
checking for mysql_query in -lmysqlclient... yes
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_server_init... no
configure: warning: libmysqld not found

On my CentOS 4.3 system with all mysql packages installed (base,
client, server, devel), there is no mysql_server_init and no
libmysqld. Why is it trying to find them? I assume they are not
really needed because it only gives a warning, not an error. If
I knew what it's utterly trying to check for, I could tell it
what to look for.

Likewise,

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.

but

# rpm -ql readline-devel
/usr/include/readline
/usr/include/readline/chardefs.h
/usr/include/readline/history.h
/usr/include/readline/keymaps.h
/usr/include/readline/readline.h
/usr/include/readline/rlconf.h
/usr/include/readline/rlstdc.h
/usr/include/readline/rltypedefs.h
/usr/include/readline/tilde.h
/usr/lib64/libhistory.a
/usr/lib64/libhistory.so
/usr/lib64/libreadline.a
/usr/lib64/libreadline.so

It's libreadline it should be looking for instead of readline,
isn't it?

Z

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser
  

I can add, that in in ./configure are some other hmmm... mistakes...
for example: cxx is default=no so if you want to compile r.terraflow you must change for yes - new users not alwayes do so.

On Aug 29, 2006, at 10:48 PM, Zenon Panoussis wrote:

Some configure errors:

checking whether to use MySQL... yes
checking for location of MySQL includes... /usr/include/mysql
checking for mysql.h... yes
checking for location of MySQL library... /usr/lib64/mysql
checking for mysql_query in -lmysqlclient... yes
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_server_init... no
configure: warning: libmysqld not found

On my CentOS 4.3 system with all mysql packages installed (base,
client, server, devel), there is no mysql_server_init and no
libmysqld. Why is it trying to find them? I assume they are not
really needed because it only gives a warning, not an error. If
I knew what it's utterly trying to check for, I could tell it
what to look for.

For mysqld I found that I had to set MYSQLD_CONFIG before running configure. ie:

export MYSQLD_CONFIG=/usr/local/mysql/bin/mysql_config

or whereever your mysql is installed.

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life."

- Marvin

Zenon Panoussis wrote:

Likewise,

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.

but

# rpm -ql readline-devel
/usr/include/readline
/usr/include/readline/chardefs.h
/usr/include/readline/history.h
/usr/include/readline/keymaps.h
/usr/include/readline/readline.h
/usr/include/readline/rlconf.h
/usr/include/readline/rlstdc.h
/usr/include/readline/rltypedefs.h
/usr/include/readline/tilde.h
/usr/lib64/libhistory.a
/usr/lib64/libhistory.so
/usr/lib64/libreadline.a
/usr/lib64/libreadline.so

It's libreadline it should be looking for instead of readline,
isn't it?

The test is correct. Readline failures normally indicate that
libreadline is missing depedency information. The library requires
certain termcap functions (tgetent etc), but doesn't list the relevant
library as a dependency.

The configure script can't determine the dependency, because there are
often multiple plausible candidates (libtermcap, libtinfo,
lib[n]curses), and it isn't possible to determine which one is correct
at compile time.

Either build libreadline with correct dependency information, or don't
use --with-readline. The switch only affects whether r.mapcalc uses
readline for interactive input, so it isn't particularly important.

--
Glynn Clements <glynn@gclements.plus.com>