$ 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.5.tar.bz2 from http://ftp.gnu.org/ gnu/gawk ---> Verifying checksum(s) for gawk ---> Extracting gawk ---> Applying patches to gawk ---> Configuring gawk … On Dec 14, 2007, at 8:43 PM, Ryan Schmidt wrote:
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/BerkeleyDB.4.2: bin docs include lib
/usr/local/OpenSourceLicenses: MySQL.txt RemoteDesktop.txt
/usr/local/OpenSourceVersions: MySQL.plist RemoteDesktop.plist
/usr/local/apache: bin include libexec sbin share
/usr/local/apr: bin build-1 include lib
/usr/local/bin: bash darwinxref make python2.5-config smtpd.py svndumpfilter bashbug decomment nano pythonw smtpd2.5.py svnlook check_dylib idle pydoc pythonw2.5 srm svnserve checksyms idle2.5 pydoc2.5 relpath sudo svnsync ctfconvert.c indr python rnano sudoedit svnversion darwinbuild kern_tool python- config seg_addr_table svn wget darwinmaster kextsymboltool python2.5 seg_hack svnadmin whois
/usr/local/etc: wgetrc
/usr/local/include: DarwinBuild apr-1 db.h dyld fuse.h neon pcap-namedb.h streams ulockmgr.h IOKit cbt db_cxx.h fuse mach-o pcap-bpf.h pcap.h subversion-1
/usr/local/info: bash.info make.info make.info-1 make.info-2
/usr/local/lib: charset.alias libkld.a libsvn_fs-1.0.dylib libsvn_ra_svn-1.0.dylib libsvn_wc-1.0.dylib libapr-1.0.2.8.dylib libneon.25.0.5.dylib libsvn_fs-1.dylib libsvn_ra_svn-1.dylib libsvn_wc-1.dylib libapr-1.0.dylib libneon.25.dylib libsvn_fs_base-1.0.0.0.dylib libsvn_repos-1.0.0.0.dylib libsvnjavahl-1.0.0.0.dylib libapr-1.dylib libneon.dylib libsvn_fs_base-1.0.dylib libsvn_repos-1.0.dylib libsvnjavahl-1.0.dylib libaprutil-1.0.2.8.dylib libpcap.a libsvn_fs_base-1.dylib libsvn_repos-1.dylib libsvnjavahl-1.dylib libaprutil-1.0.dylib libstreams.a libsvn_fs_fs-1.0.0.0.dylib libsvn_subr-1.0.0.0.dylib libulockmgr.0.0.0.dylib libaprutil-1.dylib libstreams_debug.a libsvn_fs_fs-1.0.dylib libsvn_subr-1.0.dylib libulockmgr.0.dylib libdb-4.5.dylib libstreams_profile.a libsvn_fs_fs-1.dylib libsvn_subr-1.dylib libulockmgr.a libdb-4.dylib libsvn_client-1.0.0.0.dylib libsvn_ra-1.0.0.0.dylib libsvn_swig_perl-1.0.0.0.dylib libulockmgr.dylib libdb.dylib libsvn_client-1.0.dylib libsvn_ra-1.0.dylib libsvn_swig_perl-1.0.dylib libulockmgr.la libexpat.0.1.0.dylib libsvn_client-1.dylib libsvn_ra-1.dylib libsvn_swig_perl-1.dylib pkgconfig libexpat.0.dylib libsvn_delta-1.0.0.0.dylib libsvn_ra_dav-1.0.0.0.dylib libsvn_swig_py-1.0.0.0.dylib svn-apache libexpat.dylib libsvn_delta-1.0.dylib libsvn_ra_dav-1.0.dylib libsvn_swig_py-1.0.dylib svn-javahl libfuse.0.0.0.dylib libsvn_delta-1.dylib libsvn_ra_dav-1.dylib libsvn_swig_py-1.dylib svn-perl libfuse.0.dylib libsvn_diff-1.0.0.0.dylib libsvn_ra_local-1.0.0.0.dylib libsvn_swig_ruby-1.0.0.0.dylib svn-python libfuse.a libsvn_diff-1.0.dylib libsvn_ra_local-1.0.dylib libsvn_swig_ruby-1.0.dylib svn-ruby libfuse.dylib libsvn_diff-1.dylib libsvn_ra_local-1.dylib libsvn_swig_ruby-1.dylib libfuse.la libsvn_fs-1.0.0.0.dylib libsvn_ra_svn-1.0.0.0.dylib libsvn_wc-1.0.0.0.dylib
/usr/local/libexec: gcc sudo_noexec.dylib sudo_noexec.la
/usr/local/man: man1 man3 whatis
/usr/local/sbin: visudo
/usr/local/share: darwinbuild darwinxref doc html info locale man $
On Dec 14, 2007, at 8:04 PM, Ryan Schmidt wrote:
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 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 readline 5.2.007_0, the following ports depend on it: ---> bash ---> gnupg Warning: Uninstall forced. Proceeding despite dependencies. ---> Deactivating readline 5.2.007_0 ---> Uninstalling readline 5.2.007_0 $ 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_da tabases_db44/work/db-4.4.20/build_unix" && make all " returned error 2 Command output: /bin/sh ./libtool --mode=compile /usr/bin/ gcc-4.0 -c -O2 -I../dist/.. -I/opt/local/include ../dist/../ db_dump185/db_dump185.c /usr/bin/gcc-4.0 -c -O2 -I../dist/.. -I/opt/local/include ../ dist/../db_dump185/db_dump185.c -fno-common -DPIC -o .libs/ db_dump185.o ../dist/../db_dump185/db_dump185.c: In function 'main': ../dist/../db_dump185/db_dump185.c:212: warning: assignment makes pointer from integer without a cast ../dist/../db_dump185/db_dump185.c:214: warning: assignment makes pointer from integer without a cast ../dist/../db_dump185/db_dump185.c:229: error: 'struct __db' has no member named 'seq' ../dist/../db_dump185/db_dump185.c:229: error: 'R_NEXT' undeclared (first use in this function) ../dist/../db_dump185/db_dump185.c:229: error: (Each undeclared identifier is reported only once ../dist/../db_dump185/db_dump185.c:229: error: for each function it appears in.) ../dist/../db_dump185/db_dump185.c:234: error: 'struct __db' has no member named 'seq' ../dist/../db_dump185/db_dump185.c: In function 'db_hash': ../dist/../db_dump185/db_dump185.c:262: error: 'struct __db' has no member named 'internal' ../dist/../db_dump185/db_dump185.c:264: error: 'struct __db' has no member named 'internal' ../dist/../db_dump185/db_dump185.c: In function 'db_btree': ../dist/../db_dump185/db_dump185.c:289: error: 'struct __db' has no member named 'internal' make: *** [db_dump185.lo] Error 1
Error: The following dependencies failed to build: apr-util db44 sqlite3 gawk readline Error: Status 1 encountered during processing. $
On Dec 14, 2007, at 2:16 PM, Daniel J. Luke wrote:
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/projects/macports/ticket/12040
I have the dreaded "readline in /usr/local" problem. The resolution to the problem says re-install MacPorts from the disk image and selfupdate to the latest version.
That's the resolution if you are having problems building MacPorts, not if db44 is having problems.
I would recommend removing your readline from /usr/local (perhaps just temporarily) so that db44 can be installed.
What happens to the long list of ports that I have active when I re-install from the disk image?
mac:/opt system$ sudo du -d 1 -h . 689M ./local 689M .
Nothing should happen to them if you were to reinstall MacPorts (unless you remove /opt/local or files from within /opt/local), but it doesn't look like you need to reinstall MacPorts.
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 Reason: image not found while executing "load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib" ("package ifneeded" script) invoked from within "package require Pextlib 1.0" (procedure "mportinit" line 365) invoked from within "mportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize MacPorts, Library not loaded: /usr/local/lib/libreadline.5.1.dylib Referenced from: /opt/local/share/macports/Tcl/pextlib1.0/ Pextlib.dylib Reason: image not found 8) ---------------------------------- Chris Janton - face at CentosPrime dot COM Netminder for Opus1.COM
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 MacPorts. On Dec 14, 2007, at 19:53, Charlse Darwin wrote:
$ 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.5.tar.bz2 from http:// ftp.gnu.org/gnu/gawk ---> Verifying checksum(s) for gawk ---> Extracting gawk ---> Applying patches to gawk ---> Configuring gawk …
On Dec 14, 2007, at 8:43 PM, Ryan Schmidt wrote:
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/BerkeleyDB.4.2: bin docs include lib
/usr/local/OpenSourceLicenses: MySQL.txt RemoteDesktop.txt
/usr/local/OpenSourceVersions: MySQL.plist RemoteDesktop.plist
/usr/local/apache: bin include libexec sbin share
/usr/local/apr: bin build-1 include lib
/usr/local/bin: bash darwinxref make python2.5-config smtpd.py svndumpfilter bashbug decomment nano pythonw smtpd2.5.py svnlook check_dylib idle pydoc pythonw2.5 srm svnserve checksyms idle2.5 pydoc2.5 relpath sudo svnsync ctfconvert.c indr python rnano sudoedit svnversion darwinbuild kern_tool python- config seg_addr_table svn wget darwinmaster kextsymboltool python2.5 seg_hack svnadmin whois
/usr/local/etc: wgetrc
/usr/local/include: DarwinBuild apr-1 db.h dyld fuse.h neon pcap-namedb.h streams ulockmgr.h IOKit cbt db_cxx.h fuse mach-o pcap-bpf.h pcap.h subversion-1
/usr/local/info: bash.info make.info make.info-1 make.info-2
/usr/local/lib: charset.alias libkld.a libsvn_fs-1.0.dylib libsvn_ra_svn-1.0.dylib libsvn_wc-1.0.dylib libapr-1.0.2.8.dylib libneon.25.0.5.dylib libsvn_fs-1.dylib libsvn_ra_svn-1.dylib libsvn_wc-1.dylib libapr-1.0.dylib libneon.25.dylib libsvn_fs_base-1.0.0.0.dylib libsvn_repos-1.0.0.0.dylib libsvnjavahl-1.0.0.0.dylib libapr-1.dylib libneon.dylib libsvn_fs_base-1.0.dylib libsvn_repos-1.0.dylib libsvnjavahl-1.0.dylib libaprutil-1.0.2.8.dylib libpcap.a libsvn_fs_base-1.dylib libsvn_repos-1.dylib libsvnjavahl-1.dylib libaprutil-1.0.dylib libstreams.a libsvn_fs_fs-1.0.0.0.dylib libsvn_subr-1.0.0.0.dylib libulockmgr.0.0.0.dylib libaprutil-1.dylib libstreams_debug.a libsvn_fs_fs-1.0.dylib libsvn_subr-1.0.dylib libulockmgr.0.dylib libdb-4.5.dylib libstreams_profile.a libsvn_fs_fs-1.dylib libsvn_subr-1.dylib libulockmgr.a libdb-4.dylib libsvn_client-1.0.0.0.dylib libsvn_ra-1.0.0.0.dylib libsvn_swig_perl-1.0.0.0.dylib libulockmgr.dylib libdb.dylib libsvn_client-1.0.dylib libsvn_ra-1.0.dylib libsvn_swig_perl-1.0.dylib libulockmgr.la libexpat.0.1.0.dylib libsvn_client-1.dylib libsvn_ra-1.dylib libsvn_swig_perl-1.dylib pkgconfig libexpat.0.dylib libsvn_delta-1.0.0.0.dylib libsvn_ra_dav-1.0.0.0.dylib libsvn_swig_py-1.0.0.0.dylib svn-apache libexpat.dylib libsvn_delta-1.0.dylib libsvn_ra_dav-1.0.dylib libsvn_swig_py-1.0.dylib svn-javahl libfuse.0.0.0.dylib libsvn_delta-1.dylib libsvn_ra_dav-1.dylib libsvn_swig_py-1.dylib svn-perl libfuse.0.dylib libsvn_diff-1.0.0.0.dylib libsvn_ra_local-1.0.0.0.dylib libsvn_swig_ruby-1.0.0.0.dylib svn-python libfuse.a libsvn_diff-1.0.dylib libsvn_ra_local-1.0.dylib libsvn_swig_ruby-1.0.dylib svn-ruby libfuse.dylib libsvn_diff-1.dylib libsvn_ra_local-1.dylib libsvn_swig_ruby-1.dylib libfuse.la libsvn_fs-1.0.0.0.dylib libsvn_ra_svn-1.0.0.0.dylib libsvn_wc-1.0.0.0.dylib
/usr/local/libexec: gcc sudo_noexec.dylib sudo_noexec.la
/usr/local/man: man1 man3 whatis
/usr/local/sbin: visudo
/usr/local/share: darwinbuild darwinxref doc html info locale man $
On Dec 14, 2007, at 8:04 PM, Ryan Schmidt wrote:
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 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 readline 5.2.007_0, the following ports depend on it: ---> bash ---> gnupg Warning: Uninstall forced. Proceeding despite dependencies. ---> Deactivating readline 5.2.007_0 ---> Uninstalling readline 5.2.007_0 $ 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_d atabases_db44/work/db-4.4.20/build_unix" && make all " returned error 2 Command output: /bin/sh ./libtool --mode=compile /usr/bin/ gcc-4.0 -c -O2 -I../dist/.. -I/opt/local/include ../dist/../ db_dump185/db_dump185.c /usr/bin/gcc-4.0 -c -O2 -I../dist/.. -I/opt/local/include ../ dist/../db_dump185/db_dump185.c -fno-common -DPIC -o .libs/ db_dump185.o ../dist/../db_dump185/db_dump185.c: In function 'main': ../dist/../db_dump185/db_dump185.c:212: warning: assignment makes pointer from integer without a cast ../dist/../db_dump185/db_dump185.c:214: warning: assignment makes pointer from integer without a cast ../dist/../db_dump185/db_dump185.c:229: error: 'struct __db' has no member named 'seq' ../dist/../db_dump185/db_dump185.c:229: error: 'R_NEXT' undeclared (first use in this function) ../dist/../db_dump185/db_dump185.c:229: error: (Each undeclared identifier is reported only once ../dist/../db_dump185/db_dump185.c:229: error: for each function it appears in.) ../dist/../db_dump185/db_dump185.c:234: error: 'struct __db' has no member named 'seq' ../dist/../db_dump185/db_dump185.c: In function 'db_hash': ../dist/../db_dump185/db_dump185.c:262: error: 'struct __db' has no member named 'internal' ../dist/../db_dump185/db_dump185.c:264: error: 'struct __db' has no member named 'internal' ../dist/../db_dump185/db_dump185.c: In function 'db_btree': ../dist/../db_dump185/db_dump185.c:289: error: 'struct __db' has no member named 'internal' make: *** [db_dump185.lo] Error 1
Error: The following dependencies failed to build: apr-util db44 sqlite3 gawk readline Error: Status 1 encountered during processing. $
On Dec 14, 2007, at 2:16 PM, Daniel J. Luke wrote:
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/projects/macports/ticket/12040 > > > I have the dreaded "readline in /usr/local" problem. > The resolution to the problem says re-install MacPorts from > the disk image and selfupdate to the latest version.
That's the resolution if you are having problems building MacPorts, not if db44 is having problems.
I would recommend removing your readline from /usr/local (perhaps just temporarily) so that db44 can be installed.
> What happens to the long list of ports that I have active > when I re-install from the disk image? > > mac:/opt system$ sudo du -d 1 -h . > 689M ./local > 689M .
Nothing should happen to them if you were to reinstall MacPorts (unless you remove /opt/local or files from within / opt/local), but it doesn't look like you need to reinstall MacPorts.
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/local/share/macports/Tcl/pextlib1.0/ Pextlib.dylib Reason: image not found while executing "load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib" ("package ifneeded" script) invoked from within "package require Pextlib 1.0" (procedure "mportinit" line 365) invoked from within "mportinit ui_options global_options global_variations" Error: /opt/local/bin/port: Failed to initialize MacPorts, Library not loaded: /usr/local/lib/libreadline.5.1.dylib Referenced from: /opt/local/share/macports/Tcl/pextlib1.0/ Pextlib.dylib Reason: image not found
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"
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
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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
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@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
$ 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, 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@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
$ 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 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@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
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 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
I think Daniel meant sudo cp /opt/local/apache2/conf/ httpd.conf.sample /opt/local/apache2/conf/httpd.conf William Davis frstanATbellsouthDOTnet Mac OS X.5.1 Darwin 9.1.0 X11.app 2.1.1 - (xorg-server 1.3.0-apple5) Mac Mini Intel Duo @ 1.86 GHz Mundus vult decepi, ego non
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 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 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
I think Daniel meant sudo cp /opt/local/apache2/conf/ httpd.conf.sample /opt/local/apache2/conf/httpd.conf
William Davis frstanATbellsouthDOTnet Mac OS X.5.1 Darwin 9.1.0 X11.app 2.1.1 - (xorg-server 1.3.0-apple5) Mac Mini Intel Duo @ 1.86 GHz
Mundus vult decepi, ego non
participants (5)
-
Charlse Darwin
-
Chris Janton
-
Daniel J. Luke
-
Ryan Schmidt
-
William Davis