Jeremy1992
V2EX  ›  PHP

安装 flarum 是报的错, php 论坛

  •  
  •   Jeremy1992 · Aug 30, 2015 · 3749 views
    This topic created in 3908 days ago, the information mentioned may be changed or developed.

    http://flarum.org/download/这里有源文件 ,安装环境是 wamp2.5

    报的错是 Warning: require (D:\wamp\www\flarum\flarum/vendor/autoload.php ): failed to open stream: No such file or directory in D:\wamp\www\flarum\flarum\bootstrap.php on line 21

    21 行内容是 :require DIR . '/vendor/autoload.php';

    之前安装另外一个 inews1 也遇到了相同的问题,是否有人遇到过类似问题,指点一下

    10 replies    2015-09-06 20:00:13 +08:00
    haiyang416
        1
    haiyang416  
       Aug 30, 2015
    你用 composer 安装了需要的库了没啊。
    Jeremy1992
        2
    Jeremy1992  
    OP
       Aug 30, 2015
    @haiyang416 没有,(ಥ_ಥ)之前没接触过 composer ,给我几个关键词吧,我去谷歌
    GPU
        3
    GPU  
       Aug 30, 2015
    @Jeremy1992 官方有文档的 .
    run2
        4
    run2  
       Aug 30, 2015
    https://getcomposer.org/doc/00-intro.md
    composer 都不知道还是学习基础吧,或者 dz / phpwind 是你的归宿
    haiyang416
        5
    haiyang416  
       Aug 30, 2015
    @Jeremy1992 现在的 PHP 程序基本都需要依靠 composer 来安装的,在你下载的安装包里有一个 composer.json 文件,里面列出了所有安装程序需要的依赖。
    所以你下载的安装包并不是完整的,你需要先安装 composer , 文档地址楼上已经给出了。
    使用 composer 安装依赖之后它会自动生成 vendor 文件夹,里面就包含你缺少的 autoload.php 等文件。
    baiyemao
        6
    baiyemao  
       Aug 30, 2015
    文件 404.。。。
    invite
        7
    invite  
       Aug 30, 2015
    简单为王.
    LazyZhu
        8
    LazyZhu  
       Sep 1, 2015
    生成最新的 nightly 版 Flarum 程序:
    https://gist.github.com/LazyZhu/9122e6d0f042300adeb4

    直接替换替换, 除了官方的扩展,还另加了两个:
    https://github.com/mtotheikle/flarum-recaptcha
    https://github.com/JakeBooher/flarum-conversations
    LazyZhu
        9
    LazyZhu  
       Sep 1, 2015
    Jeremy1992
        10
    Jeremy1992  
    OP
       Sep 6, 2015
    @LazyZhu 后来自己搞定了,不过还是要谢谢你
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2643 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 16:02 · PVG 00:02 · LAX 09:02 · JFK 12:02
    ♥ Do have faith in what you're doing.