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

Unable to install 2.8.1 under Windows #316

Closed
mlocati opened this issue Sep 5, 2014 · 16 comments
Closed

Unable to install 2.8.1 under Windows #316

mlocati opened this issue Sep 5, 2014 · 16 comments

Comments

@mlocati
Copy link

mlocati commented Sep 5, 2014

Under Windows I have the following error:

C:\MyPath>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing apigen/apigen (v2.8.1)
    Downloading: 100%

  [ErrorException]
  ZipArchive::extractTo(vendor/composer/3ae7c956/apigen-apigen-bca0954/apigen): failed to ope
  n stream: Permission denied

I think that's because the zip archive contains a file named apigen and a folder named ApiGen.
Composer first extracts the file apigen and after tries to create the ApiGen directory (or the viceversa), but since Windows is not case sensitive that's not possible.

@mlocati
Copy link
Author

mlocati commented Sep 5, 2014

PS: version 2.8.0 installs fine.

@TomasVotruba
Copy link
Contributor

I see. I should be ok in master, since source code was moved to src.
I created new tag, so "apigen/apigen": "~2.8" should be enough.

Pls try.

@mlocati
Copy link
Author

mlocati commented Sep 5, 2014

I created new tag, so "apigen/apigen": "~2.8" should be enough.

To be sure it's better "apigen/apigen": "~2.8.2" 😉

BTW, I have the following error now:
- apigen/apigen v2.8.2 requires nette/nette ~2.2 -> no matching package found.

and indeed there's no 2.2 in https://github.com/nette/nette/releases

@mlocati
Copy link
Author

mlocati commented Sep 5, 2014

I took a look at the nette packagist page and there the versions should be fine. I don't know why composer does not find a version compliant with ~2.2... 😕

@TomasVotruba
Copy link
Contributor

To be sure is fine )

2.2 there is.

It's probably maybe by some other package dependency.

I just run:

composer require apigen/apigen:~2.8

in empty dir and everything works fine.

@mlocati
Copy link
Author

mlocati commented Sep 5, 2014

It's probably maybe by some other package dependency.

That was the problem. Thank you.

@TomasVotruba
Copy link
Contributor

Which one, if may I ask? Maybe it could help others.

@mlocati
Copy link
Author

mlocati commented Sep 5, 2014

It was a problem with my package itself 😉 See https://github.com/punic/punic/blob/783f2f7e09a810e4a0fc2feca497ce14329e67f0/composer.json#L44

@TomasVotruba
Copy link
Contributor

I see. Great :)

@ianchanning
Copy link

I'm suffering from the initial problem when trying to install v2.8.1:

[ErrorException]
ZipArchive::extractTo(vendor/composer/5fe09c4b/apigen-apigen-bca0954/apigen): failed to open stream: Permission denied

However if I now try composer require apigen/apigen:~2.8 it still tries to install 2.8.1.

I've also tried composer require apigen/apigen:2.8.2 plus also composer clearcache in further attempts, but it keeps reverting to trying to install 2.8.1.

@TomasVotruba TomasVotruba reopened this Sep 23, 2014
@TomasVotruba
Copy link
Contributor

@ianchanning Pls try same process with last RC version.

@ianchanning
Copy link

Brilliant, thanks! I had to delete the andrewsville and nette packages before it would install, but then running

composer require apigen/apigen=4.0.0-RC1

installed everything fine.

@TomasVotruba
Copy link
Contributor

In your case, it might help to edit composer.json and then run composer update.

Thanks for the report. I'll release soon next version with few bugfixes.

@mathieuprog mathieuprog mentioned this issue Nov 9, 2014
@tractorcow
Copy link

I'm trying to support an older project, and am having issues upgrading to the new 4.0.x. I would really appreciate a ~2.8.1 which would be installable. :) Perhaps moving the apigen to a subdirectory and updating the composer bin directive to the below would resolve the installation issue:

{
    "bin": ["bin/apigen"]
}  

Could perhaps a working 2.8.2 be released with this? The only other option is to downgrade to an even older version (2.8.0 works but yeah, older... =( ).

@jadb
Copy link
Member

jadb commented Jun 19, 2015

@tractorcow - I don't think I will do any work on previous versions. I recently took responsibility of maintaining this repository but just trying to finish a couple previous engagements before I can start doing some work/fixes on current and upcoming versions.

@tractorcow
Copy link

No that's fine, @jadb and understandable. I've taken the liberty of forking the module and creating a 2.8 branch, in case anyone else wishes to try it out.

https://github.com/silverstripe-labs/ApiGen

Thanks for your work and for taking the time to get back to me. :D

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

5 participants