Opened 13 years ago

Closed 13 years ago

#30734 closed defect (invalid)

Unable to install anything because /usr/bin/bzip2 is empty

Reported by: wilburg@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.0.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

My machine is a 2007 MacMini with a 1.66 GHx Intel Core Duo running OS-X 10.6.8. I have done a clean install of XCode 3.2.6 and MacPorts 2.0.1. I have been totally unable to get anything to install with MacPorts. For example, the command:

"sudo port install ncftp" yields the following:

sh-3.2# sudo port install ncftp
--->  Computing dependencies for ncftp
--->  Dependencies to be installed: ncurses ncursesw
--->  Activating ncursesw @5.8_0
Error: Target org.macports.activate returned: Image error: Source file /tmp/mpextractOFTEgmPa/opt/local/share/doc/ncursesw/README.txt does not appear to exist (cannot lstat it).  Unable to activate port ncursesw.
Error: Failed to install ncursesw
Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/main.log
Error: The following dependencies were not installed: ncurses ncursesw
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (14)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: wilburg@… removed
Component: portsbase
Description: modified (diff)
Keywords: snowleopard added; Snow Leopard removed
Port: All I have attempted removed

Please remember to use WikiFormatting and to preview before submitting. As reporter you do not need to Cc yourself.

Have you tried cleaning and trying again? For example:

sudo port clean ncursesw
sudo port install ncursesw

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: snowleopard removed
Summary: Unable to install anything on Snow LeopardUnable to install anything

comment:3 in reply to:  2 Changed 13 years ago by wilburg@…

Replying to ryandesign@…:

Am actually starting with no ports installed.

comment:4 Changed 13 years ago by jmroot (Joshua Root)

Not according to the output you posted. Uninstall and clean ncursesw, try again, and then attach the complete log.

comment:5 Changed 13 years ago by wilburg@…

After I installed XCode and macports I attempted an install of ncftp, with failure at installing ncursesw. When that failed, I tried another install and the screen I sent you was from that attempt.

Here's the output from another attempt, preceded by uninstall/clean of any remnants of ncursesw:

mini,:~ wilbur$ sudo port
MacPorts 2.0.1
Entering interactive mode... ("help" for help, "quit" to quit)
[Users/wilbur] > uninstall ncurses
[Users/wilbur] > clean ncurses
--->  Cleaning ncurses
[Users/wilbur] > uninstall ncursesw
--->  Uninstalling ncursesw @5.8_0
--->  Cleaning ncursesw
[Users/wilbur] > uninstall ncftp
[Users/wilbur] > install ncftp
--->  Computing dependencies for ncftp
--->  Dependencies to be installed: ncurses ncursesw
--->  Installing ncursesw @5.8_0
Error: Target org.macports.install returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/work/destroot
Error: Failed to install ncursesw
Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/main.log
Error: The following dependencies were not installed: ncurses ncursesw
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

And, now here is the log file:

version:1
:debug:clean changing euid/egid - current euid: 0 - current egid: 0
:debug:clean egid changed to: 502
:debug:clean euid changed to: 507
:debug:main Executing org.macports.main (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.build (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.destroot (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:install install phase started at Fri Aug 12 20:37:43 MDT 2011
:notice:install --->  Installing ncursesw @5.8_0
:debug:install Can't run install on this port without elevated privileges. Escalating privileges back to root.
:debug:install euid changed to: 0. egid changed to: 0.
:debug:install Executing org.macports.install (ncursesw)
:debug:install Using /usr/bin/tar
:debug:install Using /usr/bin/bzip2
:error:install Target org.macports.install returned: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/work/destroot
:debug:install Backtrace: no destroot found at: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/work/destroot
    while executing
"create_archive $location $portarchivetype"
    (procedure "portinstall::install_main" line 15)
    invoked from within
"$procedure $targetname"
:info:install Warning: the following items did not execute (for ncursesw): org.macports.activate org.macports.install
:error:install Failed to install ncursesw
:notice:install Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/main.log

I have successfully installed XCode and macports on a Lion machine and am able to install everything I need on that machine without issue.

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

It doesn't look like you actually cleaned ncursesw.

comment:7 Changed 13 years ago by wilburg@…

Here is the first four lines of the first code block of my last submission:

[Users/wilbur] > uninstall ncurses
[Users/wilbur] > clean ncurses
--->  Cleaning ncurses
[Users/wilbur] > uninstall ncursesw
--->  Uninstalling ncursesw @5.8_0
--->  Cleaning ncursesw

Notice that they show that I uninstalled and cleaned nurses, and then uninsalled ncursesw which reported that both uninstall and clean of that port took place.

comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

There are different types of clean. Please actually run sudo port clean ncursesw to do the type of clean that's needed in this case.

comment:9 Changed 13 years ago by wilburg@…

I have already done a manual clean as well, with the same results, but here is the same result with the results of your instructions shown:

First the terminal window output:

mini,:~ wilbur$ sudo port uninstall ncursesw
mini,:~ wilbur$ sudo port clean ncursesw
--->  Cleaning ncursesw
mini,:~ wilbur$ sudo port uninstall ncurses
mini,:~ wilbur$ sudo port uninstall ncurses
mini,:~ wilbur$ sudo port clean ncurses
--->  Cleaning ncurses
mini,:~ wilbur$ sudo port install ncftp
--->  Computing dependencies for ncftp
--->  Dependencies to be installed: ncurses ncursesw
--->  Fetching archive for ncursesw
--->  Attempting to fetch ncursesw-5.8_0.darwin_10.noarch.tbz2 from http://packages.macports.org/ncursesw
--->  Attempting to fetch ncursesw-5.8_0.darwin_10.noarch.tbz2.rmd160 from http://packages.macports.org/ncursesw
--->  Installing ncursesw @5.8_0
--->  Activating ncursesw @5.8_0
Error: Target org.macports.activate returned: Image error: Source file /tmp/mpextractfeLAdVkC/opt/local/share/doc/ncursesw/README.txt does not appear to exist (cannot lstat it).  Unable to activate port ncursesw.
Error: Failed to install ncursesw
Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/main.log
Error: The following dependencies were not installed: ncurses ncursesw
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Next, the log file output:

version:1
:debug:main Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ncursesw/work
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 502
:debug:main euid changed to: 507
:debug:main Executing org.macports.main (ncursesw)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:archivefetch archivefetch phase started at Fri Aug 12 23:10:50 MDT 2011
:msg:archivefetch --->  Fetching archive for ncursesw
:debug:archivefetch Executing org.macports.archivefetch (ncursesw)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/software/ncursesw to macports
:debug:archivefetch euid/egid changed to: 507/502
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 507/502
:info:archivefetch --->  ncursesw-5.8_0.darwin_10.noarch.tbz2 doesn't seem to exist in /opt/local/var/macports/software/ncursesw
:msg:archivefetch --->  Attempting to fetch ncursesw-5.8_0.darwin_10.noarch.tbz2 from http://packages.macports.org/ncursesw
:msg:archivefetch --->  Attempting to fetch ncursesw-5.8_0.darwin_10.noarch.tbz2.rmd160 from http://packages.macports.org/ncursesw
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.fetch (ncursesw)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.checksum (ncursesw)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.extract (ncursesw)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.patch (ncursesw)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.configure (ncursesw)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.build (ncursesw)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:archivefetch Skipping completed org.macports.destroot (ncursesw)
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:install install phase started at Fri Aug 12 23:10:52 MDT 2011
:notice:install --->  Installing ncursesw @5.8_0
:debug:install Can't run install on this port without elevated privileges. Escalating privileges back to root.
:debug:install euid changed to: 0. egid changed to: 0.
:debug:install Executing org.macports.install (ncursesw)
:debug:activate activate phase started at Fri Aug 12 23:10:53 MDT 2011
:debug:activate Executing org.macports.activate (ncursesw)
:msg:activate --->  Activating ncursesw @5.8_0
:debug:activate Using /usr/bin/tar
:debug:activate Using /usr/bin/bzip2
:error:activate Target org.macports.activate returned: Image error: Source file /tmp/mpextractfeLAdVkC/opt/local/share/doc/ncursesw/README.txt does not appear to exist (cannot lstat it).  Unable to activate port ncursesw.
:debug:activate Backtrace: Image error: Source file /tmp/mpextractfeLAdVkC/opt/local/share/doc/ncursesw/README.txt does not appear to exist (cannot lstat it).  Unable to activate port ncursesw.
    invoked from within
"throw registry::image-error "Image error: Source file $srcfile does not appear to exist (cannot lstat it).  Unable to activate port [$port name].""
    ("foreach" body line 8)
    invoked from within
"foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to install links, we test if we can lst..."
    invoked from within
"registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be able to instal..."
    invoked from within
"try {
        registry::write {
            foreach file $imagefiles {
                set srcfile "${extracted_dir}${file}"

                # To be ..."
    (procedure "_activate_contents" line 21)
    invoked from within
"_activate_contents $requested"
    (procedure "portimage::activate" line 57)
    invoked from within
"registry_activate $subport $version $revision $portvariants [array get user_options]"
    (procedure "portactivate::activate_main" line 4)
    invoked from within
"$procedure $targetname"
:info:activate Warning: the following items did not execute (for ncursesw): org.macports.activate
:error:activate Failed to install ncursesw
:notice:activate Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncursesw/ncursesw/main.log

comment:10 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, I see. Do /usr/bin/tar and /usr/bin/bzip2 function normally when used separately?

comment:11 Changed 13 years ago by wilburg@…

bzip2 is a zero length file, as are many of the files in /usr/bin. WTF?? I'm getting ready to reinstall the OS from scratch.

Just for grins, here's a list of those files in case you run into this again:

-rwxr-xr-x   1 root    wheel           0 Mar 30 18:32 2to3
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 alias
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 bg
-rwxr-xr-x   3 root    wheel           0 Mar 30 18:32 bunzip2
-rwxr-xr-x   3 root    wheel           0 Mar 30 18:32 bzcat
-rwxr-xr-x   3 root    wheel           0 Mar 30 18:32 bzip2old
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 c2ph
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 cal
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 cd
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 command
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 compress
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 corelist
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 cpan
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 cpan2dist
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 cpanp
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 cpanp-run-perl
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 crc32
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 dbilogstrip
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 dbiprof
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 dbiproxy
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 dprofpp
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 easy_install
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 egrep
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 enc2xs
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 fc
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 fg
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 fgrep
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 find2perl
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 getopts
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 gluedialect
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 gluedoc
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 glueedit
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 gluemac
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 gluescriptadds
-r-xr-xr-x   3 root    wheel           0 Mar 30 18:33 groups
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 gzip
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 h2ph
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 h2xs
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 hash
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 hexdump
-r-xr-xr-x   3 root    wheel           0 Mar 30 18:33 id
-rwxr-xr-x   4 root    wheel           0 Mar 30 18:33 idle
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 instmodsh
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 ipcount
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 iptab
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 jobs
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 libnetcfg
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 lwp-download
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 lwp-mirror
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 lwp-request
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 lwp-rget
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 macerror
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 mail
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 mailx
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 man
-rwxr-xr-x   1 root    wheel           0 Mar 30 18:33 more
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 ncal
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 od
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 perlbug
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 perlcc
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 perldoc
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 perlivp
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 perlthanks
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 piconv
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 pl2pm
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 pod2html
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 pod2latex
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 pod2man
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 pod2readme
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 pod2text
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 pod2usage
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 podchecker
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 podselect
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 psed
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 pstruct
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 ptar
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 ptardiff
-rwxr-xr-x   4 root    wheel           0 Mar 30 18:33 pydoc
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 python
-rwxr-xr-x   4 root    wheel           0 Mar 30 18:33 python-config
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 pythonw
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 read
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 s2p
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 shasum
-rwxr-xr-x   4 root    wheel           0 Mar 30 18:33 smtpd.py
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 spfd
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 spfquery
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 splain
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 type
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 ulimit
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 umask
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 unalias
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 uncompress
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 unzip
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 uptime
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 w
-r-xr-xr-x  15 root    wheel           0 Mar 30 18:33 wait
-r-xr-xr-x   3 root    wheel           0 Mar 30 18:33 whoami
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 wxperl_demo.pl
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 wxperl_overload
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 wxperl_xspp
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 xattr
-r-xr-xr-x   2 root    wheel           0 Mar 30 18:33 xcman
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 xgettext.pl
-rwxr-xr-x  24 root    wheel           0 Mar 30 18:33 xpath
-rwxr-xr-x  35 root    wheel           0 Mar 30 18:33 xsubpp
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 zcat
-rwxr-xr-x   2 root    wheel           0 Mar 30 18:33 zipinfo

comment:12 in reply to:  11 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to wilburg@…:

bzip2 is a zero length file, as are many of the files in /usr/bin. WTF??

That would be a problem! :)

I'm getting ready to reinstall the OS from scratch.

Good idea.

comment:13 Changed 13 years ago by wilburg@…

Did a backup, and reformatted the HD.

Installed Snow Leopard on the blank disk.

Installed Xcode 3.2.6 and MacPorts 2.0.1

Migrated user accounts and applications from backup.

Everything works!

Thanks for help.

comment:14 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Summary: Unable to install anythingUnable to install anything because /usr/bin/bzip2 is empty

Glad you got it working.

Note: See TracTickets for help on using tickets.