Hi! Thanks for visiting my blog. If you've received any value from my content would you mind supporting my new startup by downloading our browser add-on? It's called PriceBlink and makes online shopping a breeze. You can watch it in action here and download it for Chrome, Firefox, IE, or Safari by going to PriceBlink.com. Thank you and I hope you enjoy!

Error Installing Gnuplot on Mac OS X – ld: symbol(s) not found

Jul 29

This morning I was trying to install Gnuplot from source because I wanted generate some graphs for ApacheBench. I’m currently benchmarking one of our Rails applications using Nginx w/ Mongrels against Phusion Passenger (Nginx flavor). When “make”ing Gnuplot I received the following error:


Undefined symbols:
“_rl_ding”, referenced from:
_alert in mouse.o
“_rl_complete_with_tilde_expansion”, referenced from:
_main in plot.o
“_history_list”, referenced from:
_write_history_list in history.o
“_rl_reset_after_signal”, referenced from:
_main in plot.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [gnuplot] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

After reading a comment here I found out that the -–with-readline=builtin option needs to be include when configuring Gnuplot. So you should run the following before “make”ing:

./configure -–with-readline=builtin

That got me going and hopefully it will do the same for you!

One comment

  1. Thanks, saved me lots of time on figuring this one out by myself.

Leave a Reply