尝试安装较新版本的 subversion 时,我收到“apr”安装错误。当我查看日志文件时,它显示:
:debug:main Using compiler 'Mac OS X gcc 4.0'
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-O2 -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.5' ac_cv_path_SED='sed' CXX='/usr/bin/g++-4.0' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr/work/.CC_PRINT_OPTIONS' F90FLAGS='-O2 -m32' LDFLAGS='-L/opt/local/lib -arch i386' FCFLAGS='-O2 -m32' lt_ECHO='/bin/echo' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' FFLAGS='-O2 -m32' OBJCFLAGS='-O2 -arch i386' CC_PRINT_OPTIONS='YES' ac_cv_prog_AWK='awk' CC='/usr/bin/gcc-4.0'
等等,但我的 gcc 版本是
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)
这是问题吗?有人知道我该如何解决这个问题吗?
答案1
一个简单的
sudo port clean apr
似乎奏效了。我不需要搬出任何东西/usr/local/
(这似乎是一个相当激进的要求!)
http://trac.macports.org/ticket/26809