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

How to use Imagick on phpseven #129

Closed
kocoten1992 opened this issue Dec 4, 2015 · 8 comments
Closed

How to use Imagick on phpseven #129

kocoten1992 opened this issue Dec 4, 2015 · 8 comments

Comments

@kocoten1992
Copy link

There is vaguely a guide to use/install Imagick on php7

Currently using hhvm, once hhvm install, everything fall into place, no need to thought about Imagick, just work.

Don't know what option I could have to ask too (I guess: self compile it or use php7 branch) but really don't know what to do after download .zip file imagick-phpseven 🎱

Is there a guide for this, thank you so much.

@Danack
Copy link
Collaborator

Danack commented Dec 4, 2015

The easiest way, if you have PECL built, is to do:

pecl install imagick-3.4.0RC2

If you don't have PECL you should be able to install on most linux distros by just doing

cd /tmp
wget http://pecl.php.net/get/imagick-3.4.0RC2.tgz
tar xvzf imagick-3.4.0RC2.tgz
cd imagick-3.4.0RC2
phpize
./configure
make install

And then adding extension=imagick.so to the relevant php.ini file. If configure complains about not being able to find ImageMagick, you can tell it exactly where it is like ./configure --libdir=/usr/lib64

@nivv
Copy link

nivv commented Dec 10, 2015

I made a guide for Ubuntu 14.04, can be found here

@MalikyarAbdullah
Copy link

Thanks. that did it.

@carlwgeorge
Copy link

Once there is a stable release compatible with PHP7, the IUS project plans to create RPM packages of this module for RHEL/CentOS 6 and 7.

@Danack
Copy link
Collaborator

Danack commented Jan 12, 2016

@carlwgeorge I try to keep Imagick stable.

I am intrigued to hear your strategy with regard to ImageMagick itself.

@carlwgeorge
Copy link

We aren't PHP developers, so we rely on upstream projects' definition of "stable". My previous statement wasn't a judgement of the quality of the software, rather just an observation of the releases on the pecl module page. We are looking forward to the final release of 3.4.0 so we can package it up for our users.

As far as packaging ImageMagick itself, IUS builds packages based on user requests. We haven't had any requests for a newer version of ImageMagick than the stock RHEL version. It is possible that we might need to in the future as a build requirement of the pecl module. The current base versions in RHEL have been sufficient so far. EL6 ImageMagick did just get rebased from 6.5.4.7 to 6.7.2.7. EL7 has 6.7.8.9. Ideally the PHP module can be kept compatible with 6.7.2.7+ so that way we can build against the stock version of ImageMagick on both EL6 and EL7.

@mikekasprzak
Copy link

Hi. Is the "phpseven" branch still required, or is PHP 7 support in mainline now? I didn't exactly see a commit that was particularly clear about this.

Thanks

@Danack
Copy link
Collaborator

Danack commented Mar 30, 2016

Hi @povrazor - the phpseven branch is no longer required, I should probably delete it as master compile against PHP 5.x and 7.

For most people, installing it through "pecl install imagick" should work, regardless of whether they are on 5.x or 7.

@Danack Danack closed this as completed Mar 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants