Macports: Error: Failed to configure librsvg: configure failure: command execution failed

root's picture

Got the following error when attempting to upgrade outdated via port upgrade outdated:

--->  Fetching distfiles for librsvg
--->  librsvg-2.44.13.tar.xz does not exist in /opt/local/var/macports/distfiles/librsvg
--->  Attempting to fetch librsvg-2.44.13.tar.xz from https://distfiles.macports.org/librsvg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.0M  100 12.0M    0     0  1316k      0  0:00:09  0:00:09 --:--:-- 1651k
[...]
Error: Failed to configure librsvg, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_graphics_librsvg/librsvg/work/librsvg-2.44.13/config.log
Error: Failed to configure librsvg: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_graphics_librsvg/librsvg/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
--->  Some of the ports you installed have notes:
  coreutils has the following notes:
    The tools provided by GNU coreutils are prefixed with the character 'g' by default to distinguish them from the BSD commands.
    For example, cp becomes gcp and ls becomes gls.
    
    If you want to use the GNU tools by default, add this directory to the front of your PATH environment variable:
        /opt/local/libexec/gnubin/
  dbus has the following notes:
    Startup items (named 'dbus-system, dbus-session') have been generated that will aid in starting dbus with launchd. They are disabled by default. Execute the following command to start them, and to
    cause them to launch at startup:
    
        sudo port load dbus
  libpsl has the following notes:
    libpsl API documentation is provided by the port 'libpsl-docs'.

In past similar situation, I just uninstalled the package, did a cleanup and installed it back. It turns out, it worked in this case also. Yey! ;)
So what I did was (ffmpeg was included because it was removed during the uninstallation of librsvg):
1. sudo port -v uninstall librsvg
2. sudo port -v clean librsvg ffmpeg
3. sudo port -v install librsvg ffmpeg

Extended log:

fmbpro:~ florian$ sudo port -v uninstall librsvg                                      
The following versions of librsvg are currently installed:
 1) librsvg @2.42.2_0+viewer
 2) librsvg @2.42.2_2+viewer (active)
Enter option(s) [1-2/all]: all
--->  Uninstalling librsvg @2.42.2_0+viewer
Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents.
The following ports will break:
 ffmpeg @3.4.2_0
 adwaita-icon-theme @3.28.0_0
 ffmpeg @4.0_1
 ffmpeg @4.0_1
 ffmpeg @4.0.2_1
Continue? [y/N]: y
Warning: Uninstall forced.  Proceeding despite dependencies.
--->  Deactivating librsvg @2.42.2_2+viewer
--->  Cleaning librsvg
--->  Removing work directory for librsvg
--->  Uninstalling librsvg @2.42.2_2+viewer
fmbpro:~ florian$ sudo port -v clean librsvg ffmpeg
--->  Cleaning librsvg
--->  Removing work directory for librsvg
--->  Cleaning ffmpeg
--->  Removing work directory for ffmpeg
fmbpro:~ florian$ sudo port -v install librsvg ffmpeg
--->  Computing dependencies for librsvg.
--->  Fetching archive for librsvg
--->  librsvg-2.44.13_0.darwin_17.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch librsvg-2.44.13_0.darwin_17.x86_64.tbz2 from https://packages.macports.org/librsvg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 27.3M  100 27.3M    0     0  2526k      0  0:00:11  0:00:11 --:--:-- 2361k
--->  Attempting to fetch librsvg-2.44.13_0.darwin_17.x86_64.tbz2.rmd160 from https://packages.macports.org/librsvg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   512  100   512    0     0  15900      0 --:--:-- --:--:-- --:--:-- 16000
--->  Installing librsvg @2.44.13_0
--->  Activating librsvg @2.44.13_0
[...]
--->  Cleaning ffmpeg
--->  Removing work directory for ffmpeg
--->  Updating database of binaries

Now I I can continue with my ports upgrade ;)

Thou shalt not steal!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always stealing and you should be ashamed of yourself! Have at least the decency to create your own text and comments and run the commands on your own servers and provide your output, not what I did!

Or at least link back to this website.

Recent content