First , a lot thanks to Phil <cmdjackryan / googlemail.com>
> 
I did it as http://wiki.rubyonrails.org/rails/pages/ReadlineLibrary but
still failed. 

Any ideas ?

Regards.
                                                  Tim
                                    

> linux-tim:/home/tim/develop_software/ruby-1.8.6-p36/ext/readline # ruby extconf.rb
> checking for tgetnum() in -lncurses... yes
> checking for readline/readline.h... no
> checking for editline/readline.h... no
> linux-tim:/home/tim/develop_software/ruby-1.8.6-p36/ext/readline # cd ../..
> linux-tim:/home/tim/develop_software/ruby-1.8.6-p36 # make && make install
> compiling Win32API
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/Win32API'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/Win32API'
> compiling bigdecimal
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/bigdecimal'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/bigdecimal'
> compiling curses
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/curses'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/curses'
> compiling dbm
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/dbm'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/dbm'
> compiling digest
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest'
> compiling digest/bubblebabble
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/bubblebabble'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/bubblebabble'
> compiling digest/md5
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/md5'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/md5'
> compiling digest/rmd160
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/rmd160'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/rmd160'
> compiling digest/sha1
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/sha1'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/sha1'
> compiling digest/sha2
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/sha2'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/digest/sha2'
> compiling dl
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/dl'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/dl'
> compiling enumerator
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/enumerator'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/enumerator'
> compiling etc
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/etc'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/etc'
> compiling fcntl
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/fcntl'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/fcntl'
> compiling gdbm
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/gdbm'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/gdbm'
> compiling iconv
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/iconv'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/iconv'
> compiling io/wait
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/io/wait'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/io/wait'
> compiling nkf
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/nkf'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/nkf'
> compiling openssl
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/openssl'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/openssl'
> compiling pty
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/pty'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/pty'
> compiling racc/cparse
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/racc/cparse'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/racc/cparse'
> compiling readline
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/readline'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/readline'
> compiling sdbm
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/sdbm'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/sdbm'
> compiling socket
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/socket'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/socket'
> compiling stringio
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/stringio'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/stringio'
> compiling strscan
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/strscan'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/strscan'
> compiling syck
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/syck'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/syck'
> compiling syslog
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/syslog'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/syslog'
> compiling thread
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/thread'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/thread'
> compiling tk
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/tk'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/tk'
> compiling tk/tkutil
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/tk/tkutil'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/tk/tkutil'
> compiling win32ole
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/win32ole'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/win32ole'
> compiling zlib
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/zlib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36/ext/zlib'
> making ruby
> make[1]: Entering directory `/home/tim/develop_software/ruby-1.8.6-p36'
> make[1]: `ruby' is up to date.
> make[1]: Leaving directory `/home/tim/develop_software/ruby-1.8.6-p36'
> ./miniruby  ./instruby.rb --dest-dir="" --extout=".ext" --make="make" --mflags="" --make-flags="" --installed-list .installed.list --mantype="doc"
> installing binary commands
> installing command scripts
> installing library scripts
> installing headers
> installing manpages
> installing extension objects
> installing extension scripts
> linux-tim:/home/tim/develop_software/ruby-1.8.6-p36 # cd ~tim/workspace/test/
> linux-tim:/home/tim/workspace/test # ruby script/console
> Loading development environment.
> /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
>         from /usr/local/lib/ruby/1.8/irb/completion.rb:10
>         from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'
>         from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
>         from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'
>         from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
>         from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'
>         from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
>         from /usr/local/bin/irb:13