Has anyone seen this error before ? I don't know what's happening when I tried to install the newest version of PHP (php-4.0.1pl2).

I configure it with prefix, with-mysql, with-apache, with-mcrypt, and lastly enable-track-vars. And here's the error I've got.

gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/libmcrypt-2.4.4/lib -L/usr/local/libmcrypt-2.4.4/lib -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c -lmysqlclient -lmcrypt -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5
/usr/bin/ld: cannot open -lttf: No such file or directory
collect2: ld returned 1 exit status

Thanks for helping!

    Hi,

    this means that the linker has problems finding the file libttf.so or libttf.a
    Did you configure with '--with-ttf=<dir>' ?
    Where's your ttf lib located and what are the filenames (libttf....) ?

    T.

      9 months later

      I get the same error when I try to compile my apache. Have you had any luck fixing your setup. I have -L/usr/lib which is where my ttf libs live. Any other ideas? Bellow is the ./Config time error:

      ======== Error Output for sanity check ========
      cd ..; gcc -DLINUX=22 -I/usr/local/httpd/apache/php -I/usr/local/httpd/apache/php/main -I/usr/local/httpd/apache/php/main -I/usr/local/httpd/apache/php/Zend -I/usr/local/httpd/apache/php/Zend -I/usr/local/httpd/apache/php/TSRM -I/usr/local/httpd/apache/php/TSRM -I/usr/local/httpd/apache/php -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED -DDYNAMIC_MODULE_LIMIT=0 -O2 -static -o helpers/dummy helpers/dummy.c -L/usr/lib -Wl,-rpath,/usr/lib/gcc-lib/i486-suse-linux/2.95.2 -rdynamic -L/usr/lib/gcc-lib/i486-suse-linux/2.95.2 -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -ldl -lttf -lz -lpng -lgd -lgdbm -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lgcc -lm -lcrypt
      /usr/i486-suse-linux/bin/ld: cannot find -lttf
      collect2: ld returned 1 exit status
      make: *** [dummy] Error 1
      ============= End of Error Report =============

      Thanks
      Tamer Ziady

        Write a Reply...