trouble installing ruby on a virtual server

upgraded to virtualmin pro 3.4.6 from 3.3.1 with yum update. this server is running FC5

anyways, everything seemed to go smoothly but when tryin to add Ruby support to a virtual server with mysql support, it errors out complaining about lmysqlclient

[code:1]
Select which gem to install for your platform (i386-linux)

  1. mysql 2.7.3 (mswin32)
  2. mysql 2.7.1 (mswin32)
  3. mysql 2.7 (ruby)
  4. mysql 2.6 (ruby)
  5. Skip this gem
  6. Cancel installation
    > 3
    Building native extensions. This could take a while…
    ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install mysql --include-dependencies
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lm… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lz… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lsocket… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lnsl… yes
checking for mysql_query() in -lmysqlclient… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
[/code:1]

seemed like a missing devel package or something so ive manually installed (with yum)…

ruby-devel
msyql-devel
mysqlclient14
mysqlclient14-devel

still getting errors tho, so not sure what else to try and worried about trashing the system with too much troubleshooting

thanks in advance.

-baraboom<br><br>Post edited by: baraboom, at: 2007/09/14 13:40

-bump-

is there a special place for virtualmin pro support?

thanks
-boom

Urgent requests can be filed in the Bugs and Issues tracker. If you mark the issue private, you can safely include server details, so we can drop in and correct issues personally.

This actually looks like maybe a bug in our repositories…we’re probably not providing a package that you need to make this work. I’m not at all familiar with Ruby beyond pretty simple stuff (I’ve built a small RoR app in the past, so I’m sure I’ve dealt with the MySQL bindings stuff before…at least I must have). I’ll look into it.

thanks… would it help if i posted a bug?

I saw this once before - it can happen if the MySQL client libraries are not installed.

This can be done by going to Webmin -> System -> Software Packages, and in the Install a New Package section entering mysql-client into the ‘Package from YUM’ field, and clicking Install.

Or from the command line, by running ‘yum install mysql-client’

Joe - perhaps we should include mysql-client as one of the dependencies in the virutalmin-base package? Unfortunately Ruby Gems can’t automatically bring in system-level packages that they depend on…

I was thinking the same thing but i’m not sure what to install:

[codebox]

yum list all |grep mysql

mysql.i386 5.0.27-1.fc5 installed
mysql-devel.i386 5.0.27-1.fc5 installed
mysql-server.i386 5.0.27-1.fc5 installed
mysqlclient14.i386 4.1.14-4.2 installed
mysqlclient14-devel.i386 4.1.14-4.2 installed
php-mysql.i386 5.1.6-1.6 installed
ruby-mysql.i386 2.7-8.fc5 installed
bytefx-data-mysql.i386 1.1.13.7-3.fc5.1 updates
compat-gda-mysql.i386 1.2.3-4.fc5 extras
dbmail-mysql.i386 2.2.5-5.fc5 extras
freeradius-mysql.i386 1.0.5-1.2 core
gnokii-smsd-mysql.i386 0.6.12-4.fc5 extras
koffice-kexi-driver-mysql.i386 1.6.3-6.fc5.1 extras
libdbi-dbd-mysql.i386 0.8.1a-1.2.1 core
libgda-mysql.i386 1:1.9.100-6.fc5 extras
libpreludedb-mysql.i386 0.9.11.1-2.fc5 extras
lighttpd-mod_mysql_vhost.i386 1.4.15-1.fc5 extras
mod_auth_mysql.i386 1:3.0.0-3 core
mysql++.i386 2.2.3-1.fc5 extras
mysql+±devel.i386 2.2.3-1.fc5 extras
mysql+±manuals.i386 2.2.3-1.fc5 extras
mysql-administrator.i386 5.0r11-3.fc5 extras
mysql-bench.i386 5.0.27-1.fc5 updates
mysql-connector-java.i386 1:3.1.12-2.fc5 extras
mysql-connector-odbc.i386 3.51.12-1.2.1 core
mysql-gui-common.i386 5.0r11-3.fc5 extras
mysql-gui-tools.i386 5.0r11-3.fc5 extras
mysql-query-browser.i386 5.0r11-3.fc5 extras
mysql-test.i386 5.0.27-1.fc5 updates
mysqlclient10.i386 3.23.58-9.2 core
mysqlclient10-devel.i386 3.23.58-9.2 core
[/codebox]

Sorry, I meant to say mysql-devel