首页 文章

从Windows到centOS时,Composer无法正常工作

提问于
浏览
0

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

我有一台运行centOS的服务器 . 所以,我将repo克隆到了这个服务器上 . 因为它只是一个512M的服务器,如果我运行“composer update”它会杀死进程,因为它占用了所有的内存 . 此处推荐的操作是运行“composer install”但是我收到以下错误消息:使用包信息加载composer存储库从锁定文件安装依赖项(包括require-dev)警告:锁定文件不是最新的最新版本composer.json中的更改 . 您可能会过时的依赖项 . 运行更新以更新它们 . 您的要求无法解析为可安装的软件包集 .

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来修复此问题,更新作曲家并重新编写它 . 然后,我在服务器上没有问题 .

我想知道是否有解决方案,以便我可以继续使用Windows进行开发 . 我感谢任何帮助

1 回答

  • 1

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

    requires lib-pcre >=7.9
    

    这是系统库,而不是Composer库 . PCRE现在为8. *,拼凑需要至少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专家,但我认为您可以通过以下方式更新它:

    yum update
    

    要么

    yum update <package name>
    

    如果你不知道正确的名字

    yum list installed
    

相关问题