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: Calling needs :cxx11 is disabled! There is no replacement. #1

Closed
diazwatson opened this issue Jan 27, 2019 · 6 comments

Comments

@diazwatson
Copy link

commented Jan 27, 2019

It looks like "needs cxx11" isn't a supported option anymore and hasn't
been needed for some time now. Currently the option breaks the formula
and makes it impossible to install.

$ valet fix
Removing all old php56- packages from homebrew/php tap

Removing all old php70- packages from homebrew/php tap

Removing all old php71- packages from homebrew/php tap

Removing all old php72- packages from homebrew/php tap

Removing all old n98-magerun packages from homebrew/php tap

Removing drush package from homebrew/php tap

[php5.6] Disabling modules: apcu, intl, mcrypt
[php7.0] Disabling modules: apcu, intl, mcrypt
[php7.1] Disabling modules: apcu, intl, mcrypt
[php7.2] Disabling modules: apcu, intl, mcrypt
Installing and linking new PHP homebrew/core version.
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the henkrehorst/php tap:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-php/Formula/valet-php@7.1.rb:47

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/henkrehorst/homebrew-php/issues
Uninstalling /usr/local/Cellar/valet-php@7.1/7.1.25... (529 files, 63.1MB)

Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the henkrehorst/php tap:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-php/Formula/valet-php@7.1.rb:47


Unlinking /usr/local/Cellar/valet-php@7.1/7.1.25... Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the henkrehorst/php tap:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-php/Formula/valet-php@7.1.rb:47

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/henkrehorst/homebrew-php/issues

Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the henkrehorst/php tap:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-php/Formula/valet-php@7.1.rb:47

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/henkrehorst/homebrew-php/issues

Please check your linked php version, you might need to restart your terminal!
Linked PHP should be php 7.1:
PHP 7.1.25 (cli) (built: Jan 13 2019 07:33:43) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.25, Copyright (c) 1999-2018, by Zend Technologies

[PECL] Checking pear config...
Checking php 5.6...
Checking php 7.0...
Checking php 7.1...
Checking php 7.2...
Checking php 7.3...
    Skipping 7.3, Pear config path could not be found at: /usr/local/etc/valet-php/7.3/pear.conf
@mystix

This comment has been minimized.

Copy link

commented Jan 28, 2019

Just ran into the same error:
Error: Calling needs :cxx11 is disabled! There is no replacement.

@diazwatson's pull request resolves the error.

@henkrehorst

This comment has been minimized.

Copy link
Owner

commented Jan 28, 2019

Fix cxx11 error

@henkrehorst

This comment has been minimized.

Copy link
Owner

commented Jan 28, 2019

We have removed cxx11 from the formulas and now it works again

@Neodork

This comment has been minimized.

Copy link
Collaborator

commented Jan 28, 2019

@diazwatson @mystix Thanks for your replies and PR!

@macosxvn

This comment has been minimized.

Copy link

commented Mar 20, 2019

There is an error if I re-install PHP5.6 from source (I need to rebuild it because of upgrade the imagick module)

brew reinsall -s valet-php@5.6

/usr/local/Cellar/icu4c/63.1/include/unicode/unistr.h:3063:7: error: delegating constructors are permitted only in C++11
      UnicodeString(ConstChar16Ptr(text), length) {}
      ^~~~~~~~~~~~~
/usr/local/Cellar/icu4c/63.1/include/unicode/unistr.h:3144:7: error: delegating constructors are permitted only in C++11
      UnicodeString(Char16Ptr(buffer), buffLength, buffCapacity) {}
      ^~~~~~~~~~~~~
/usr/local/Cellar/icu4c/63.1/include/unicode/unistr.h:4587:16: error: out-of-line definition of 'operator=' does not match any declaration in 'icu_63::UnicodeString'
UnicodeString::operator= (char16_t ch)

I fixed it by add ENV.cxx11

brew edit valet-php@5.6

# icu4c 61.1 compatability
ENV.cxx11
ENV.append "CPPFLAGS", "-DU_USING_ICU_NAMESPACE=1"

Hope that it will help someone same problem

@MikeiLL

This comment has been minimized.

Copy link

commented Jun 7, 2019

@macosxvn

I fixed it by add ENV.cxx11

brew edit valet-php@5.6

# icu4c 61.1 compatability
ENV.cxx11
ENV.append "CPPFLAGS", "-DU_USING_ICU_NAMESPACE=1"

I guess running brew edit valet-php@5.6 edits the ruby file at
/usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-php/Formula/valet-php@5.6.rb.

I seem to already have those two lines in the file around line 85:

# Required due to icu4c dependency
ENV.cxx11

# icu4c 61.1 compatability
ENV.append "CPPFLAGS", "-DU_USING_ICU_NAMESPACE=1"

Are you saying you added those lines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.