extconf.rb not seeing readline.h

J

Jim Freeze

What does it take for extconf.rb to recognize readline.h?

extconf.rb seems blind to whatever I tell it.

Here, extconf.rb does not see readline.h:

=09cd ext/readline
=09% ../../ruby extconf.rb
=09checking for tgetnum() in -lncurses... no
=09checking for tgetnum() in -ltermcap... yes
=09checking for readline/readline.h... no
=09checking for editline/readline.h... no

Here, it is plainly visible in the directories it should be looking:

=09% ../../ruby -r mkmf -e 'p Config::CONFIG["CPPFLAGS"]'
=09"-I/TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/include/readline"
=09% ../../ruby -r mkmf -e 'p Config::CONFIG["CFLAGS"]'
=09"-I/TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/include/readline"
=09% ../../ruby -r mkmf -e 'p Config::CONFIG["LDFLAGS"]'
=09"-L/TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/lib"
=09% ls -alF /TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/include/re=
adline
=09total 84
=09drwxrwsr-x 2 jdf jdf 4096 Jan 30 11:03 ./
=09drwxrwsr-x 3 jdf jdf 4096 Jan 30 11:03 ../
=09-rw-r--r-- 1 jdf jdf 10207 Jan 30 11:03 history.h
=09-rw-r--r-- 1 jdf jdf 34354 Jan 30 11:03 readline.h
=09...
=09
=09% ls -alF /TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/lib
=09total 2256
=09drwxrwsr-x 2 jdf jdf 4096 Jan 30 11:03 ./
=09drwxrwsr-x 7 jdf jdf 4096 Jan 30 11:03 ../
=09...
=09-rw-r--r-- 1 jdf jdf 1053548 Jan 30 11:03 libreadline.a
=09lrwxrwxrwx 1 jdf jdf 16 Jan 30 11:03 libreadline.so ->
libreadline.so.5
=09-rw-r--r-- 1 jdf jdf 917076 Jan 30 11:03 libreadline.so.5

Can someone splain why? ;)
 
E

Eric Hodel

What does it take for extconf.rb to recognize readline.h?

extconf.rb seems blind to whatever I tell it.

Here, extconf.rb does not see readline.h:

cd ext/readline
% ../../ruby extconf.rb
checking for tgetnum() in -lncurses... no
checking for tgetnum() in -ltermcap... yes
checking for readline/readline.h... no
checking for editline/readline.h... no

Here, it is plainly visible in the directories it should be looking:

% ../../ruby -r mkmf -e 'p Config::CONFIG["CPPFLAGS"]'
"-I/TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/include/
readline"
% ../../ruby -r mkmf -e 'p Config::CONFIG["CFLAGS"]'
"-I/TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/include/
readline"
% ../../ruby -r mkmf -e 'p Config::CONFIG["LDFLAGS"]'
"-L/TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/lib"
% ls -alF /TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/
include/readline
total 84
drwxrwsr-x 2 jdf jdf 4096 Jan 30 11:03 ./
drwxrwsr-x 3 jdf jdf 4096 Jan 30 11:03 ../
-rw-r--r-- 1 jdf jdf 10207 Jan 30 11:03 history.h
-rw-r--r-- 1 jdf jdf 34354 Jan 30 11:03 readline.h
...

% ls -alF /TOOLS/dist/gnu-readline-5.1/sparc64-sun-solaris2.8/lib
total 2256
drwxrwsr-x 2 jdf jdf 4096 Jan 30 11:03 ./
drwxrwsr-x 7 jdf jdf 4096 Jan 30 11:03 ../
...
-rw-r--r-- 1 jdf jdf 1053548 Jan 30 11:03 libreadline.a
lrwxrwxrwx 1 jdf jdf 16 Jan 30 11:03 libreadline.so ->
libreadline.so.5
-rw-r--r-- 1 jdf jdf 917076 Jan 30 11:03 libreadline.so.5

Can someone splain why? ;)

Could you attach your mkmf.log?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top