首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从Windows转到centOS时,Composer无法工作

从Windows转到centOS时,Composer无法工作
EN

Stack Overflow用户
提问于 2014-01-08 23:03:18
回答 1查看 238关注 0票数 0

我在Windows (GIT)中使用Laravel 4开发了一个项目。

我有一个运行centOS的服务器。因此,我将存储库克隆到此服务器。因为它只有512M的服务器,所以如果我运行"composer update“,它会杀死这个进程,因为它消耗了所有的内存。您可能会得到过时的依赖项。运行update来更新它们。无法将您的需求解析为一组可安装的程序包。

代码语言:javascript
复制
Problem 1
- Installation request for patchwork/utf8 v1.1.17 -> satisfiable by patchwork/utf8[v1.1.17].
- patchwork/utf8 v1.1.17 requires lib-pcre >=7.9 -> the requested linked library pcre has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 2
- patchwork/utf8 v1.1.17 requires lib-pcre >=7.9 -> the requested linked library pcre has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- laravel/framework 4.0.x-dev requires patchwork/utf8 1.1.* -> satisfiable by patchwork/utf8[v1.1.17].
- Installation request for laravel/framework 4.0.x-dev -> satisfiable by laravel/framework[4.0.x-dev].

我修复了这个问题,在一台基于linux的计算机上拉取repo,更新composer并重新推送它。这样,我在服务器上就不会有问题了。

我想知道是否有解决方案,这样我就可以继续使用Windows进行开发。

EN

回答 1

Stack Overflow用户

发布于 2014-01-08 23:11:03

你必须在你的CentOS上更新库pcre。这条消息告诉您:

代码语言:javascript
复制
requires lib-pcre >=7.9

这是系统库,不是作曲库。PCRE现在是8.*,patchwork至少需要7.9,并且您的系统必须有以前的版本。

看看这个页面,看看关于它的一些信息:http://rpm.pbone.net/index.php3/stat/4/idpl/17932519/dir/centos_other/com/pcre-8.12-1.x86_64.rpm.html

我不是CentOS专家,但我认为您可以通过执行以下操作来更新它:

代码语言:javascript
复制
yum update

代码语言:javascript
复制
yum update <package name>

如果你不知道正确的名字

代码语言:javascript
复制
yum list installed
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20999187

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档