Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not install libmysqlclient-dev #457

Closed
greneholt opened this issue Aug 21, 2016 · 6 comments
Closed

Does not install libmysqlclient-dev #457

greneholt opened this issue Aug 21, 2016 · 6 comments

Comments

@greneholt
Copy link

Cookbook version

8.0.1

Chef-client version

12.13.37

Platform Details

Ubuntu 14.04

Scenario:

Install the mysql gem, which requires the mysql client dev libraries to be installed.

Steps to Reproduce:

In a recipe, insert the following:

mysql_client 'default' do
  version '5.6'
  package_version ''
  action [:create]
end

Expected Result:

I expected the development libraries to be installed.

From the cookbook description: The mysql_client resource manages the MySQL client binaries and development libraries.

Actual Result:

The development libraries were not installed. On Ubuntu 14.04, libmysqlclient-dev was not installed.

As best as I can tell, the development library packages were removed in commit 824e854.

@patcon
Copy link
Contributor

patcon commented Aug 29, 2016

My options when encountered this are either to:

  1. pin back mysql coobkook with < 8
  2. add a compile-time install of libmysqlclient-dev before the mysql2_chef_gem resource (there's probably some logic based on os and version, which I'm able to skip concerning myself with in my simple cookbook)

@rmyates
Copy link

rmyates commented Sep 20, 2016

I've just hit this too, looks to be a breaking change that perhaps was missed during refactoring.

I've also noticed following the Readme that passing an array of packages to package_name in mysql_client resource breaks:
Property package_name must be one of: String! You passed ["mysql-client", "libmysqlclient-dev"]

@geleman
Copy link

geleman commented Oct 3, 2016

This is a continuing breaking change in Centos as well and needs to be addressed either here or in mysql2_chef_gem.

@javornikolov
Copy link

javornikolov commented Oct 22, 2016

I'm facing that problem on CentOS. I can imagine two options here:

  1. fix the documentation - make it clear mysql_client doesn't pull development libraries. In such case it makes sense to add another recipe e.g. mysql_devel which to do that.
  2. add back the development libraries to be installed by mysql_client.

Reviewing the release notes - option (2) looks more appropriate at first glimpse, at least for 8.x. If finer granularity is needed - it may be achieved e.g. by adding include_devel_libraries | default=true) option and a separate mysql_devel recipe.

@tas50, any opinion in which direction would we like to evolve?

@tas50
Copy link
Contributor

tas50 commented Dec 8, 2016

This was fixed in the last release.

@tas50 tas50 closed this as completed Dec 8, 2016
@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants