-
Notifications
You must be signed in to change notification settings - Fork 24
Mysql chef gem compilation error #13
Comments
I haven't spent much time with the ruby recipe recently. I'll see if I can take a look at it later today and piece together what might be happening. |
I have been struggling with this issue for a whole day, still can't get it to work :s |
I had an issue for myself and used another way to go around (just copied some lines from the opscode mysql cookbook ^^). Perhaps my mariadb::ruby can help you, too? You could try my fork. |
The mysql2 gem has no problems by the way. |
Wouldn't it work for you, to fork the database cookbook and just move to mysql2? It doesn't make sense to use both, I think. |
I'm not really a Ruby developer, so I don't know what the main differences are between those 2 :) |
short anwer: it's faster, a bit longer answer: |
It's interface/methods are not really 100% compatible with the mysql gem. I had to change some stuff but it seems to be working now! |
unless the mysql gem is required for the installation / management of mysql / mariadb, then it shouldn't be included. if it is required for that reason, then mysql2 should be used in place of the older mysql gem. |
The mysql2 gem is only usable with changes to the database cookbook. So, it would be better if mysql would work :) |
I'm not really sure how to proceed with this one. The opscode database cookbook has moved to using a stand-alone cookbook for the express purpose of installing the mysql gem: https://github.com/opscode-cookbooks/mysql-chef_gem. This would seem to remove the need for the mariadb::ruby recipe. Would there be objections to removing the recipe? |
Yes, objections. This mysql-chef_gem won't work, since it includes mysql::client - what does not work with mariadb installation of your cookbook. |
But I think you don't have to do anything inside this issue. Jens worked around his issue, that must have to do something with his environment. I cannot imagine why he can install mysql2 gem but not mysql gem (both need mariadb headers - so he must have been able to install them, although I thought his error messages imply they would be not existent). I think the discussion about the change to mysql-chef_gem belongs into jens pull request. |
@bpieck Objection heard! I'll see if I can get some time to review the PR and get it merged in. |
When running mariadb::ruby I get this error:
Is there a way to fix this? Maybe I'm missing some dependencies?
The text was updated successfully, but these errors were encountered: