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

Stuck with phar error #1293

Closed
mmukhin opened this issue May 14, 2013 · 2 comments
Closed

Stuck with phar error #1293

mmukhin opened this issue May 14, 2013 · 2 comments

Comments

@mmukhin
Copy link

mmukhin commented May 14, 2013

[mmukhin@ip-10-169-2-131 api]$ php composer.phar update
Loading composer repositories with package information

Fatal error: Call to undefined function Composer\Repository\hash() in phar:///home/mmukhin/src/api/composer.phar/src/Composer/Repository/ComposerRepository.php on line 540

And the composer.json
[mmukhin@ip-10-169-2-131 api]$ cat composer.json
{
"name": "vendor/laravel",
"description": "x",
"authors": [
{
"name": "Michael Mukhin",
"email": "[email protected]"
}
],
"require": {

}

}

Phar is installed with php, but executing phar binary causes error
[mmukhin@ip-10-169-2-131 api]$ phar

Fatal error: Uncaught exception 'PharException' with message 'zlib extension is required for gz compressed .phar file "/usr/bin/phar.phar"' in /usr/bin/phar.phar:57
Stack trace:
#0 /usr/bin/phar.phar(57): Phar::mapPhar()
#1 {main}

thrown in /usr/bin/phar.phar on line 57

Any ideas? Thanks in advance everyone.

@radmen
Copy link
Contributor

radmen commented May 14, 2013

Fatal error: Uncaught exception 'PharException' with message 'zlib extension is required for gz compressed .phar file

Enable zlib extension?
Do You have the newest version of Composer?

BTW, that's not Laravel-related issue.

@taylorotwell
Copy link
Member

It says you need to install zip extension.

On May 14, 2013, at 3:16 AM, Mike [email protected] wrote:

[mmukhin@ip-10-169-2-131 api]$ php composer.phar update
Loading composer repositories with package information

Fatal error: Call to undefined function Composer\Repository\hash() in phar:///home/mmukhin/src/api/composer.phar/src/Composer/Repository/ComposerRepository.php on line 540

And the composer.json
[mmukhin@ip-10-169-2-131 api]$ cat composer.json
{
"name": "vendor/laravel",
"description": "x",
"authors": [
{
"name": "Michael Mukhin",
"email": "[email protected]"
}
],
"require": {

}
}

Phar is installed with php, but executing phar binary causes error
[mmukhin@ip-10-169-2-131 api]$ phar

Fatal error: Uncaught exception 'PharException' with message 'zlib extension is required for gz compressed .phar file "/usr/bin/phar.phar"' in /usr/bin/phar.phar:57
Stack trace:
#0 /usr/bin/phar.phar(57): Phar::mapPhar()
#1 {main}
thrown in /usr/bin/phar.phar on line 57

Any ideas? Thanks in advance everyone.


Reply to this email directly or view it on GitHub.

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