Complete.Org: Mailing Lists: Archives: freeciv: August 2000:
[Freeciv] Re: need help with readline (not strictly freeciv related)
Home

[Freeciv] Re: need help with readline (not strictly freeciv related)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Erik Sigra <freeciv@xxxxxxx>
Cc: freeciv@xxxxxxxxxxx
Subject: [Freeciv] Re: need help with readline (not strictly freeciv related)
From: Thue <thue@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Aug 2000 14:52:43 +0200
Reply-to: thue@xxxxxxxxxxxxxxxxxxxxxxxxxx

On Tue, 22 Aug 2000 12:42:31 Erik Sigra wrote:
> Hi,
> 
> I wanted to use readline with Freeciv and downloaded readline from 
> 
>   <ftp://ftp.isy.liu.se/pub/gnu/readline/>
> 
> unpacked it, ran configure, cd shlib and make. 
> 
> Then the problems start: 
> 
> freeciv@a77:~/readline-4.1/shlib > su root 
> Password: 
> root@a77:/home/freeciv/readline-4.1/shlib > make install 
> /bin/sh ../support/mkdirs /usr/local/lib 
> /bin/sh ../support/shlib-install -O linux-gnu -d /usr/local/lib -i
> "/usr/bin/ginstall -c -m 644" libhistory.so.4.1 
> /bin/sh ../support/shlib-install -O linux-gnu -d /usr/local/lib -i
> "/usr/bin/ginstall -c -m 644" libreadline.so.4.1 
> install: you may need to run ldconfig 
> root@a77:/home/freeciv/readline-4.1/shlib > /sbin/ldconfig 
> /sbin/ldconfig: Input file /usr/lib/libImlib.so not found. 
> 
> /sbin/ldconfig: Input file /usr/lib/libgdk_imlib.so not found. 
> 
> /sbin/ldconfig: Input file /usr/lib/libxml.so not found. 
> 
> /sbin/ldconfig: /usr/local/lib/libreadline.so.4.1 is not a symbolic link 
> 
> /sbin/ldconfig: /usr/local/lib/libhistory.so.4.1 is not a symbolic link 
> 
> /sbin/ldconfig: Input file /opt/gnome/lib/libart_lgpl.so not found. 
> 
> /sbin/ldconfig: Input file /opt/gnome/lib/libgnome.so not found. 
> 
> /sbin/ldconfig: Input file /opt/gnome/lib/libgnomeui.so not found. 
> 
> /sbin/ldconfig: Input file /opt/gnome/lib/libgnorba.so not found. 
> 
> /sbin/ldconfig: Input file /opt/gnome/lib/libzvt.so not found. 
> 
> root@a77:/home/freeciv/readline-4.1/shlib > 
> 
> 
> then Freeciv configure doesn't work (I removed configure.cache):
> 
> checking for rl_callback_handler_install in -lreadline... no
> configure: error: Specified --with-readline but did not find
> library.

It does find it, it just fails to link a program with it. That is because
readline requires libncurses (or equivalent). On my system I can: 

bash-2.04$ ldd  /usr/lib/libreadline.so 
        libncurses.so.5 => /lib/libncurses.so.5 (0x40029000)
        libc.so.6 => /lib/libc.so.6 (0x40067000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

Showing it is correctly configured. It seems it isn't on yours. I assume that
is a bug a bug in the readline install... I do not know how to add the
dependensy.

If you just want to compile freeciv with it you can edit configure.in to skip
the readline test and add -lncurses to the server libs.

-Thue



[Prev in Thread] Current Thread [Next in Thread]