<div>Hi,everybody!</div><div>&nbsp; &nbsp; Thank's for Daniel's help.I have manually installed re2c for opam successfully.However,another error comes with the gringo's installation.Just as before,I have tried to clean and reinstall the port.But it doesn't work.What's the problem?</div><div>The terminal and the log:</div><div><b>Terminal:</b></div><div><div>$ sudo port install opam</div><div>---&gt; &nbsp;Computing dependencies for opam</div><div>---&gt; &nbsp;Dependencies to be installed: aspcud gringo</div><div>---&gt; &nbsp;Building gringo</div><div>Error: org.macports.build for port gringo returned: command execution failed</div><div>Error: Failed to install gringo</div><div>Please see the log file for port gringo for details:</div><div>&nbsp; &nbsp; /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gringo/gringo/main.log</div><div>Error: The following dependencies were not installed: aspcud gringo</div><div>To report a bug, follow the instructions in the guide:</div><div>&nbsp; &nbsp; http://guide.macports.org/#project.tickets</div><div>Error: Processing of port opam failed</div></div><div><br></div><div><br></div><div><b>The log:</b></div><div><div>version:1</div><div>:debug:main changing euid/egid - current euid: 0 - current egid: 0</div><div>:debug:main egid changed to: 501</div><div>:debug:main euid changed to: 502</div><div>:debug:main Executing org.macports.main (gringo)</div><div>:debug:main Privilege de-escalation not attempted as not running as root.</div><div>:debug:main Skipping completed org.macports.archivefetch (gringo)</div><div>:debug:main Privilege de-escalation not attempted as not running as root.</div><div>:debug:main Skipping completed org.macports.fetch (gringo)</div><div>:debug:main Privilege de-escalation not attempted as not running as root.</div><div>:debug:main Skipping completed org.macports.checksum (gringo)</div><div>:debug:main Privilege de-escalation not attempted as not running as root.</div><div>:debug:main Skipping completed org.macports.extract (gringo)</div><div>:debug:main Privilege de-escalation not attempted as not running as root.</div><div>:debug:main Skipping completed org.macports.patch (gringo)</div><div>:debug:main Privilege de-escalation not attempted as not running as root.</div><div>:debug:main Skipping completed org.macports.configure (gringo)</div><div>:debug:main Privilege de-escalation not attempted as not running as root.</div><div>:debug:build build phase started at Sat Sep 19 08:43:20 CST 2015</div><div>:notice:build ---&gt; &nbsp;Building gringo</div><div>:debug:build Executing org.macports.build (gringo)</div><div>:debug:build port disallows a parallel build</div><div>:debug:build Environment:&nbsp;</div><div>CC_PRINT_OPTIONS='YES'</div><div>CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gringo/gringo/work/.CC_PRINT_OPTIONS'</div><div>CPATH='/opt/local/include'</div><div>LIBRARY_PATH='/opt/local/lib'</div><div>MACOSX_DEPLOYMENT_TARGET='10.8'</div><div>:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gringo/gringo/work/gringo-4.4.0-source" &amp;&amp; scons --build-dir=release gringo clingo'</div><div>:debug:build Executing command line: &nbsp;cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gringo/gringo/work/gringo-4.4.0-source" &amp;&amp; scons --build-dir=release gringo clingo&nbsp;</div><div>:info:build scons: Reading SConscript files ...</div><div>:info:build Checking for bison 2.5... (cached) yes</div><div>:info:build Checking for re2c... (cached) yes</div><div>:info:build Checking whether the C++ compiler works... no</div><div>:info:build error: no usable C++ compiler found</div><div>:info:build Command failed: &nbsp;cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gringo/gringo/work/gringo-4.4.0-source" &amp;&amp; scons --build-dir=release gringo clingo&nbsp;</div><div>:info:build Exit code: 1</div><div>:error:build org.macports.build for port gringo returned: command execution failed</div><div>:debug:build Error code: CHILDSTATUS 2733 1</div><div>:debug:build Backtrace: command execution failed</div><div>&nbsp; &nbsp; while executing</div><div>"system -nice 0 $fullcmdstring"</div><div>&nbsp; &nbsp; ("eval" body line 1)</div><div>&nbsp; &nbsp; invoked from within</div><div>"eval system $notty $nice \$fullcmdstring"</div><div>&nbsp; &nbsp; invoked from within</div><div>"command_exec build"</div><div>&nbsp; &nbsp; (procedure "portbuild::build_main" line 8)</div><div>&nbsp; &nbsp; invoked from within</div><div>"portbuild::build_main org.macports.build"</div><div>&nbsp; &nbsp; ("eval" body line 1)</div><div>&nbsp; &nbsp; invoked from within</div><div>"eval $procedure $targetname"</div><div>:info:build Warning: targets not executed for gringo: org.macports.activate org.macports.build org.macports.destroot org.macports.install</div><div>:error:build Failed to install gringo</div><div>:debug:build Registry error: gringo not registered as installed &amp; active.</div><div>&nbsp; &nbsp; invoked from within</div><div>"registry_active $subport"</div><div>&nbsp; &nbsp; invoked from within</div><div>"$workername eval registry_active \$subport"</div><div>:notice:build Please see the log file for port gringo for details:</div><div>&nbsp; &nbsp; /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_gringo/gringo/main.log</div><div>&nbsp;</div></div>