Re: sudo port install apache2

2007-12-17 Thread Ryan Schmidt
On Dec 16, 2007, at 18:03, Charlse Darwin wrote: "The MacPorts binary installer places a .profile file in your home directory (view files preceded by a dot with 'ls -a'). The contents of this ~/.profile file adds the MacPorts paths in front of the standard Unix paths for the default BASH sh

Re: sudo port install apache2

2007-12-16 Thread Charlse Darwin
Thanks for your input Ryan; really informative. I found the quote below here: http://trac.macosforge.org/projects/ macports/wiki/InstallingMacPorts "The MacPorts binary installer places a .profile file in your home directory (view files preceded by a dot with 'ls -a'). The contents of this

Re: sudo port install apache2

2007-12-16 Thread Ryan Schmidt
On Dec 16, 2007, at 15:05, Charlse Darwin wrote: $ env PATH=/Users/***/Documents/scripts/:/opt/local/bin:/opt/local/sbin:/ bin:/sbin:/usr/bin:/usr/sbin:/Library/Frameworks/Python.framework/ Versions/Current/bin/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/ usr/local/teTeX/bin/powerpc-apple-d

Re: sudo port install apache2

2007-12-16 Thread Charlse Darwin
$ env PATH=/Users/***/Documents/scripts/:/opt/local/bin:/opt/local/sbin:/ bin:/sbin:/usr/bin:/usr/sbin:/Library/Frameworks/Python.framework/ Versions/Current/bin/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ local/teTeX/bin/powerpc-apple-darwin-current $ Is my env set up `correctly'? On

Re: sudo port install apache2

2007-12-16 Thread Charlse Darwin
It works! Thanks. However still we've got the following: $ which apachectl /usr/sbin/apachectl # as opposed to (which as an example shows my env is set up correctly) $ which bash /opt/local/bin/bash $ On Dec 16, 2007, at 3:09 PM, William Davis wrote: On Dec 16, 2007, at 1:27 PM, Charlse Darwin

Re: sudo port install apache2

2007-12-16 Thread William Davis
On Dec 16, 2007, at 1:27 PM, Charlse Darwin wrote: $ sudo cp /opt/local/apache2/conf/httpd.conf.sample /opt/local/ apache2/conf/ Password: cp: /opt/local/apache2/conf/httpd.conf.sample and /opt/local/apache2/ conf/httpd.conf.sample are identical (not copied). $ /snip/ Yes, you don't hav

Re: sudo port install apache2

2007-12-16 Thread Charlse Darwin
$ sudo /opt/local/apache2/bin/apachectl start httpd: Syntax error on line 63 of /opt/local/apache2/conf/httpd.conf: ServerRoot must be a valid directory $ On Dec 16, 2007, at 1:24 PM, Daniel J. Luke wrote: On Dec 16, 2007, at 11:59 AM, Charlse Darwin wrote: Here is the situation: $ sudo ap

Re: sudo port install apache2

2007-12-16 Thread Charlse Darwin
$ sudo cp /opt/local/apache2/conf/httpd.conf.sample /opt/local/ apache2/conf/ Password: cp: /opt/local/apache2/conf/httpd.conf.sample and /opt/local/apache2/ conf/httpd.conf.sample are identical (not copied). $ On Dec 16, 2007, at 1:24 PM, Daniel J. Luke wrote: On Dec 16, 2007, at 11:59 AM,

Re: sudo port install apache2

2007-12-16 Thread Daniel J. Luke
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/

Re: sudo port install apache2

2007-12-16 Thread Charlse Darwin
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/apa

Re: sudo port install apache2

2007-12-15 Thread Chris Janton
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 t

Re: sudo port install apache2

2007-12-15 Thread Charlse Darwin
http://www.opensource.apple.com/darwinsource/Current/apache1-696/ apache1/INSTALL $ ./configure --prefix=PREFIX NOTE: PREFIX is not the string "PREFIX". Instead use the Unix filesystem path under which Apache should be installed. For instance use "/usr/local/apache" for PRE

Re: sudo port install apache2

2007-12-15 Thread Charlse Darwin
I am going to get the source code from here: http://www.opensource.apple.com/darwinsource/tarballs/other/ apache-729.tar.gz http://www.opensource.apple.com/darwinsource/tarballs/other/ apache1-696.tar.gz what do you think? On Dec 15, 2007, at 9:17 AM, Jochen Küpper wrote: On 15.12.2007, at

Re: sudo port install apache2

2007-12-15 Thread Jochen Küpper
On 15.12.2007, at 13:41, Ryan Schmidt wrote: (MacPorts keeps track of what it installed where so that it can uninstall it later with "port uninstall", but normal unix software installed by hand provides no such mechanism.) Then you will have no apache. autotools often do provide similar m

Re: sudo port install apache2

2007-12-15 Thread Charlse Darwin
Let me see what I can do, thanks. On Dec 15, 2007, at 7:41 AM, Ryan Schmidt wrote: Well, you're not getting the same output as me: your httpd is linked against /usr/lib/libSystem and /usr/local/lib/libexpat. Mine is linked against /usr/lib/libSystem and /usr/lib/libgcc. Apple does not prov

Re: sudo port install apache2

2007-12-15 Thread Ryan Schmidt
Well, you're not getting the same output as me: your httpd is linked against /usr/lib/libSystem and /usr/local/lib/libexpat. Mine is linked against /usr/lib/libSystem and /usr/lib/libgcc. Apple does not provide any software in /usr/local so you must have manually compiled expat in prefix /u

Re: sudo port install apache2

2007-12-15 Thread Charlse Darwin
I am getting the same: $ otool -L /usr/sbin/httpd /usr/sbin/httpd: /usr/local/lib/libexpat.0.1.0.dylib (compatibility version 2.0.0, current version 2.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.10) $ I have tried installing Apache from

Re: sudo port install apache2

2007-12-14 Thread Ryan Schmidt
Why is your /usr/sbin/httpd linked against anything in /usr/local/ lib? This is what it should be linked with, at least on Tiger: $ otool -L /usr/sbin/httpd /usr/sbin/httpd: /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dyli

Re: sudo port install apache2

2007-12-14 Thread Charlse Darwin
$ 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: 16752 Trace/BPT trap $HTTPD /usr/sbin/apachectl start: httpd could not be started $ On Dec 14, 2007, at 9:12 PM

Re: sudo port install apache2

2007-12-14 Thread Ryan Schmidt
Well, you should probably just move /usr/local aside first. Other software (including MacPorts ports) may be inadvertently linked with the libraries in /usr/local/lib. As you discover these, rebuild those ports to link them properly with the MacPorts-provided libraries. Once you're no longe

Re: sudo port install apache2

2007-12-14 Thread Ryan Schmidt
On Dec 14, 2007, at 20:01, Chris Janton wrote: On 2007-12-14 , at 18:53 , Charlse Darwin wrote: $ mv mv /usr/local mv /usr/local-off mac 1 # sudo mv /usr/local /usr/local1 mac 2 # sudo port install apache2 Library not loaded: /usr/local/lib/libreadline.5.1.dylib Referenced from: /opt/loca

Re: sudo port install apache2

2007-12-14 Thread Ryan Schmidt
Um it was anticipated to have been in /usr/local/lib but I don't see it there either. Try moving the entire /usr/local aside (e.g. rename it "/usr/local- off") and see if that helps. On Dec 14, 2007, at 19:14, Charlse Darwin wrote: Where is readline? $ ls /usr/local/* /usr/local/Berk

Re: sudo port install apache2

2007-12-14 Thread Ryan Schmidt
Good, so something in /usr/local was conflicting. I see now all the other libs that you do have in /usr/local/lib. Those will probably also conflict with MacPorts-installed programs. This is why we recommend not having anything in /usr/local/lib. Instead, install all software you need using

Re: sudo port install apache2

2007-12-14 Thread Chris Janton
On 2007-12-14 , at 18:53 , Charlse Darwin wrote: $ mv mv /usr/local mv /usr/local-off mac 1 # sudo mv /usr/local /usr/local1 mac 2 # sudo port install apache2 Library not loaded: /usr/local/lib/libreadline.5.1.dylib Referenced from: /opt/local/share/macports/Tcl/pextlib1.0/ Pextlib.dylib

Re: sudo port install apache2

2007-12-14 Thread Charlse Darwin
$ mv mv /usr/local mv /usr/local-off Password: $ sudo port install apache2 ---> Building db44 with target all ---> Staging db44 into destroot ---> Installing db44 4.4.20_1+darwin_8 ---> Activating db44 4.4.20_1+darwin_8 ---> Cleaning db44 ---> Fetching gawk ---> Attempting to fetch gawk-3.1

Re: sudo port install apache2

2007-12-14 Thread Charlse Darwin
Where is readline? $ ls /usr/local/* /usr/local/BerkeleyDB.4.2: bin docsinclude lib /usr/local/OpenSourceLicenses: MySQL.txt RemoteDesktop.txt /usr/local/OpenSourceVersions: MySQL.plist RemoteDesktop.plist /usr/local/apache: bin include libexec sbinsha

Re: sudo port install apache2

2007-12-14 Thread Ryan Schmidt
No no -- you need to remove (or temporarily move aside) the readline libraries in /usr/local, *not* the readline installed by MacPorts into /opt/local, which is perfectly fine to have. On Dec 14, 2007, at 16:54, Charles Darwin wrote: $ sudo port uninstall readline ---> Unable to uninstall

Re: sudo port install apache2

2007-12-14 Thread Charles Darwin
$ sudo port uninstall readline ---> Unable to uninstall readline 5.2.007_0, the following ports depend on it: --->bash --->gnupg Error: port uninstall failed: Please uninstall the ports that depend on readline first. $ sudo port -f uninstall readline ---> Unable to uninstall readli

Re: sudo port install apache2

2007-12-14 Thread Daniel J. Luke
On Dec 14, 2007, at 12:40 PM, Chris Janton wrote: On 2007-12-13 , at 21:08 , Daniel J. Luke wrote: Error: The following dependencies failed to build: apr-util db44 sqlite3 gawk openssl Error: Status 1 encountered during processing. This is probably related to: http://trac.macports.org/proje

Re: sudo port install apache2

2007-12-14 Thread Chris Janton
On 2007-12-13 , at 21:08 , Daniel J. Luke wrote: Error: The following dependencies failed to build: apr-util db44 sqlite3 gawk openssl Error: Status 1 encountered during processing. This is probably related to: http://trac.macports.org/projects/macports/ticket/12040 I have the dreaded "

Re: sudo port install apache2

2007-12-13 Thread Daniel J. Luke
On Dec 13, 2007, at 1:25 PM, Charles Darwin wrote: $ sudo port install apache2 ---> Building db44 with target all Error: Target org.macports.build returned: shell command " cd "/opt/ local/var/macports/build/ _opt_local_var_macports_sources_rsync .macports.org_release_ports_databases_db44/wor