GD with FreeType 2.x

Lost ssh access using process

Hi,

I followed all steps trying to install Freetype support
Everything went ok on following steps :
cd /usr/local/directadmin/customapache/
wget http://ovh.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.9.tar.gz
tar zxf freetype-2.1.9.tar.gz
cd freetype-2.1.9
./configure
make
make install

i managed also to
./configure --with-png=/usr/local --with-jpeg=/usr/local --with-freetype=/usr/local

but when doing :
./build php

i went on errors, on things i have not had time to note.
Just after, i lost SSH root connection to the machine.
I have no more access to SSH neither to directadmin on port 22.

What's going on out there ????

thks for urgent answer

Machine is FC3 - Diradmin latest - exim 4.51 - clamAV 0.851 - awstats
Those are the soul addons brought to the machine.
 
Last edited:
Your SSH problems would have nothing to do with your customapache build. SSH isn't modified at all by DA except to modify the /etc/ssh/sshd_config file when you create a user that has SSH privileges.

Big Wil
 
Indeed

Indeed, and hadn't time to post answer, but sshd and named bugged for some unknown reason (apparently a known problem)

I rebooted the machine and there it goes...

Yet GD and Freetype hasn't been updated, i'll have to see that indeed.

Thks a lot
 
Update problem

ok retried today to update GD with Freetype 2.

Refollowed build php steps.
When prompted regarding GD answered yes.
I then let the machine work alone on the build and come to the same error i had last time :

here is copy of the problem :
-o libphp4.la
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp4.la] Erreur 1

*** The make has failed, do you want to try to make again? (y,n): n


newbie on this, can anyone explain me the problem encountered, and eventuelly a solution or an idea to explore in order to solve the problem ???

EDITED : I found solution to my problem though i haven't understood yet the reason, and still is eager to understand...
I have simply followed an advice in one of the post of the thread to ".build clean" and wahoooo it worked...


Thks a lot.

Tdldp
 
Last edited:
Hello


I just followed the how to, it went fine.

I also did a small modifiacation :
freetype is installed under /usr/local/lib
the howto states to modify the freetype-dir to /usr/local
so in my setup, I modifyed the build script to use :
--with-freetype=/usr/local/lib

maybe this can help avoiding some trouble.
 
I give up!
It will not work!

www.ccc5.nl/php.php

I have tried everythink, I Am Using Fedora Core 3, latets DirectAdmin, GD 2.0.28, php 4.3.11, apache 1.33.

its seems that nothing work for me!

I have installed freetype
change line in ./build ( i have tried also ...freetype=/usr/local/lib)
build clean
build php
restart htppd

every time after I run build php I most restart Directadmin.
 
freetype setup

I've had, like most of you, some trouble with enabling freetype in gd.
But finally after some time found the solution.

first install freetype2.**

Code:
cd /usr/local/directadmin/customapache/
wget [url]http://ovh.dl.sourceforge.net/sourceforge/freetype/freetype-2.1.9.tar.gz[/url]
tar zxf freetype-2.1.9.tar.gz
cd freetype-2.1.9
./configure
make
make install

next part (2)
open /usr/local/directadmin/customapache/configure.php
and make sure the following lines are in there, if not add them.

Code:
                --with-gd \
	--with-gd-dir=/usr/local/lib \
	--with-freetype \
	--with-freetype-dir=/usr/local/lib \

next part (3)

in the /usr/local/directadmin/customapache/ directory
type in:

Code:
./build clean
./build gd
./build php

with these line you recompile gd & php ( with the ./build php, be sure to type Y when prompted for installing GD )

finally restart apache with.
Code:
service httpd restart


After this freetype worked finally worked for me.
 
Last edited:
Hey.

You might need to modify the "build" script to make GD compile with FreeType.

So AFTER you've installed FreeType, and BEFORE you run the ./build commands for gd/php..you must edit the following line:


./configure --with-png=/usr/local --with-jpeg=/usr/local --without-freetype --without-x

and change the "without" to "with":

./configure --with-png=/usr/local --with-jpeg=/usr/local --with-freetype --without-x

in the doGD() part of the "build" script.

gl

.m
 
A little trouble...but figured it out

I had a little trouble. I followed all the instructions provided here which got me really close. GD compiled but when the "build" script got to compiling PHP, I got the following error:

Code:
grep: /usr/lib/libfreetype.la: No such file or directory
/bin/sed: can't read /usr/lib/libfreetype.la: No such file or directory
libtool: link: `/usr/lib/libfreetype.la' is not a valid libtool archive
make: *** [libphp4.la] Error 1

I don't know why it was complaining that it couldn't find libfreetype.la in /usr/lib since I explicitly entered "/usr/local/lib" in the configure.php and the build script. PHP even seemed to know where it was during the configure stage:

Code:
checking for FreeType 2... /usr/local/lib

Anyway, I simply made a symbolic link in /usr/lib:

Code:
ln -s /usr/local/lib/libfreetype.la libfreetype.la

That generated a warning about libfreetype.la being moved but it did compile and it seems to work.

-dougl
 
not sure if it would have worked but you might have needed to tell the php configure script to look in /usr/local/lib using

-L/usr/local/lib

on the command line. It should work, or would if you were running the configure command manually. I am not sure if the build script passes those types of variables in.
 
PHP hangs

I can't get it working. I'm building GD and freetype successfully. Php building also goed by without errors. When PHP is done building, phpinfo tells me that Freetype support is now enabled. However from this point PHP is broken at front-end. When I try to call whatever .php script from the browser, I get a timeout.

Any clue what to do?
 
Have you looked at the httpd error log for the domain to see what's going on?

Jeff
 
error logs

I just checked the error and access log for the domain. There are no entries for the page requests at all.

?
 
Hi,
I have used the method described in the top of this discussion to have freetype.
The problem is solved but I have just a warning :

Copying php.ini..
/usr/local/lib/php.ini already exists, skipping.
Enabling register_globals...
PHP Installed.
[root@serv1 customapache]# service httpd restart
Arrêt de httpd : [ OK ]
Démarrage de httpd :PHP Warning: Unknown(): Unable to load dynamic library './p
hp_gd2.dll' - ./php_gd2.dll: cannot open shared object file: No such file or dir
ectory in Unknown on line 0
[ OK ]

I'm on DA version 1.26.6, FC 3 and Freetype freetype-2.1.10
 
this worked for me

combinig the tips from several previous posts, this is what I've done and has worked for me :

# cd /usr/local/directadmin/customapache/
# wget http://download.savannah.gnu.org/releases/freetype/freetype-2.2.1.tar.gz
# tar zxf freetype-2.2.1.tar.gz
# cd freetype-2.2.1
# ./configure
# make
# make install
# cd ..
# cp build build.orig
# vi build

In function doGD replace:
./configure --with-png=/usr/local --with-jpeg=/usr/local --without-freetype --without-x
by:
./configure --with-png=/usr/local --with-jpeg=/usr/local --without-x --with-freetype=/usr/local/lib

# cp configure.php configure.php.orig
# vi configure.php

replace:
--with-gd \
--with-gd-dir=/usr/local \
by:
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-freetype \
--with-freetype-dir=/usr/local/lib \

# ./build clean
# nice ./build gd
# yes | nice ./build php
# service httpd restart
 
I have installed freetype as the howto's describe.
All goes well without any errors, but when i look in my phpinfo then freetype doenst show up.
I know this question has here before but i want to mention that i am running apache 2 and php 5.1.5.
With apache 1.3 there were never problems and it did very well but now with apache 2 it wont run.
I tried every solution in the forum and nothing works.

Here some info about my system:
OS: centOS 4.3
Apache 2
php 5.1.5
freetype 2.1.9

Hopefully someone can give me a hint in the right direction or has the answer to this problem.

thnx in advance
 
Back
Top