sudo port install apache2
Charlse Darwin
macports.users at gmail.com
Sun Dec 16 08:59:48 PST 2007
Reinstalled Xcode, then installed
http://www.opensource.apple.com/darwinsource/tarballs/other/
apache-729.tar.gz
Here is the situation:
$ sudo apachectl start
dyld: Library not loaded: /usr/local/lib/libexpat.0.1.0.dylib
Referenced from: /usr/sbin/httpd
Reason: image not found
/usr/sbin/apachectl: line 187: 3046 Trace/BPT trap $HTTPD
/usr/sbin/apachectl start: httpd could not be started
$ which apachectl
/usr/sbin/apachectl
#However…
$ sudo /usr/local/apache2/bin/apachectl start
$ sudo /usr/local/apache2/bin/httpd -V
Server version: Apache/2.2.6 (Unix)
Server built: Dec 16 2007 10:04:39
Server's Module Magic Number: 20051115:5
Server loaded: APR 1.2.12, APR-Util 1.2.12
Compiled using: APR 1.2.12, APR-Util 1.2.12
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
#It works! so now lets hand it over to macports
$ sudo port -c uninstall apache
---> Deactivating apache2 2.2.6_0
---> Uninstalling apache2 2.2.6_0
$ sudo port clean --dist --archive apache2
---> Cleaning apache2
$ sudo port sync
$ sudo port install apache2
---> Fetching apache2
---> Attempting to fetch httpd-2.2.6.tar.bz2 from http://
www.apache.org/dist/httpd
---> Verifying checksum(s) for apache2
---> Extracting apache2
---> Applying patches to apache2
---> Configuring apache2
---> Building apache2 with target all
---> Staging apache2 into destroot
---> Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting apache2 with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/
org.macports.apache2.plist
###########################################################
Warning: apache2 requests to install files outside the common
directory structure!
---> Installing apache2 2.2.6_0
---> Activating apache2 2.2.6_0
---> Cleaning apache2
$ sudo apachectl start
dyld: Library not loaded: /usr/local/lib/libexpat.0.1.0.dylib
Referenced from: /usr/sbin/httpd
Reason: image not found
/usr/sbin/apachectl: line 187: 19610 Trace/BPT trap $HTTPD
/usr/sbin/apachectl start: httpd could not be started
$ which apachectl
/usr/sbin/apachectl
$ /opt/local/apache2/bin/httpd -V
Server version: Apache/2.2.6 (Unix)
Server built: Dec 16 2007 11:15:14
Server's Module Magic Number: 20051115:5
Server loaded: APR 1.2.12, APR-Util 1.2.12
Compiled using: APR 1.2.12, APR-Util 1.2.12
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/opt/local/apache2"
-D SUEXEC_BIN="/opt/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
$ sudo /opt/local/apache2/bin/apachectl start
Password:
httpd: Could not open configuration file /opt/local/apache2/conf/
httpd.conf: No such file or directory
$ less /opt/local/apache2/conf/httpd.conf
/opt/local/apache2/conf/httpd.conf: No such file or directory
Any idea?
On Dec 15, 2007, at 10:59 AM, Chris Janton wrote:
> On 2007-12-14 , at 19:10 , Ryan Schmidt wrote:
>
>>
>> Ok, so your MacPorts has been inadvertently linked with the rogue
>> readline that was in /usr/local/lib. You should now rebuild
>> MacPorts, either by building from source, or by reinstalling it
>> from the latest disk image for your OS version and then running
>> selfupdate.
>>
>> You may encounter other software, MacPorts ports for example,
>> inadvertently linked with the libraries formerly in /usr/local/
>> lib. As you discover these, rebuild those ports with "sudo port -
>> ncuf upgrade foo"
>
>
> the correct way to make this happen is
>
> sudo mv /usr/local /usr/local1
> upgrade MacPorts from disk image
> sudo port selfupdate
>
> and continue from there.
>
> If I leave my /usr/local in place during the install/upgrade of
> MacPorts it gets the wrong readline.
>
> I can move forward now.
>
> 8)
> ----------------------------------
> Chris Janton - face at CentosPrime dot COM
> Netminder for Opus1.COM
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-users
More information about the macports-users
mailing list