app-text/ghostscript-7.07.1-r7 emerge fails giving following error message. checking for pkg-config... no *** The pkg-config script could not be found. Make sure it is *** in your path, or set the PKG_CONFIG environment variable *** to the full path to pkg-config. *** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config. checking for freetype-config... /usr/bin/freetype-config *** The pkg-config script could not be found. Make sure it is *** in your path, or set the PKG_CONFIG environment variable *** to the full path to pkg-config. *** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config. configure: error: Library requirements (fontconfig) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix sopkg-config can find them. !!! ERROR: app-text/ghostscript-7.07.1-r7 failed. !!! Function econf, Line 449, Exitcode 1 !!! econf failed Reproducible: Always Steps to Reproduce: 1.emerge ghostscript Actual Results: Expected Results:
do you have pkgconfig installed? try to re/emerge pkgconfig
I didn't have pkgconfig. After installing pkgconfig ghostscript emerged without problems. Should it be added to dependences?
Same problem here. pkgconfig should definitively be added to ghostscript dependences.
I ran into the same problem. Installing pkgconfig before ghostscript solved it.
FROM: ghostscript-7.07.1-r7.ebuild ----------------------------------------- RDEPEND="virtual/libc >=media-libs/jpeg-6b >=media-libs/libpng-1.2.1 >=sys-libs/zlib-1.1.4 X? ( virtual/x11 ) cjk? ( media-fonts/arphicfonts media-fonts/kochi-substitute media-fonts/baekmuk-fonts ) cups? ( net-print/cups ) !virtual/ghostscript media-libs/fontconfig media-fonts/gnu-gs-fonts-std" DEPEND="${RDEPEND} truetype? ( dev-util/pkgconfig )" -------------------------------------------- I have USE=" ... -truetype ...". So I guess that pkgconfig is needed in all cases not just in case of truetype. ( I think that ebuild is saying that pkgconfig is needed only in the case of USE="... truetype ...")
So I saw this too: imperium root # emerge --info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(TM) XP 1700+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.ccccom.com http://mymirror.asiaosc.org/gentoo/ http://adelie.polymtl.ca/ http://mirror.hamakor.org.il/pub/mirrors/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="alsa apache2 audiofile bash-completion bcmath bzlib cdr crypt cups curl dvd dvdr esd ftp gd imap mad mime mmap mmx oggvorbis openal pam pcntl pcre perl php posix postgres quicktime readline samba snmp soap sockets spell spl ssl usb x86 xml xml2 zlib"
So you probablly already knew but heres the fix (should I have sent a patch file (what is that diff -?) anyways). I hacked up the file '/usr/portage/app-text/ghostscript/ghostscript-7.07.1-r7.ebuild' and added this to the RDEPEND list (line 20) >=dev-util/pkgconfig-0.15.0 # Then I said... imperium root # emerge -pv ghostscript These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] dev-util/pkgconfig-0.15.0 0 kB [ebuild N ] app-text/ghostscript-7.07.1-r7 -X -cjk +cups -debug -emacs -truetype 0 kB Total size of downloads: 0 kB # I already had these downloaded... # Then I said... imperium root # emerge ghostscript .... # Then I printed a sample page, and a pdf, and from my Windows machine, wow
added