cannot install FreeType 2

extor

Verified User
Joined
Jul 15, 2004
Messages
72
Location
The Netherlands
cannot install FreeType 2 (solved)

Hello,

I'm hoping that someone could help me. Some of my clients requested to have FreeType2 available for use.

I have searched this forum and didn't found a (good) howto.

What I have done is the following:

- cd /usr/local/directadmin/customapache/
- (downloaded freetype-2.1.9.tar.gz)
- tar zxf freetype-2.1.9.tar.gz
- cd freetype-2.1.9
- ./configure
- make
- make install

^^ above went well and installed the lib's into /usr/local/lib

Then I modified the build script located in /usr/local/directadmin/customapache/ with the next code:

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

by

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


Then I did:
- ./build clean
- ./build php
- service httpd restart

And as you can see at http://thijma.nl/phpinfo.php FreeType* still isn't listed and cannot beeing used. I'm out of ideas so I hope someone is willing to help me to get FreeType2 installed correctly :confused:.

I will be very thankful!

Greetings,

Thijs Joosten
The Netherlands
 
Last edited:
Hello,

Make sure you recompile gd before recompiling php, as freetype needs to be in both gd, and php to work.

John
 
I recompiled gd before compiling php. it still doesn't showup in phpinfo. Any suggestions?

PS: In fact, I tried all the other suggestions in various threads like doing ./build clean before ./build php.
 
Anyone can suggest me what could go wrong. I have downloaded freetype in /usr/local/directadmin/customapache/ then installed it. After that I recompiled gd and php. It is still not showing up? Can anyone offer me suggestions to fix this issue. Thanks.
 
extor said:
^^ above went well and installed the lib's into /usr/local/lib

Then I modified the build script located in /usr/local/directadmin/customapache/ with the next code:

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

by

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


Maybe I'm missing something but if FreeType was installed in /usr/local/lib why do you specify --with-freetype=/usr/local and not --with-freetype=/usr/local/lib ?

Regards,
Onno Vrijburg
 
I had trouble getting freetype to work, you need to do something like this.

Compile GD with freetype switch on configure
Recompile PHP and specify the local GD installation (dont use built in php GD)
Restart PHP

When specifying use /usr/local not /usr/local/lib.

When I did it the GD compiled but php kept bombing out so I ended up using the FreeBSD GD port which includes freetype by default and then compiled php with the local GD and it works.
 
I don't know how I did it but I finally had FreeType2 working on the server (www.thijma.nl/phpinfo.php). :confused:

Now the 2nd problem showed up: a second server.

And again I don't get FreeType2 working on it as been listed on the phpinfo screen.

Does anybody have installed FreeType2 and get it listed/worked and still knows how he did it? Please state here the steps I must follow.

Many thanks..
 
I have spent many time to solve this problem and I finally managed to get FreeType again installed on a other server.

The solution:

Before you compile gd & php again make sure you open configure.php and make sure the next lines are in it:

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

If not then you must do it manually, the freetype-dir is not listed standard.

I hope somebody helps it now to install FreeType "easy" :).
 
well now I get this error:

Thank you for using PHP.

/usr/local/directadmin/customapache/configure.php: line 30: --with-freetype-dir=/usr/local/lib: No such file or directory

*** There was an error while trying to configure php. Check the configure.php file
 
snaaps said:
well now I get this error:

Thank you for using PHP.

/usr/local/directadmin/customapache/configure.php: line 30: --with-freetype-dir=/usr/local/lib: No such file or directory

*** There was an error while trying to configure php. Check the configure.php file

You have a \ after the dir?

--> --with-freetype-dir=/usr/local/lib \
 
yes I have the slash.

I have tried two times to install freestyle, the first time directadmin and shell are down!

the second time only directadmin is down!
 
That's very odd..

What OS are you running?

The servers OS wich I have installed FreeType on are: Fedora Core 1 & Core 3.
 
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.
 
I have also tried usr/local but no results.
(./build)


I read in a other post that its not nessesary to add the line:
--with-freetype-dir=/usr/local/lib \ in the configure.php file.
 
snaaps said:
I read in a other post that its not nessesary to add the line:
--with-freetype-dir=/usr/local/lib \ in the configure.php file. [/B]

That's correct!

But when I had added that line to the configure.php file and compile everything again FreeType was listed on phpinfo();

Very strange all this..
 
--with-gd=/usr/local \
--with-freetype-dir=/usr/local \

I ommited with-gd-dir but need the with-free-type-dir.
 
Help Please :confused: :confused: :confused: :confused:

I am to this point of the install :
./configure --with-png=/usr/local --with-jpeg=/usr/local --without-freetype

by

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

when i type either code i get:
-bash: ./configure: No such file or directory

Am I doing it wrong???

I am trying to install freetype-2.2.1

should i skip this step and go to:
- ./build clean
- ./build php
- service httpd restart
 
you dont do ./configure in customapache dir since there is no configure script there it is handled by the build script. Edit configure.php or configure.php_ap2 if using apache2.

guys I suggest you get a admin to handle this for you if you get stuck at basics.
 
Back
Top