[PHP 5.6] Haru PDF インストール

### 概要
[Haru PDF](https://www.google.co.jp/search?q=Haru+PDF&oq=Haru+PDF)を使っていたのですが、5.6にアップデートしたタイミングでインストールできなくなったので、再インストール

### 何も考えずにyum

```shell-session
# yum install --enablerepo=remi-php56 php-pecl-haru.x86_64
Loaded plugins: fastestmirror, presto, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * remi-php56: fr2.rpmfind.net
51 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-haru.x86_64 0:1.0.4-4.el6.remi.5.6 will be installed
--> Processing Dependency: libhpdf-2.2.1.so()(64bit) for package: php-pecl-haru-1.0.4-4.el6.remi.5.6.x86_64
--> Finished Dependency Resolution
Error: Package: php-pecl-haru-1.0.4-4.el6.remi.5.6.x86_64 (remi-php56)
           Requires: libhpdf-2.2.1.so()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

```

``libhpdf-2.2.1.so``が無いよ、と言われました。


### libhpdf-2.2.1.soのインストール

[ここ](http://rpm.pbone.net/index.php3/stat/3/limit/1/srodzaj/1/dl/40/search/libhpdf-2.2.1.so/field[]/1/field[]/2)からさがす。

ちなみに今回は、``CentOS6``です

```shell-session
# yum install ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/halocaridina/CentOS_CentOS-6/x86_64/libharu-2.2.1-5.1.x86_64.rpm
Loaded plugins: fastestmirror, presto, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Setting up Install Process
libharu-2.2.1-5.1.x86_64.rpm                                                                                                                                                                | 330 kB     00:03 ...
Examining /var/tmp/yum-root-7RY1XC/libharu-2.2.1-5.1.x86_64.rpm: libharu-2.2.1-5.1.x86_64
Marking /var/tmp/yum-root-7RY1XC/libharu-2.2.1-5.1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package libharu.x86_64 0:2.2.1-5.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                       Arch                                         Version                                          Repository                                                       Size
===================================================================================================================================================================================================================
Installing:
 libharu                                       x86_64                                       2.2.1-5.1                                        /libharu-2.2.1-5.1.x86_64                                       728 k

Transaction Summary
===================================================================================================================================================================================================================
Install       1 Package(s)

Total size: 728 k
Installed size: 728 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libharu-2.2.1-5.1.x86_64                                                                                                                                                                        1/1
  Verifying  : libharu-2.2.1-5.1.x86_64                                                                                                                                                                        1/1

Installed:
  libharu.x86_64 0:2.2.1-5.1

Complete!

```

### 再度インストール

```shell-session
# yum install --enablerepo=remi-php56 php-pecl-haru.x86_64
Loaded plugins: fastestmirror, presto, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * remi-php56: fr2.rpmfind.net
51 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-haru.x86_64 0:1.0.4-4.el6.remi.5.6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================
 Package                                            Arch                                        Version                                                      Repository                                       Size
===================================================================================================================================================================================================================
Installing:
 php-pecl-haru                                      x86_64                                      1.0.4-4.el6.remi.5.6                                         remi-php56                                       48 k

Transaction Summary
===================================================================================================================================================================================================================
Install       1 Package(s)

Total download size: 48 k
Installed size: 246 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 48 k
php-pecl-haru-1.0.4-4.el6.remi.5.6.x86_64.rpm                                                                                                                                               |  48 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-pecl-haru-1.0.4-4.el6.remi.5.6.x86_64                                                                                                                                                       1/1
  Verifying  : php-pecl-haru-1.0.4-4.el6.remi.5.6.x86_64                                                                                                                                                       1/1

Installed:
  php-pecl-haru.x86_64 0:1.0.4-4.el6.remi.5.6

Complete!

```

でけた。

### php拡張

```ini:/etc/php.d/40-haru.ini
extension=haru.so
```

### 実行テスト

```shell-session
# php -i | grep haru
/etc/php.d/40-haru.ini,
haru
libharu version => 2.2.1
```