dependencies failed to build: apache2 (Log is 312k, so delete after reading)

Bill Hernandez ms at mac-specialist.com
Tue Apr 15 15:24:05 PDT 2008


Ryan,

I decided that rather than install a bunch of items, I would let  
MacPorts decide what dependencies I need for my basic install. So I  
set 'install_all' to false, and called the shell script...

HERE'S WHAT I USED IN THE PAST :

#!/bin/bash
# script name : bh_port_install_part_01

# +---------+---------+---------+---------+---------+--------- 
+---------+---------+
#	MACPORTS INSTALLATION ORDER
# THIS IS HOW I INSTALLED THEM IN THE PAST install_all=true
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+
# sudo port -d sync
# sudo port -d selfupdate
# bh_port_variants apache2

sudo echo

install_all=false

if [ $install_all == true ]; then
	sudo port -v install zlib
	sudo port -v install openssl
	sudo port -v install gd2
	sudo port -v install libxml2
	sudo port -v install perl5.8
	sudo port -v install rpl
	sudo port -v install curl
	sudo port -v install apr
	sudo port -v install apr-util
	sudo port -v install bison
	sudo port -v install cyrus-sasl2
	sudo port -v install libmcrypt
	sudo port -v install libxslt
	sudo port -v install mhash
	sudo port -v install openldap
	sudo port -v install pcre
	sudo port -v install tiff
	
	sudo port -v install postgresql83-server
	sudo port -v install postgresql83-doc
	sudo port -v install postgresql83 +darwin_9
	sudo port -v install mysql5 +darwin_9 +server
	sudo port -v install php5 +darwin_9 +macosx +apache2 +fastcgi +tidy  
+mysql5 +postgresql +sqlite +ipc +pcntl +pear
else
	# This executes when install_all=false
	sudo port -v install php5 +apache2 +fastcgi +tidy +mysql5 +postgresql  
+sqlite +ipc +pcntl +pear
fi


# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# TO RE-INSTALL APACHE DO THE FOLLOWING
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# open /opt/local
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# SHUTDOWN THE SERVERS
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.slapd.plist
# sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.postgresql83-server.plist
# sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.mysql5.plist
# sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.apache2.plist
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# UNINSTALL PHP, MYSQL AND APACHE2
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# sudo port -v uninstall php5 +darwin_9 +macosx +apache2 +fastcgi  
+tidy +mysql5 +postgresql +sqlite +ipc +pcntl +pear
# sudo port clean --all php5 +darwin_9 +macosx +apache2 +fastcgi +tidy  
+mysql5 +postgresql +sqlite +ipc +pcntl +pear

# sudo port -v uninstall apache2
# sudo port clean --all apache2

# sudo port -v uninstall mysql5
# sudo port clean --all mysql5

# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# INSTALL PHP, MYSQL, PGSQL AND APACHE2
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# sudo port -v install php5 +darwin_9 +macosx +apache2 +fastcgi +tidy  
+mysql5 +postgresql +sqlite +ipc +pcntl +pear
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# INITIALIZE THE DATABASES, httpd.conf, my.cnf, pg_hba.cong, php.ini,  
etc
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
<snip>
...
</snip>
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# START THE SERVERS
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.slapd.plist
# sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.postgresql83-server.plist
# sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.mysql5.plist
# sudo launchctl load -w /Library/LaunchDaemons/ 
org.macports.apache2.plist
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+---------+---------+
# END OF SHELL SCRIPT

# +---------+---------+---------+---------+---------+--------- 
+---------+---------+
#	MACPORTS INSTALLATION ORDER
# THIS IS HOW I TRIED TO DO THIS TIME
# +---------+---------+---------+---------+---------+--------- 
+---------+---------+

Basically I need :
( 1 ) apache2 with ssl support
( 2 ) mysql5 +server
( 3 ) postgresql83 +server
( 4 ) php5 with gd2 (jpg, png support)

# shutdown the servers
sudo launchctl unload -w /Library/LaunchDaemons/org.macports.slapd.plist
sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.postgresql83-server.plist
sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.mysql5.plist
sudo launchctl unload -w /Library/LaunchDaemons/ 
org.macports.apache2.plist

# restart the computer and verify the servers are no longer running

shell> $ sudo rm -R /opt
GUI> Install MacPorts-1.6.0.pkg
shell> $ sudo port -d selfupdate

shell> $ sudo echo
shell> $ sudo port -v install php5 +apache2 +fastcgi +tidy +mysql5  
+postgresql +sqlite +ipc +pcntl +pear

LOOKS SIMPLE, RIGHT ?

Search for 'Error' below

configure: error: No awk program found

Error: Target org.macports.configure returned: configure failure:  
shell command " cd "/opt/local/var/macports/build/ 
_opt_local_var_macports_sources_rsync 
.macports.org_release_ports_devel_ncursesw/work/ncurses-5.6" && ./ 
configure --prefix=/opt/local --enable-widec --disable-rpath --with- 
shared --without-debug --without-ada --enable-safe-sprintf --enable- 
sigwinch --mandir=/opt/local/share/man " returned error 1

Warning: the following items did not execute (for ncursesw):  
org.macports.activate org.macports.configure org.macports.build  
org.macports.destroot org.macports.install

Error: The following dependencies failed to build: apache2 apr-util  
sqlite3 gawk gettext ncurses ncursesw gmake readline openssl zlib pcre  
bzip2 curl pkgconfig freetype jpeg libmcrypt libpng libxml2 libxslt  
mhash mysql5 tidy libtool tiff
Error: Status 1 encountered during processing.

shell> $

Here's the actual log in case it helps...

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ports_install_problem_2008_04_15.txt
Url: http://lists.macosforge.org/pipermail/macports-users/attachments/20080415/4ed9f571/attachment.txt 
-------------- next part --------------



Any ideas ?

Bill Hernandez
Plano, Texas





More information about the macports-users mailing list