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

Error while running the make command on ubuntu, #334

Open
Dainerx opened this issue Jun 13, 2017 · 2 comments
Open

Error while running the make command on ubuntu, #334

Dainerx opened this issue Jun 13, 2017 · 2 comments

Comments

@Dainerx
Copy link

Dainerx commented Jun 13, 2017

Each time I run the make command so I can install later with make install I get this message with dozen of other errors: zend/includes.h:51:5:%20error:%20#error "This library requires PHP version 7.0 or higher. Use PHP-CPP-LEGACY for older versions." # error "This library requires PHP version 7.0 or higher. Use PHP-CPP-LEGACY

php -v gives the following:
PHP 7.0.20-1 ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jun 9 2017 08:31:46) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.20-1~ubuntu14.04.1+deb.sury.org+1, Copyright (c) 1999-2017, by Zend Technologies

I'm quite sure I'm running php7 on my machine although I'm still get this error. Please any help would be very much appreciated.

@redagito
Copy link

Check your php-devel installation, you may run php7 but you probably have the php5.x development headers somewhere

@robocoder
Copy link
Contributor

Mismatching version of php-config is picking up the php5.x includes.

On Ubuntu, use sudo update-alternatives --config php-config to switch to the right version.

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