any ideas on how to get readline support in OS X 10.3?

S

Sam Roberts

I just got this working for ruby1.8 on OS X 10.2... then upgraded.

The old hack involved installing the headers for a library that was
actually there, but with 10.3 and recent devel tools the headers ARE
there, but I still can't get it working.

Any ideas, this is quite painful!

Sam


I'm building 1.8 from cvs, heres the problem:

--- mkmf.log --

have_library: checking for tgetnum() in -lncurses... -------------------- yes

"gcc -o conftest -I/Users/sam/p/ruby/ruby/ext/readline -I/usr/local/lib/ruby/1.8/powerpc-darwin6.8 -g -O2 -pipe -fno-common conftest.c -L"/usr/local/lib" -lruby18-static -lncurses -ldl -lobjc "
checked program was:
/* begin */

/*top*/
int main() { return 0; }
int t() { tgetnum(); return 0; }
/* end */

--------------------

have_header: checking for readline/readline.h... -------------------- yes

"gcc -E -I/Users/sam/p/ruby/ruby/ext/readline -I/usr/local/lib/ruby/1.8/powerpc-darwin6.8 -g -O2 -pipe -fno-common conftest.c -o conftest.i"
checked program was:
/* begin */
#include <readline/readline.h>
/* end */

--------------------

have_header: checking for readline/history.h... -------------------- yes

"gcc -E -I/Users/sam/p/ruby/ruby/ext/readline -I/usr/local/lib/ruby/1.8/powerpc-darwin6.8 -g -O2 -pipe -fno-common conftest.c -o conftest.i"
checked program was:
/* begin */
#include <readline/history.h>
/* end */

--------------------

have_library: checking for readline() in -lreadline... -------------------- no

"gcc -o conftest -I/Users/sam/p/ruby/ruby/ext/readline -I/usr/local/lib/ruby/1.8/powerpc-darwin6.8 -g -O2 -pipe -fno-common conftest.c -L"/usr/local/lib" -lncurses -lruby18-static -lreadline -lncurses -ldl -lobjc "
ld: can't locate file for: -lreadline
checked program was:
/* begin */

/*top*/
int main() { return 0; }
int t() { readline(); return 0; }
/* end */

"gcc -o conftest -I/Users/sam/p/ruby/ruby/ext/readline -I/usr/local/lib/ruby/1.8/powerpc-darwin6.8 -g -O2 -pipe -fno-common conftest.c -L"/usr/local/lib" -lncurses -lruby18-static -lreadline -lncurses -ldl -lobjc "
conftest.c: In function `t':
conftest.c:5: error: `readline' undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */


/*top*/
int main() { return 0; }
int t() { void ((*volatile p)()); p = (void ((*)()))readline; return 0; }
/* end */

--------------------
 

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

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top