Opened 9 years ago

Closed 9 years ago

#49886 closed defect (invalid)

ImageMagick install not completing because create archive command execution failed

Reported by: jtran@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: ImageMagick

Description

Summary: ImageMagick @6.9.2-4_0+wmf+x11 Install error - create archive failure

Description: I tried to install php56-imagick @3.1.2_1, and macports tried to upgrade ImageMagick but cannot complete the install process due to a create archive command execution failure. The configure, building steps are ok but the not install step. I tailed the log below for further informations. To me, it seems related to some eval error when executing the create archive command.

Here are details about my system and the log:

# system info
sw_vers -productVersion
10.6.8

# system info details
system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: Mac OS X 10.6.8 (10K549)
      Kernel Version: Darwin 10.8.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: bioinfo
      User Name: Tran Joseph (josse)
      Secure Virtual Memory: Enabled
      64-bit Kernel and Extensions: Yes
      Time since boot: 7 days 7 minutes

# macports info
 sudo port selfupdate

"""
# stdout
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.3.4 installed,
MacPorts base version 2.3.4 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

"""

# clean first
sudo port clean ImageMagick
Password:
--->  Cleaning ImageMagick

# command executed
sudo port install php56-imagick

"""
# stdout
--->  Computing dependencies for ImageMagick
--->  Fetching archive for ImageMagick
--->  Attempting to fetch ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/ImageMagick
--->  Attempting to fetch ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ImageMagick
--->  Attempting to fetch ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/ImageMagick
--->  Fetching distfiles for ImageMagick
--->  Verifying checksums for ImageMagick
--->  Extracting ImageMagick
--->  Configuring ImageMagick
--->  Building ImageMagick
--->  Staging ImageMagick into destroot
--->  Installing ImageMagick @6.9.2-4_0+wmf+x11
Error: org.macports.install for port ImageMagick returned: command execution failed
Please see the log file for port ImageMagick for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/ImageMagick/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade ImageMagick failed

"""

# tail log
tail -30 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/ImageMagick/main.log

"""
# stdout                                                                                                                        
:debug:install Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/ImageMagick/work/destroot" && /usr/bin/tar -cvf - . | /usr/bin/gzip -c9 > /opt/local/var/macports/software/imagemagick/ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tgz'
:debug:install Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/ImageMagick/work/destroot" && /usr/bin/tar -cvf - . | /usr/bin/gzip -c9 > /opt/local/var/macports/software/imagemagick/ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tgz 
:info:install sh: /opt/local/var/macports/software/imagemagick/ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tgz: Operation not permitted
:info:install a .
:info:install a ./+COMMENT
:info:install a ./+CONTENTStar: Write error: Broken pipe
:info:install Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/ImageMagick/work/destroot" && /usr/bin/tar -cvf - . | /usr/bin/gzip -c9 > /opt/local/var/macports/software/imagemagick/ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tgz 
:info:install Exit code: 1
:error:install org.macports.install for port ImageMagick returned: command execution failed
:debug:install Error code: CHILDSTATUS 85317 1
:debug:install Backtrace: command execution failed
    while executing
"system $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"    invoked from within
"command_exec archive"    (procedure "create_archive" line 210)    invoked from within
"create_archive $location $portarchivetype"    (procedure "portinstall::install_main" line 22)    invoked from within
"portinstall::install_main org.macports.install"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:install Warning: targets not executed for ImageMagick: org.macports.install:notice:install Please see the log file for port ImageMagick for details:    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/ImageMagick/main.log

"""

Change History (3)

comment:1 in reply to:  description ; Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: "Snow Leopard" removed
Owner: changed from macports-tickets@… to ryandesign@…

Replying to jtran@…:

:debug:install Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_ImageMagick/ImageMagick/work/destroot" && /usr/bin/tar -cvf - . | /usr/bin/gzip -c9 > /opt/local/var/macports/software/imagemagick/ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tgz 
:info:install sh: /opt/local/var/macports/software/imagemagick/ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tgz: Operation not permitted

Sounds like the permissions on the directory /opt/local/var/macports/software/imagemagick may be wrong. It's also curious that the directory is being called "imagemagick" when it should be named after the port, which is "ImageMagick". I would clean the affected port ("sudo port clean ImageMagick"), uninstall any other versions of ImageMagick that may still be installed ("sudo port uninstall installed and name:^ImageMagick$"), then, if the directory /opt/local/var/macports/software/imagemagick still exists, manually delete it, then try again. MacPorts should then recreate the directory with the correct capitalization and the correct permissions.

comment:2 in reply to:  1 Changed 9 years ago by jtran@…

Thank you Ryan! You were right, I followed the steps you mentioned, and the install completes successfully.

Here is the log:

# - uninstall previous ImageMagick install
port installed | grep ImageMagick
  ImageMagick @6.8.9-0_0+wmf+x11 (active)

sudo port uninstall ImageMagick @6.8.9-0_0+wmf+x11

"""
--->  Unable to uninstall ImageMagick @6.8.9-0_0+wmf+x11, the following ports depend on it:
--->    rb-rmagick @2.9.0_0
--->    rb-rmagick @2.13.2_1
Error: org.macports.uninstall for port ImageMagick returned: Please uninstall the ports that depend on ImageMagick first.
Please see the log file for port ImageMagick for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_ImageMagick-6.8.9-0_0_009b641f60a6e7e06c1743dc0f6da365eb89949e1c75600c8b96a4a5b5c119da-7265/ImageMagick/main.log
Warning: Failed to execute portfile from registry for ImageMagick @6.8.9-0_0+wmf+x11
--->  Unable to uninstall ImageMagick @6.8.9-0_0+wmf+x11, the following ports depend on it:
--->    rb-rmagick @2.9.0_0
--->    rb-rmagick @2.13.2_1
Error: port uninstall failed: Please uninstall the ports that depend on ImageMagick first.

"""

## uninstall first ports depending on ImageMagick
sudo port uninstall rb-rmagick @2.9.0_0
sudo port uninstall rb-rmagick @2.13.2_1

## uninstall ImageMagick
sudo port uninstall ImageMagick @6.8.9-0_0+wmf+x11

# - clean ImageMagick port
sudo port clean ImageMagick   

# - remove the directory /opt/local/var/macports/software/imagemagick
ls -la /opt/local/var/macports/software/imagemagick

"""
total 18720
drwxrwxrwx    3 root   admin      102  3 déc 11:38 .
drwxr-xr-x  666 root   admin    22644  3 déc 11:37 ..
-rw-r--r--    1 josse  admin  9580622  3 déc 10:06 ImageMagick-6.9.2-4_0+wmf+x11.darwin_10.x86_64.tgz

"""

sudo rm -rf /opt/local/var/macports/software/imagemagick

# - reinstall php56-imagick/ImageMagick
sudo port install php56-imagick

"""
sudo port install php56-imagick
--->  Computing dependencies for php56-imagick
--->  Dependencies to be installed: ImageMagick
--->  Fetching archive for ImageMagick
--->  Attempting to fetch ImageMagick-6.9.2-4_0+x11.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/ImageMagick
--->  Attempting to fetch ImageMagick-6.9.2-4_0+x11.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/ImageMagick
--->  Attempting to fetch ImageMagick-6.9.2-4_0+x11.darwin_10.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/ImageMagick
--->  Fetching distfiles for ImageMagick
--->  Verifying checksums for ImageMagick
--->  Extracting ImageMagick
--->  Configuring ImageMagick
--->  Building ImageMagick
--->  Staging ImageMagick into destroot
--->  Installing ImageMagick @6.9.2-4_0+x11
--->  Activating ImageMagick @6.9.2-4_0+x11
--->  Cleaning ImageMagick
--->  Fetching archive for php56-imagick
--->  Attempting to fetch php56-imagick-3.1.2_1.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/php56-imagick
--->  Attempting to fetch php56-imagick-3.1.2_1.darwin_10.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/php56-imagick
--->  Attempting to fetch php56-imagick-3.1.2_1.darwin_10.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/php56-imagick
--->  Fetching distfiles for php56-imagick
--->  Verifying checksums for php56-imagick
--->  Extracting php56-imagick
--->  Configuring php56-imagick
--->  Building php56-imagick
--->  Staging php56-imagick into destroot
--->  Installing php56-imagick @3.1.2_1
--->  Activating php56-imagick @3.1.2_1
--->  Cleaning php56-imagick
--->  Updating database of binaries
--->  Scanning binaries for linking errors

"""

# ImageMagick archive folder
cd /opt/local/var/macports/software/ImageMagick/
ls -la
total 18688
drwxr-xr-x    3 root  admin      102  3 déc 11:43 .
drwxr-xr-x  667 root  admin    22678  3 déc 11:43 ..
-rw-r--r--    1 root  admin  9565671  3 déc 11:43 ImageMagick-6.9.2-4_0+x11.darwin_10.x86_64.tgz

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Perhaps you forgot to use "sudo" the last time you installed ImageMagick; I see your old ImageMagick archive was not owned by root. In any case, I'm glad you got it working.

Note: See TracTickets for help on using tickets.