Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15990 closed defect (invalid)

php5-5.2.6 Configure error for fontconfig-2.6.0 with freetype-2.3.7

Reported by: reine.kurth@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: php5 fontconfig freetype Cc: jyrkiwahlstedt
Port:

Description

sudo port install php5 +apache2 +mysql5 +postgresql83 +sqlite

on Mac OS 10.5.4
with apache2 and mysql5 already successfully installed from MacPorts.

During the installation of dependencies, namely fontconfig, the following error occurs:

checking for freetype-config... no
configure: error: You must have freetype installed; see http://www.freetype.org/

But freetype is installed and freetype-config is present in /opt/local/bin.

Attachments (1)

config.log (42.8 KB) - added by reine.kurth@… 16 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jwa@… added
Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Can you please attach php's config.log?

Changed 16 years ago by reine.kurth@…

Attachment: config.log added

comment:3 in reply to:  2 Changed 16 years ago by reine.kurth@…

Replying to ryandesign@macports.org:

Can you please attach php's config.log?

Well I cannot find a config.log file for php itself (ran find config.log under /opt/local) but here is the fontconfig one.

And... my mystake, I had messed with the macports.conf file after another error I had encountered earlier. Seemed also to be a path problem so I had added the line

binpath				${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin:${x11prefix}/bin

(default value taken from the MacPorts Guide - but apparently this variable does not exist anymore!) This had seemed to work but maybe it was just a coincidence? Anyway now that I have removed it fontconfig installed without error!

comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

You need to expand variables in the binpath. So you need to write "binpath /opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11/bin", not "binpath ${prefix}/bin:${prefix}/sbin:/bin:/sbin:/usr/bin:/usr/sbin:${x11prefix}/bin".

Because you had not expanded the variables, /opt/local/bin, where freetype-config lives, was not in the path. That is why fontconfig could not find it.

Changing the binpath variable is not recommended. The best idea is to remove it from the macports.conf.

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.