I’m trying to compile mysql-ruby on my web host. My web host has MySQL
version “mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)”.
I don’t have root access, and unfortunately, the header files were not
installed with MySQL, so in order to compile mysql-ruby, I downloaded a
MySQL 3.23.58 source tarball, and extracted the header files in the
include directory to $HOME/mysql.
When I try to run “extconf.rb config”, it fails and claims not to be able
to find mysql.h, even though I’ve specified where to find the MySQL
headers.
Further details below. Anyone have any ideas?
$ ruby extconf.rb --with-mysql-include=…/mysql
–with-mysql-lib=/usr/lib/mysql/ --with-mysql-config=/usr/bin/mysql_config
checking for mysql.h… no
checking for mysql/mysql.h… no
$ uname -a
Linux std5.imagineis.com 2.4.20-30.9 #1 Wed Feb 4 20:44:26 EST 2004 i686
i686 i386 GNU/Linux
$ ruby -v
ruby 1.6.8 (2002-12-24) [i386-linux-gnu]
$ ls …/mysql
config-os2.h getopt.h Makefile.in my_base.h myisammrg.h
my_nosys.h mysql_version.h.in queues.h sslopt-vars.h
config-win.h global.h m_ctype.h my_bitmap.h myisampack.h
my_pthread.h mysys_err.h raid.h t_ctype.h
dbug.h hash.h merge.h my_dir.h my_list.h
mysql_com.h my_sys.h sslopt-case.h thr_alarm.h
errmsg.h heap.h m_string.h my_global.h my_net.h
mysqld_error.h my_tree.h sslopt-longopts.h thr_lock.h
ft_global.h Makefile.am my_alarm.h myisam.h my_no_pthread.h
mysql.h nisam.h sslopt-usage.h violite.h
···
–
Jason Voegele
"There is an essential core at the center of each man and woman that
remains unaltered no matter how life’s externals may be transformed
or recombined. But it’s smaller than we think."
– Gene Wolfe, The Book of the Long Sun