[MacPorts] #24599: Error 2 while trying to install zlib on OS X 10.6.3
#24599: Error 2 while trying to install zlib on OS X 10.6.3 -------------------------------------+-------------------------------------- Reporter: trichard@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: -------------------------------------+-------------------------------------- Hello, i just set up a new imac with all up to date Apple software (10.6.3, Macports 1.8.2) and tried to install mysql on the system. I received the following error: ---> Computing dependencies for mysql5 ---> Staging zlib into destroot Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make install prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local " returned error 2 Command output: cp libz.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local/lib cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local/lib usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory make: *** [install-libs] Error 64 Error: The following dependencies failed to build: openssl zlib readline Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output. then I tried to install ffmpeg or ImageMagick and i allways encountered the same message. so i tried to install zlib... same message. I've checked the permissions in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local everything seems to be ok. What's going wrong with the zlib installation? Thanks in advance Thomas -- Ticket URL: <http://trac.macports.org/ticket/24599> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24599: zlib destroot fails with cp usage message -------------------------------------+-------------------------------------- Reporter: trichard@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: zlib -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * status: new => assigned * cc: landonf@… (added) * owner: macports-tickets@… => ryandesign@… * port: => zlib Old description:
Hello,
i just set up a new imac with all up to date Apple software (10.6.3, Macports 1.8.2) and tried to install mysql on the system.
I received the following error:
---> Computing dependencies for mysql5 ---> Staging zlib into destroot Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make install prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local " returned error 2 Command output: cp libz.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local/lib cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local/lib usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory make: *** [install-libs] Error 64
Error: The following dependencies failed to build: openssl zlib readline Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output.
then I tried to install ffmpeg or ImageMagick and i allways encountered the same message.
so i tried to install zlib... same message.
I've checked the permissions in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local
everything seems to be ok.
What's going wrong with the zlib installation?
Thanks in advance
Thomas
New description: Hello, i just set up a new imac with all up to date Apple software (10.6.3, Macports 1.8.2) and tried to install mysql on the system. I received the following error: {{{ ---> Computing dependencies for mysql5 ---> Staging zlib into destroot Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5" && /usr/bin/make install prefix=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local " returned error 2 Command output: cp libz.a /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local/lib cp /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local/lib usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory make: *** [install-libs] Error 64 Error: The following dependencies failed to build: openssl zlib readline Error: Status 1 encountered during processing. Before reporting a bug, first run the command again with the -d flag to get complete output. }}} then I tried to install ffmpeg or ImageMagick and i allways encountered the same message. so i tried to install zlib... same message. I've checked the permissions in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/zlib-1.2.5 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_archivers_zlib/work/destroot/opt/local everything seems to be ok. What's going wrong with the zlib installation? Thanks in advance Thomas -- Comment: Please remember WikiFormatting and to Cc the port's maintainers. -- Ticket URL: <http://trac.macports.org/ticket/24599#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24599: zlib destroot fails with cp usage message -------------------------------------+-------------------------------------- Reporter: trichard@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: zlib -------------------------------------+-------------------------------------- Comment(by ryandesign@…): It looks like while it's having no trouble with the static library, it's having problems installing the shared library; looks like the Makefile variable SHAREDLIBV is empty for some reason. Please clean and try again and use the debug switch: {{{ sudo port clean zlib sudo port -d install zlib 2>&1 | tee ~/Desktop/zlib.txt }}} Assuming it fails again, please attach the file zlib.txt from your desktop to this ticket so I can see everything that's going on. -- Ticket URL: <http://trac.macports.org/ticket/24599#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24599: zlib destroot fails with cp usage message -------------------------------------+-------------------------------------- Reporter: trichard@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: zlib -------------------------------------+-------------------------------------- Comment(by trichard@…): Replying to [comment:2 ryandesign@…]:
Please clean and try again and use the debug switch:
{{{ sudo port clean zlib }}} That was the solution. Don't know where it lost the variable Thanks a lot, ticket can be closed. -- Ticket URL: <http://trac.macports.org/ticket/24599#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24599: zlib destroot fails with cp usage message --------------------------------------+------------------------------------- Reporter: trichard@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: worksforme | Keywords: Port: zlib | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => worksforme Comment: Ok, glad you got it working. -- Ticket URL: <http://trac.macports.org/ticket/24599#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24599: zlib destroot fails with cp usage message --------------------------------------+------------------------------------- Reporter: trichard@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: worksforme | Keywords: Port: zlib | --------------------------------------+------------------------------------- Comment(by ryandesign@…): This problem was also reported in #24896. -- Ticket URL: <http://trac.macports.org/ticket/24599#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24599: zlib destroot fails with cp usage message --------------------------------------+------------------------------------- Reporter: trichard@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: worksforme | Keywords: Port: zlib | --------------------------------------+------------------------------------- Comment(by ryandesign@…): Has duplicate #25125. -- Ticket URL: <http://trac.macports.org/ticket/24599#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24599: zlib destroot fails with cp usage message --------------------------------------+------------------------------------- Reporter: trichard@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: | Keywords: Port: zlib | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: closed => reopened * resolution: worksforme => Comment: Through discussion in #25125 I believe this problem occurs when users try installing zlib while a too-old version of Xcode is installed (e.g. Xcode < 3.2 on Snow Leopard), then upgrade Xcode, then continue trying to install zlib without first cleaning zlib. -- Ticket URL: <http://trac.macports.org/ticket/24599#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#24599: zlib destroot fails with cp usage message when Xcode is too old --------------------------------------+------------------------------------- Reporter: trichard@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: zlib | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: reopened => closed * resolution: => fixed Comment: Fixed in r68569 by checking that a valid Xcode version is installed. MacPorts 1.9.0 will also fix this problem because it has such checks built in for all ports. -- Ticket URL: <http://trac.macports.org/ticket/24599#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts