configure: error: png.h not found.


インストールとファイル確認

png.h は、libpng に含まれているらしい。

[root@falcon21 ~]# yum search libpng
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* remi: mirror.bebout.net
====================================== N/S matched: libpng =======================================
libpng12.i686 : Old version of libpng, needed to run old binaries
libpng12.x86_64 : Old version of libpng, needed to run old binaries
libpng12-devel.i686 : Development files for libpng 1.2
libpng12-devel.x86_64 : Development files for libpng 1.2
libpng.i686 : A library of functions for manipulating PNG image format files
libpng.x86_64 : A library of functions for manipulating PNG image format files
libpng-devel.i686 : Development tools for programs to manipulate PNG image format files
libpng-devel.x86_64 : Development tools for programs to manipulate PNG image format files
libpng-static.i686 : Static PNG image format file library
libpng-static.x86_64 : Static PNG image format file library

Name and summary matches only, use "search all" for everything.

[root@falcon21 ~]# yum -y install libpng.x86_64
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* remi: mirror.bebout.net
milter-manager_repos/x86_64/signature | 836 B 00:00:00
milter-manager_repos/x86_64/signature | 1.0 kB 00:00:00 !!!
milter-manager_repos-source/signature | 836 B 00:00:00
milter-manager_repos-source/signature | 1.0 kB 00:00:00 !!!
パッケージ 2:libpng-1.5.13-7.el7_2.x86_64 はインストール済みか最新バージョンです
何もしません


[root@falcon21 ~]# yum -y install libpng-devel.x86_64
インストール:
libpng-devel.x86_64 2:1.5.13-7.el7_2


完了しました!


[root@falcon21 ~]# yum -y install libpng-static.x86_64
Running transaction
インストール中 : 2:libpng-static-1.5.13-7.el7_2.x86_64 1/1
検証中 : 2:libpng-static-1.5.13-7.el7_2.x86_64 1/1

インストール:
libpng-static.x86_64 2:1.5.13-7.el7_2


完了しました!

パッケージの中身を確認
[root@falcon21 ~]# rpm -ql libpng.x86_64
/usr/lib64/libpng15.so.15
/usr/lib64/libpng15.so.15.13.0
/usr/share/doc/libpng-1.5.13
/usr/share/doc/libpng-1.5.13/CHANGES
/usr/share/doc/libpng-1.5.13/LICENSE
/usr/share/doc/libpng-1.5.13/README
/usr/share/doc/libpng-1.5.13/TODO
/usr/share/doc/libpng-1.5.13/example.c
/usr/share/doc/libpng-1.5.13/libpng-manual.txt
/usr/share/man/man5/png.5.gz

[root@falcon21 ~]# rpm -ql libpng-devel.x86_64
/usr/bin/libpng-config
/usr/bin/libpng15-config
/usr/include/libpng15
/usr/include/libpng15/png.h
/usr/include/libpng15/pngconf.h
/usr/include/libpng15/pnglibconf.h
/usr/include/png.h
/usr/include/pngconf.h
/usr/include/pnglibconf.h
/usr/lib64/libpng.so
/usr/lib64/libpng15.so
/usr/lib64/pkgconfig/libpng.pc
/usr/lib64/pkgconfig/libpng15.pc
/usr/share/man/man3/libpng.3.gz
/usr/share/man/man3/libpngpf.3.gz

[root@falcon21 ~]# rpm -ql libpng-static.x86_64
/usr/lib64/libpng.a
/usr/lib64/libpng15.a

 

/usr/* のディレクトリーから、png.h を検索

[root@falcon21 ~]# find /usr/* -name png.h
/usr/include/libpng15/png.h
/usr/include/png.h

***************************************************************************************

投票数:4 平均点:10.00

 
Back to Top