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)
mysql 2.7.3 (mswin32)
mysql 2.7.1 (mswin32)
mysql 2.7 (ruby)
mysql 2.6 (ruby)
Skip this gem
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)…
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.
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…