#20406: mysql5 can't find zlib on Snow Leopard --------------------------------+------------------------------------------- Reporter: conradwt@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: mysql5 --------------------------------+------------------------------------------- Comment(by conradwt@…): Replying to [comment:3 ryandesign@…]:
* Could you attach the config.log please?
Yes, I can attach the file.
* Is the zlib port installed and active?
darnoc-laptop:mysql-5.0.83 conradwt$ port installed zlib The following ports are currently installed: zlib @1.2.3_2 (active)
* Are you trying to build a universal binary of any port?
I'm using 'sudo port install mysql5-server' to build and install the port.
* Can you try the mysql5-devel port instead of the mysql5 port and see if it has the same issue?
Here's the transcript from trying to install: BEGIN TRANSCRIPT: ddarnoc-laptop:~ conradwt$ sudo port install mysql5-devel Password: ---> Computing dependencies for mysql5-devel ---> Configuring mysql5-devel 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_databases_mysql5-devel/work/mysql-5.1.36" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info --localstatedir=/opt/local/var/db/mysql5 --libdir=/opt/local/lib/mysql5 --bindir=/opt/local/lib/mysql5/bin --includedir=/opt/local/include/mysql5 --datadir=/opt/local/share/mysql5 --sysconfdir=/opt/local/etc/mysql5 --with-zlib-dir=/opt/local --with- ssl=/opt/local --with-extra-charsets=complex --with-unix-socket- path=/opt/local/var/run/mysql5/mysqld.sock --with-mysqld-user=mysql --without-docs --without-bench --with-partition --with-plugins=all --enable-thread-safe-client --without-readline --with-embedded-server --with-pic " returned error 1 Command output: checking for linux/config.h... no checking sys/prctl.h usability... no checking sys/prctl.h presence... no checking for sys/prctl.h... no checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking port.h usability... no checking port.h presence... no checking for port.h... no checking for ieeefp.h... (cached) no checking execinfo.h usability... yes checking execinfo.h presence... yes checking for execinfo.h... yes checking xfs/xfs.h usability... no checking xfs/xfs.h presence... no checking for xfs/xfs.h... no checking for floor in -lm... yes checking for gethostbyname_r in -lnsl_r... no checking for gethostbyname_r in -lnsl... no checking for gethostbyname_r... no checking for library containing setsockopt... none required checking for library containing bind... none required checking for library containing crypt... none required checking for library containing inet_aton... none required checking for library containing sched_yield... none required checking for zlib compression library... configure: error: headers or binaries were not found in /opt/local/{include,lib} Error: Status 1 encountered during processing. END TRANSCRIPT: Lastly, I had to use MacPorts 1.8.0 because MacPorts 1.7.x failed to run on Snow Leopard. -- Ticket URL: <http://trac.macports.org/ticket/20406#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS