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

spdx-licenses.json - failed to open stream: No such file or directory #6304

Closed
mikepmtl opened this issue Mar 28, 2017 · 3 comments
Closed

Comments

@mikepmtl
Copy link

I saw another ticket with the same issue that was recently closed.
I installed composer using apt on Ubuntu 16.04.

Composer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27 16:00:34

When running composer diagnose I receive the following exception:

[ErrorException]
file_get_contents(/usr/share/php/Composer/../../data/Composer/res/spdx-licenses.json): failed to open stream: No such file or directory

The issue is the file is located at:
/usr/share/php/Composer/../data/Composer/res/spdx-licenses.json (No ../../)

Would you know how to reach the people that maintain the Ubuntu package?

Thanks.

@mikepmtl
Copy link
Author

***For anyone with the issue the work around is to simply create a symbolic link in /usr/share.

cd /usr/share
ln -s php/data .

@stof
Copy link
Contributor

stof commented Mar 29, 2017

the Ubuntu package is not an official installation method. So support is not provided by the composer team. And it looks like their packaging is broken.

See http://packages.ubuntu.com/yakkety/composer for details about the package maintainers.
And I strongly recommend you to use a supported installation method instead.

@Seldaek
Copy link
Member

Seldaek commented Mar 30, 2017

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