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

ext-bcmath not working? #40

Closed
katmai opened this issue Apr 30, 2014 · 6 comments
Closed

ext-bcmath not working? #40

katmai opened this issue Apr 30, 2014 · 6 comments

Comments

@katmai
Copy link

katmai commented Apr 30, 2014

Hi,

I just tried to enable bcmath and hhvm today, but when i am running composer update it says ext-bcmath cannot be found.

any idea how can i get this enabled, or am i missing something? i was able to enable memcached and xsl - the shared ones. i just can't get bcmath to work.

regards

@dzuelke
Copy link
Contributor

dzuelke commented Apr 30, 2014

Oh, you're using HHVM. In that case, you don't have to enable the extension. Composer doesn't support it. It should be enabled out of the box.

@dzuelke dzuelke closed this as completed Apr 30, 2014
@katmai
Copy link
Author

katmai commented May 1, 2014

2014-05-01T09:38:22.167431+00:00 heroku[api]: Deploy 8f87ee6 by heroku@cashklick.com
2014-05-01T09:38:22.167503+00:00 heroku[api]: Release v12 created by heroku@cashklick.com
2014-05-01T09:38:31.094514+00:00 app[web.1]: vendor/bin/heroku-hhvm-apache2: line 110: hhvm: command not found
2014-05-01T09:38:31.097231+00:00 app[web.1]: This program requires HHVM 3.0.1 or newer
2014-05-01T09:38:32.635215+00:00 heroku[web.1]: Process exited with status 1
2014-05-01T09:38:29.694948+00:00 heroku[web.1]: Starting process with command `vendor/bin/heroku-hhvm-apache2`
2014-05-01T09:38:32.640702+00:00 heroku[web.1]: State changed from starting to crashed
2014-05-01T09:38:32.641478+00:00 heroku[web.1]: State changed from crashed to starting
2014-05-01T09:38:40.590674+00:00 app[web.1]: vendor/bin/heroku-hhvm-apache2: line 110: hhvm: command not found
2014-05-01T09:38:40.590737+00:00 app[web.1]: This program requires HHVM 3.0.1 or newer
2014-05-01T09:38:39.792152+00:00 heroku[web.1]: Starting process with command `vendor/bin/heroku-hhvm-apache2`
2014-05-01T09:38:41.816575+00:00 heroku[web.1]: Process exited with status 1
2014-05-01T09:38:41.839885+00:00 heroku[web.1]: State changed from starting to crashed

well okay, i tried to remove hhvm from composer.json but i get the same error message that hhvm is not found. in the docs, it says that hhvm should be enabled in composer. that's why i enabled it there.

regardless, composer errors out when trying to enable either - just hhvm, or just bcmath

@dzuelke
Copy link
Contributor

dzuelke commented May 1, 2014

Well, it looks like you have web: vendor/bin/heroku-hhvm-apache2 in your Procfile; you should adjust that again to heroku-php-apache2.

@katmai
Copy link
Author

katmai commented May 2, 2014

I did remove hhvm, i just enabled it to show you the hhvm error. This is what i keep getting when trying to enable ext-bcmath in composer

 app-prod]# composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested PHP extension ext-bcmath * is missing from your system.

@dzuelke
Copy link
Contributor

dzuelke commented May 2, 2014

Oh, is that locally on your system? You obviously need to install (or enable) the bcmath extension...

@katmai
Copy link
Author

katmai commented May 2, 2014

It's the local system from which i push stuff to heroku. Do local installed packages have any effect on the things i can install in heroku? I can confirm that after i installed bcmath locally, and running composer update i could then push to heroku, but i don't see why do the local installation of bcmath being missing had any impact on the heroku push

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

2 participants