Opened 12 years ago

Closed 12 years ago

#36024 closed defect (invalid)

gettext: build fails because grep is installed which needs gettext

Reported by: gkshenaut Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: gettext

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

OS/X 10.8.1
After a selfupdate/upgrade-outdated, everything stops at gettext. Here are the messages (I'm attaching the log):

% sudo port install gettext                                                                                                     
--->  Computing dependencies for gettext
--->  Building gettext
Error: org.macports.build for port gettext returned: command execution failed
Please see the log file for port gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gettext failed

Attachments (1)

main.log (1.2 MB) - added by gkshenaut 12 years ago.
gettext install after clean

Download all attachments as: .zip

Change History (6)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: gettext added

The lines in the log that say "Skipping completed" show us that this was not a clean attempt, so please "sudo port clean gettext" and try again.

Changed 12 years ago by gkshenaut

Attachment: main.log added

gettext install after clean

comment:2 Changed 12 years ago by gkshenaut

OK. Here is the output:

$ sudo port clean gettext
--->  Cleaning gettext

$ sudo port install gettext                                                                                                     
--->  Computing dependencies for gettext
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.1.1_2.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/gettext
--->  Fetching distfiles for gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
Error: org.macports.build for port gettext returned: command execution failed
Please see the log file for port gettext for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gettext/gettext/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gettext failed

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

Summary: Problem with gettextgettext: build fails because grep is installed which needs gettext

Remember to use WikiFormatting when writing in Trac.

Ok, the relevant part of the log seems to be:

:info:configure dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
:info:configure   Referenced from: /opt/local/bin/grep
:info:configure   Reason: image not found

This is telling us that you have grep installed, and it needs gettext, but gettext's internationalization library (libintl) is either missing or broken. The simplest solution is to deactivate (or uninstall) grep, then clean and try the gettext install again. You can re-activate (or re-install) grep later if desired.

sudo port clean gettext
sudo port -f deactivate grep
sudo port install gettext
sudo port activate grep

comment:4 Changed 12 years ago by gkshenaut

I uninstalled grep and the upgrade-outdated process (including gettext) appears to be running smoothly now. Thank you very much.

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.