# Ruby 1.8.7-p17 compile fails with MacPorts readline?

**URL:** <https://www.ruby-forum.com/t/ruby-1-8-7-p17-compile-fails-with-macports-readline/140604>\
**Category:** Ruby\
**Created:** [June 16, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-p17-compile-fails-with-macports-readline/140604 "2008-06-16T18:50:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![s0nspark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f475e1/32.png) [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Post date:** [June 16, 2008, 6:50pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-p17-compile-fails-with-macports-readline/140604/1 "2008-06-16T18:50:26Z")

</div>

I am trying to compile ruby 1.8.7-p17 on my Macbook where I have  
readline 5.2.012 installed via MacPorts and the compile fails with the  
following error:

readline.c: In function â€˜filename\_completion\_proc\_callâ€™:  
readline.c:703: error: â€˜filename\_completion\_functionâ€™ undeclared (first  
use in this function)

A detailed (configure/make) log is attached… Any ideas? 1.8.6-p114  
compiled fine this morning on the same machine…

Thanks!

---

<div class="post-metadata">

**Author:** ![s0nspark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f475e1/32.png) [@s0nspark](https://www.ruby-forum.com/u/s0nspark)\
**Post date:** [June 16, 2008, 7:45pm UTC](https://www.ruby-forum.com/t/ruby-1-8-7-p17-compile-fails-with-macports-readline/140604/2 "2008-06-16T19:45:09Z")

</div>

Tim F. wrote:

> I am trying to compile ruby 1.8.7-p17 on my Macbook where I have  
> readline 5.2.012 installed via MacPorts and the compile fails

Never mind… sorted it out by adding --with-readline-dir=/usr/local to  
the configure args… Apparently ruby 1.8.7 is not compatible with  
Apple’s bundled readline.

Cheers,  
Tim
