Php Configure Error Freetype.h Not Found
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more configure: error: freetype.h not found ubuntu about Stack Overflow the company Business Learn more about hiring developers or posting ads configure: error: your t1lib distribution is not installed correctly. please reinstall it. with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow configure: error: utf8_mime2text() has new signature, but u8t_canonical is missing is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Configure php 5.3 fail with error : freetype.h not found (but libfreetype6-dev configure error freetype config not found centos is installed) up vote 5 down vote favorite 2 I have configured php with the following command: ./configure \ --prefix=/opt/phpfcgi-5.3.28 \ --with-pdo-pgsql \ --with-zlib-dir \ --with-freetype-dir=/usr/include/freetype2 \ --with-libpng-dir=/usr/include/libpng \ --with-xpm-dir=/usr \ --enable-mbstring \ls \ --with-libxml-dir=/usr \ --enable-soap \ --enable-calendar \ --with-curl \ --with-mcrypt \ --with-zlib \ --with-gd \ --with-pgsql \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-zlib \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-pcntl \ --enable-mbregex \ --with-mhash
Freetype-config Not Found Ubuntu
\ --enable-zip \ --with-pcre-regex \ --with-mysql \ --with-mysql-dir=/etc/mysql/ \ --with-pdo-mysql \ --with-mysqli \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-gd-native-ttf \ --with-openssl \ --with-libdir=/lib/x86_64-linux-gnu \ --enable-ftp \ --with-kerberos \ --with-gettext \ --enable-cgi \ --with-fpm-user=www-data \ --with-fpm-group=www-data But if I try to compile, I got the Error-Message: configure: error: freetype.h not found php compiler-errors share|improve this question asked Oct 13 '14 at 14:52 suther 1,68711325 also see bug reports bugs.php.net/66259 and bugs.php.net/64405 –Cybot Sep 22 '15 at 13:08 add a comment| 1 Answer 1 active oldest votes up vote 26 down vote If you got that message, even if you installed libfreetype6-dev, then try this: mkdir /usr/include/freetype2/freetype ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h After this, do .configure again. Additional hint: For some Systems you have to use /usr/local/include.... share|improve this answer edited Jun 1 '15 at 11:40 answered Oct 13 '14 at 14:52 suther 1,68711325 This worked for me when compiling PHP 5.1 on Debian Jessie. Mission impossible for a legacy project. Thanks. –Ain Tohvri Dec 3 '15 at 23:47 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as
23:28 UTC Modified: 2013-12-11 21:07 UTC From: pgnet dot dev+phpbugs at gmail dot com Assigned:
Xpm.h Not Found
Status: Duplicate Package: GD related PHP Version: 5.5Git-2013-12-10 OS: linux/64 configure: error: unable to locate gmp.h centos Private report: No CVE-ID: View Add Comment Developer Edit [2013-12-10 23:28 UTC] pgnet dot dev+phpbugs configure: error: mcrypt.h not found. please reinstall libmcrypt. at gmail dot com Description: ------------ building a new pull of php 5.5, cd /usr/local/src/php-src git log | head commit 41cd53329871cb99799cd9a8f76151312be2e960 Merge: bc8f776 b1b23ab Author: http://stackoverflow.com/questions/26342868/configure-php-5-3-fail-with-error-freetype-h-not-found-but-libfreetype6-dev-i Stanislav Malyshev
better with PHP 5.2. Even though D6 core is compatible with PHP 5.3 for quite some time now, a lot of contributes http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204 modules still get nasty hiccup when asked to run on the newer version. Therefore developing for both D7 and D6 at the same time becomes much less https://discussions.apple.com/thread/1004353?start=0&tstart=0 painful when running both versions of PHP in parallel. One way of doing it is using mod_php5 Apache module to serve PHP 5.3 applications, while running PHP 5.2 not found applications using fastcgi module. Under Ubuntu 12.04 this can be achieved by installing PHP 5.3 from the repositories and manually compiling and installing PHP 5.2 afterwards. Installing PHP 5.3 from repositories is fairly easy process, which you most probably already have under your belt, so let's just say that it looks more or less like freetype.h not found this: sudo apt-get install php5 php5-common php5-cli php5-dev php5-mysql phpmyadmin php5-pgsql phppgadmin php5-gd php5-mcrypt php5-curl php-pear libapache2-mod-php5 php5-xdebug php5-codesniffer What is much more interesting though, and what this post will focus on, is how to add PHP 5.2 to the whole picture and make both those versions work nicely together. Please note that this tutorial is for Apache's name-based virtual hosts, and essentially leaves PHP 5.3 enabled globally while allowing to use PHP 5.2 on specific, selected virtual hosts only. Download PHP sources Let's then start with downloading PHP 5.2 sources from Unsupported Historical Releases list. I have originally started with version 5.2.10 (as it is the same version that we have on our production servers), but then was stopped short by OpenSSL error during configuration stage: /usr/include/openssl/conf.h:132:7: note: expected 'struct lhash_st_CONF_VALUE *' but argument is of type 'int *'
make: *** [ext/openssl/openssl.lo] Error 1 to which I was not able to find any good fix (relatively easy to apply anyway), so
enter a title. You can not post a blank message. Please type your message and try again. This discussion is locked John Keates Level 2 (445 points) Q: Building PHP errors on me about freetype.h Hi,I'm building php 5.2.3 from source with the following config string:./configure \--prefix=/usr/local/php52 \--with-apxs2=/usr/local/apache2/bin/apxs \--enable-id3 \--with-mcrypt=/sw \--with-mhash=/sw \--with-curl=/usr/bin/curl \--with-iconv=/sw \--with-openssl=/sw \--with-mysqli=/usr/local/mysql/bin/mysql_config \--with-pdflib=/sw/bin \--with-zlib=/usr \--with-zlib-dir=/usr \--with-imap-ssl=/usr \--enable-calendar \--with-mime-magic=/usr/local/apache2/conf/magic \--with-iodbc=/usr \--with-bz2=/usr/bin/bzip2 \--with-curlwrappers \--with-xmlrpc \--with-iconv-dir=/usr \--enable-exif \--enable-wddx \--enable-soap \--with-ldap \--enable-ftp \--enable-sockets \--enable-mbstring \--enable-openbase_module \--with-expat=/sw \--enable-trans-sid \--with-ming=/sw \--enable-yp \--with-libxml-dir=/sw \--with-dom=/sw \--with-dom-xslt=/sw \--with-dom-exslt=/sw \--with-xmlreader \--with-xsl=/sw \--with-libexpat-dir=/sw \--with-kerberos \--with-ttf=/sw \--with-gd \--with-jpeg-dir=/sw \--with-png-dir=/sw \--with-mysql=/usr/local/mysql/ \--with-gettext=/sw \--with-freetype-dir=/usr/X11R6/include/ \--with-xpm-dir=/usr/X11R6/include/I installed all dev and standard versions of everything that is needed to provide the files to make this work. The problem is that it fails to find freetype.h which I can locate at the include directories.The extensions configuration part output by configure:Configuring extensionschecking whether to enable LIBXML support... yeschecking libxml2 install dir... /swchecking for xml2-config path... /sw/bin/xml2-configchecking whether libxml build works... yeschecking for OpenSSL support... yeschecking for Kerberos support... yeschecking for krb5-config... /usr/bin/krb5-configchecking for DSAget_defaultmethod in -lssl... nochecking for pkg-config... /sw/bin/pkg-configchecking for OpenSSL version... >= 0.9.6checking for CRYPTO_free in -lcrypto... yeschecking for SSLCTX_set_sslversion in -lssl... yeschecking for PCRE support... yeschecking for ZLIB support... yeschecking if the location of ZLIB install directory is defined... /usrchecking for gzgets in -lz... yeschecking whether to enable bc style precision math functions