sudo port install apache2

Daniel J. Luke dluke at geeklair.net
Sun Dec 16 10:24:49 PST 2007


On Dec 16, 2007, at 11:59 AM, Charlse Darwin wrote:
> 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

This has nothing to do with macports, it's something you have broken  
with your system.

> #However…
>
> $ sudo /usr/local/apache2/bin/apachectl start
> $ sudo /usr/local/apache2/bin/httpd -V

This is also not related to macports.

> $ 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

This is the same problem as before (ie. not macports-related).

> $ 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?

Yes, you don't have a conf file for your macports apache. There is a  
sample conf file in /opt/local/apache2/conf that you can use as a base  
(sudo cp /opt/local/apache2/conf/httpd.conf.sample /opt/local/apache2/ 
conf/)

--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.macosforge.org/pipermail/macports-users/attachments/20071216/36210506/PGP.bin


More information about the macports-users mailing list