#23057: Configuring MySQL5 error can't open input file: /opt/local/lib/libz.dylib -------------------------------------+-------------------------------------- Reporter: tim.tunbridge@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: mysql5 -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Please remember WikiFormatting. Replying to [comment:4 tim.tunbridge@…]:
I did not uninstall and reinstall all ports (as per the migration page). This is the very first time I have used Macports, so did I need to do that first?
If you're sure you never had MacPorts installed before, then that's fine; then there would be nothing to uninstall.
I upgraded to 10.6, downloaded and tried Macports which failed, then installed Xcode and got to this point.
It failed presumably due to missing Xcode?
I did not uninstall my copy of MySQL5 either manually or via Macports during this process, is that where I went wrong? [[br]] [[br]] There is no panic on this as I have now manually reinstalled MySQL5
Which MySQL do you have installed? MacPorts does not use libraries you have installed separately. If you want to use MySQL with something from MacPorts, you probably want to uninstall any MySQL you manually installed, then "sudo port install mysql5" (if you want the MySQL client) and "sudo port install mysql5-server" (if you want a MySQL server).
however I am still getting the same error message and I'm keen to try Macports in future. [[br]] [[br]] Error: Target org.macports.configure returned: lipo: can't open input file: /opt/local/lib/libz.dylib (No such file or directory)
Does the file /opt/local/lib/libz.dylib exist? What does "port contents zlib" say? -- Ticket URL: <http://trac.macports.org/ticket/23057#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS