我刚升级到约塞米蒂。我使用的是Apache2.2,但升级包含2.4。在做了一些配置噩梦之后,我终于用Homebrew重新安装了2.4。我已经把它配置好了。但是,当我对php使用旧的httpd.conf设置时,会出现以下错误:
符号未找到: /usr/local/opt/php55/libexec/apache2/libphp5.so\n引用自: /usr/local/Cellar/httpd24/2.4.10/bin/httpd\n中的/usr/local/opt/php55/libexec/apache2/libphp5.so中的_unixd_config\n
运行brew upgrade php55时,更新icu4c时会出现以下错误:
==> Upgrading icu4c
==> Downloading http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz
Already downloaded: /Library/Caches/Homebrew/icu4c-54.1.tgz
Error: SHA1 mismatch
Expected: 8c752490bbf31cea26e20246430cee67d48abe34
Actual: d625398a0d5cb34a0b5b2c4ab577e3b1957fb460
Archive: /Library/Caches/Homebrew/icu4c-54.1.tgz
To retry an incomplete download, remove the file above.删除该文件没有帮助。我运行了brew doctor,它给出了有关php的如下内容:
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/usr/local/opt/php55/bin/php-config不知道该怎么做。我尝试过安装php56,但它需要同样的依赖项。这似乎是一个icu4c问题,但对我来说,这是一个不受约束的领域。谢谢
发布于 2014-12-02 17:32:19
此错误与您安装的Xcode或GCC、LLVM或Clang的版本无关。如果您查看所讨论的文件,您可以看到正在发生的事情。
[uxp@localhost]% brew install icu4c
==> Downloading http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz
######################################################################## 100.0%
Error: SHA1 mismatch
Expected: 8c752490bbf31cea26e20246430cee67d48abe34
Actual: a2fd3379ea944f6b2f97fb0f79b7b85cb3e14d0b
Archive: /Library/Caches/Homebrew/icu4c-54.1.tgz
To retry an incomplete download, remove the file above.
[uxp@localhost]% file /Library/Caches/Homebrew/icu4c-54.1.tgz
/Library/Caches/Homebrew/icu4c-54.1.tgz: HTML document text
[uxp@localhost]% cat /Library/Caches/Homebrew/icu4c-54.1.tgz
<html><head>
<title>Testing</title>
<!-- <script src="/js/jquery.com/jquery-1.11.0.min.js"></script> -->
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//sourceforge.net/js/mirrors.js"></script>
<script src="/js/sf.js"></script>
<script>
var DR_loc = DR_parse_hash_url();
if (DR_loc) {
DR_sf_main(DR_loc);
} else {
window.location.href = 'http://sourceforge.net/home.html';
}
</script>
</head><body>
<noscript>
We're sorry -- the Sourceforge site is currently in Disaster Recovery mode, and currently requires
the use of javascript to function. Please check back later.
</noscript>
</body></html>所以,服务器出了点问题,而不是你的机器。最简单的方法是联系他们并让他们处理(这是SourceForge端的东西),但这并不能帮助您安装任何依赖于ICU的东西。环顾互联网,我们正在寻找的tar档案镜像站点上有一些副本,所以只需手动下载并移动到Homebrew目录就足够了。
[uxp@localhost]% curl http://dbg.download.sourcemage.org/mirror/icu4c-54_1-src.tgz -o /Library/Caches/Homebrew/icu4c-54.1.tgz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 24.3M 100 24.3M 0 0 3669k 0 0:00:06 0:00:06 --:--:-- 5745k
[uxp@localhost]% brew install icu4c
==> Downloading http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz
Already downloaded: /Library/Caches/Homebrew/icu4c-54.1.tgz
==> ./configure --prefix=/usr/local/Cellar/icu4c/54.1 --disable-samples --disable-tests --enable-static --with-library-bits=64
==> make
==> make install
==> Caveats
...
==> Summary
/usr/local/Cellar/icu4c/54.1: 242 files, 65M, built in 74 seconds老实说,我不知道这是否会解决Apache和PHP的问题。如果仍然存在内置httpd和php的问题,我会删除您通过Homebrew安装的任何版本,包括它们在/usr/local/etc中的配置文件,升级icu4c,然后系统地开始安装ApachePHP5.x,然后再加上您需要的任何php5x-*模块。
我遇到了同样的国产失败,试图重新安装CouchDB,这与您最初的问题完全不同。
https://stackoverflow.com/questions/26447535
复制相似问题