Skip to content

Can't run Swagger because Doctrine complains about missing Xcache/Memcache extensions #67

@alexbilbie

Description

@alexbilbie

Hello,

I appreciate this may be a problem with Doctrine instead of Swagger but whenever I try to run Swagger from the CLI I get the following error:

~/Github/swagger-example » php docs.php                                                                                                                    alexbilbie@macbook-pro
== extension: xcache ==
=> not installed, requires a PHP version < 5 (5.4.9 installed)
== extension: memcache ==
=> Command 'wget http://pecl.php.net/get/memcache-2.2.6.tgz > /dev/null 2>&1' failed !%

All docs.php contains at the moment is the following:

<?php
include 'vendor/autoload.php';

use \Doctrine\Common\Cache\PhpFileCache;

$path = '/Users/alexbilbie/Github/swagger-example';
$cacheDir = 'cache';

$swagger = new Swagger\Swagger($path, null, new PhpFileCache($cacheDir, '.cache'));

Do you have any ideas?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions