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

[dev.icinga.com #8377] rhel-package php-pecl-imagick impossible to install via yum #71

Closed
icinga-migration opened this issue Feb 6, 2015 · 11 comments
Labels

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8377

Created by JannikZed on 2015-02-06 09:25:03 +00:00

Assignee: vkhatri
Status: Closed (closed on 2015-02-13 17:02:16 +00:00)
Target Version: (none)
Last Update: 2015-02-13 17:02:16 +00:00 (in Redmine)


The package php-pecl-imagick is one package to be installed via yum:
when 'rhel'
os_packages = %w(gcc gcc-c** glibc glibc-common mailx php php-devel gd gd-devel libjpeg libjpeg-devel libpng libpng-devel php-gd php-fpm php-cli php-pear php-xmlrpc php-xsl php-pdo php-soap php-ldap php-mysql php-pgsql php-pecl-imagick php-intl git)
end

This command fails, because the package is not a yum package. I don't know where it is used, but either you remove it from the list or you chef needs to compile it via gcc:
$ yum install ImageMagick ImageMagick-devel
$ pecl install imagick
$ echo "extension=imagick.so" > /etc/php.d/imagick.ini

>[2015-02-06T08:57:55+00:00] ERROR: yum_package[php-pecl-imagick] (icinga2::server_os_packages line 32) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for php-pecl-imagick

@icinga-migration
Copy link
Author

Updated by vkhatri on 2015-02-06 17:13:59 +00:00

  • Status changed from New to Assigned
  • Assigned to set to vkhatri

@icinga-migration
Copy link
Author

Updated by vkhatri on 2015-02-10 09:59:13 +00:00

this package is required for icingaweb2 setup. which OS (version) are you using? feel free to submit a PR to https://github.com/icinga/chef-icinga2!

@icinga-migration
Copy link
Author

Updated by JannikZed on 2015-02-11 14:30:59 +00:00

I'm using Centos 6.5. I created a pull Request in Github. Just let me know what you think about it.

@icinga-migration
Copy link
Author

Updated by vkhatri on 2015-02-11 19:05:06 +00:00

  • Done % changed from 0 to 100

PR merged, made couple of changes in favor of amazon platform.

@icinga-migration
Copy link
Author

Updated by vkhatri on 2015-02-11 19:14:30 +00:00

these packages can also be moved to recipe icinga2::server_web2. keeping it open for further review.

did you try to install it with epel repository? i have not gotten time to test it on centos os.

@icinga-migration
Copy link
Author

Updated by JannikZed on 2015-02-12 07:30:12 +00:00

okay damn, you are right. This package can be downloaded via epel von centos. So then we move the installation of php-pecl-imagick to icinga2::server_web2, so that it will be installed after the epel-repository is added. I can create a PR if you want so.

@icinga-migration
Copy link
Author

Updated by vkhatri on 2015-02-12 14:03:04 +00:00

i got this! thanks for confirming that adding yum epel works on centos. i think lets keep it as it is for now, now recipe does not require much of code change.

@icinga-migration
Copy link
Author

Updated by vkhatri on 2015-02-12 14:37:15 +00:00

how about giving it a try now?

@icinga-migration
Copy link
Author

Updated by JannikZed on 2015-02-13 13:53:20 +00:00

okay, we can leave it as it is. It works for Centos 6.5 but I cannot test it for amazon linux. If I notice errors later, we can reopen the bug, can we? I will do some more tests with other linux distributions the next week.
Greetings,
Jannik

@icinga-migration
Copy link
Author

Updated by vkhatri on 2015-02-13 16:56:17 +00:00

amazon linux does not require epel for this package or for any other package for installation. amzn-main repo provides this package.

thanks for looking into other rhel platforms.

sure, anytime. closing it for now.

@icinga-migration
Copy link
Author

Updated by vkhatri on 2015-02-13 17:02:16 +00:00

  • Status changed from Assigned to Closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant