Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alexbilbie opened this issue Mar 26, 2013 · 3 comments

Comments

@alexbilbie
Copy link

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

@kasperisager
Copy link

Same as what I'm experiencing here #65. Delete anything but the actual libraries to make it work - the Travis CI setup file gets loaded for some reason and causes the error you're seeing.

@bfanger
Copy link
Collaborator

bfanger commented Apr 4, 2013

Fixed in the 0.6 branch, which can be installed with composer:

"require": {
   "zircote/swagger-php": "0.6.*@dev"
}

@bfanger
Copy link
Collaborator

bfanger commented May 4, 2013

Fixed in #72

@bfanger bfanger closed this as completed May 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants