Problem installing gcc on Mavericks

Yannis Haralambous yannis.haralambous at
Wed Nov 27 10:54:12 PST 2013


I have the following problem: to install Apertium on my Maverics MacBook Pro, I need to reinstall pcre (so that it becomes UTF-8 compliant). pcre requires gcc42 as dependency. My system already has gcc from Xcode:

Configured with: --prefix=/Applications/ --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.2
Thread model: posix

When I try to install pcre, I get the following error message:

sudo port install pcre
--->  Computing dependencies for pcre
--->  Cleaning pcre
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  Found 617 broken file(s), matching files to ports
--->  Found 7 broken port(s), determining rebuild order
--->  Rebuilding in order
     gcc42 @4.2.3 
     xpm @3.5.7 
     Xft2 @2.1.13 
     xorg-libXmu @1.0.4 
     openmotif @2.3.1-1 
     xorg-libXaw @1.0.5 
     ddd @3.3.11 
--->  Fetching distfiles for gcc42
Error: gcc42 does not build on Leopard or later.
Error: org.macports.fetch for port gcc42 returned: unsupported platform
Please see the log file for port gcc42 for details:
Error: Unable to upgrade port: 1
Error rebuilding gcc42
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 382)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 93)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 4857)

How do I deal with that problem? All I need is pcre so that I can install apertium language pairs...

Thanks in advance


Yannis Haralambous
Directeur d'études
Institut Mines-Télécom, Télécom Bretagne
Département Informatique
Technopôle Brest Iroise
CS 83818, 29238 Brest Cedex 3, France
Tél.: +33 2 29 00 14 27
Fax: +33 2 29 00 12 82
Email: yannis.haralambous at
ICBM address: 48°21'31.57"N 4°34'16.76"W
Twitter: y_haralambous
...the ball I threw while playing in the park
has not yet reached the ground
(Dylan Thomas)

Es gab eine Zeit, wo ich nur ungern über Schubert sprechen,
nur Nächtens den Bäumen und Sternen von ihm vorerzählen mögen.
(Robert Schumann)

More information about the macports-users mailing list