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

Many brew commands fail with :cxx is disabled! There is no replacement. #74

Open
steve-the-bayesian opened this issue Jan 27, 2019 · 27 comments

Comments

@steve-the-bayesian
Copy link

Hopefully this is an easy fix. I had not interacted with brew for several months. This morning I tried an update / upgrade cycle, and got the following error:

$ brew upgrade
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the caskformula/caskformula tap:
/usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula/Formula/inkscape.rb:49

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

Similar errors show up with other brew commands (e.g. brew missing).
I have no idea if this is a brew issue or an inkscape issue. Hopefully the solution is to flip a switch re-enabling cxx11 but I have no idea how to do that.

$ brew --version
Homebrew 1.9.3-34-gede58e8
Homebrew/homebrew-core (git revision 4851f; last commit 2019-01-27)
Homebrew/homebrew-cask (git revision 5e2ad; last commit 2019-01-27)

OS X 10.14.2

@nelishiba
Copy link

nelishiba commented Jan 28, 2019

Could you execute the following command?

$ brew untap caskformula/caskformula
$ brew doctor

The error message will disappear, and you can brew upgrade.

@crisluengo
Copy link

crisluengo commented Jan 28, 2019

I tried installing Inkscape through Homebrew, and got the above error message. brew untap ...; brew doctor did not solve the problem.

I have updated Homebrew to the latest version, and am on macOS High Sierra (10.13.6), with Xcode up to date.

@lilchurro
Copy link

Could you execute the following command?

$ brew untap caskformula/caskformula
$ brew doctor

The error message will disappear, and you can brew upgrade.

FWIW, that process did resolve the error message for me.

@steve-the-bayesian
Copy link
Author

steve-the-bayesian commented Jan 28, 2019 via email

@diek
Copy link

diek commented Jan 31, 2019

$ brew untap caskformula/caskformula
$ brew doctor
worked perfectly for me, resolved the error

@keyunjie96
Copy link

Same here.

$ brew --version
Homebrew 2.0.0
Homebrew/homebrew-core (git revision b2777f; last commit 2018-11-03)
Homebrew/homebrew-cask (git revision 05a81; last commit 2019-02-02)
$ brew upgrade
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the homebrew/core tap:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb:23
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/Homebrew/homebrew-core/issues
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
  /Users/keyj/miniconda3/bin/icu-config
  /Users/keyj/miniconda3/bin/freetype-config
  /Users/keyj/miniconda3/bin/libpng16-config
  /Users/keyj/miniconda3/bin/python3.6m-config
  /Users/keyj/miniconda3/bin/libpng-config
  /Users/keyj/miniconda3/bin/xml2-config
  /Users/keyj/miniconda3/bin/python3-config
  /Users/keyj/miniconda3/bin/ncursesw6-config
  /Users/keyj/miniconda3/bin/pcre-config
  /Users/keyj/miniconda3/bin/python3.6-config
  /Users/keyj/.pyenv/shims/python3.1-config
  /Users/keyj/.pyenv/shims/python2-config
  /Users/keyj/.pyenv/shims/python2.7-config
  /Users/keyj/.pyenv/shims/python-config
  /Users/keyj/.pyenv/shims/python3-config
  /opt/local/bin/ncursesw6-config
  /opt/local/bin/ncurses6-config

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/librtmp.dylib

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  python@2
  ipython
  i386-elf-binutils

Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/bin/SmartGit
  /usr/local/bin/node-debug
  /usr/local/bin/node-inspector
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the homebrew/core tap:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb:23

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

OSX 10.14.2 (18C54)

@pmalekn
Copy link

pmalekn commented Feb 3, 2019

$ brew untap caskformula/caskformula
$ brew doctor

This didn't solve the problem for me:

$ brew update; brew upgrade; brew cleanup
Updated 1 tap (homebrew/core).
==> Updated Formulae
mutt
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the hybridgroup/tools tap:
  /usr/local/Homebrew/Library/Taps/hybridgroup/homebrew-tools/opencv.rb:30

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/hybridgroup/homebrew-tools/issues
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the hybridgroup/tools tap:
  /usr/local/Homebrew/Library/Taps/hybridgroup/homebrew-tools/opencv.rb:30

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/hybridgroup/homebrew-tools/issues
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the hybridgroup/tools tap:
  /usr/local/Homebrew/Library/Taps/hybridgroup/homebrew-tools/opencv.rb:30

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

Homebrew 2.0.0
Homebrew/homebrew-core (git revision 7a5c; last commit 2019-02-03)
Homebrew/homebrew-cask (git revision 05a81; last commit 2019-02-02)
$ brew cask list
alacritty                          iterm2                             java                               osxfuse                            slack

@melMass
Copy link

melMass commented Feb 3, 2019

Removing the tap or formula isn't really an answer, how do we replace the old needs: cxx11 & ENV.cxx11 for formula maintainers?

@kradydal
Copy link

kradydal commented Feb 4, 2019

I can't uninstall inkscape

$ brew uninstall inkscape

Uninstalling /usr/local/Cellar/inkscape/0.92.3_1... (1,024 files, 116.6MB)
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the weikengchen/caskformula tap:
  /usr/local/Homebrew/Library/Taps/weikengchen/homebrew-caskformula/Formula/inkscape.rb:31
$ brew --version

Homebrew 2.0.0
Homebrew/homebrew-core (git revision 10ead; last commit 2019-02-04)
Homebrew/homebrew-cask (git revision 8ab02; last commit 2019-02-03)
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: The following directories do not exist:
/usr/local/sbin

You should create these directories and change their ownership to your account.
  sudo mkdir -p /usr/local/sbin
  sudo chown -R $(whoami) /usr/local/sbin

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libwkhtmltox.0.12.5.dylib

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/node/ares.h
  /usr/local/include/node/ares_build.h
  /usr/local/include/node/ares_rules.h
  /usr/local/include/node/ares_version.h
  /usr/local/include/node/nameser.h
  /usr/local/include/node/pthread-fixes.h
  /usr/local/include/node/v8-experimental.h
  /usr/local/include/wkhtmltox/image.h
  /usr/local/include/wkhtmltox/pdf.h

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  macvim

Warning: Broken symlinks were found. Remove them with `brew cleanup`:
  /usr/local/bin/docker-credential-osxkeychain.backup
  /usr/local/bin/hyperkit.backup
  /usr/local/bin/notary.backup
  /usr/local/bin/subl
  /usr/local/bin/vpnkit.backup
  /usr/local/etc/bash_completion.d/_brew_services
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the weikengchen/caskformula tap:
  /usr/local/Homebrew/Library/Taps/weikengchen/homebrew-caskformula/Formula/inkscape.rb:31

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

@pmalekn
Copy link

pmalekn commented Feb 4, 2019

For me commenting out the offending line

#needs :cxx11

from /usr/local/Homebrew/Library/Taps/hybridgroup/homebrew-tools/opencv.rb worked but I'm not sure how's that for a reliable solution.

@wwwvalpe
Copy link

wwwvalpe commented Feb 5, 2019

After doing

$ brew untap caskformula/caskformula
$ brew doctor

then
$brew tap caskformula/caskformula

and I'm back to the same problem:
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula/Formula/inkscape.rb Calling needs :cxx11 is disabled! There is no replacement. Please report this to the caskformula/caskformula tap: /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula/Formula/inkscape.rb:49

need :cxx11 issue was just fixed in opencv.rb, probably has to be done in similar way now for inkscape.rb

Update:
I don't know if it’s smart, forgive a newbie, but after suggestion here I was doing the following I could get inscape.
I have commented out need :cxx11 in the inkscape.rb, by doing a fork on github. Now it worked for me

$ brew tap wwwvalpe/homebrew-caskformula 
$ brew install wwwvalpe/homebrew-caskformula/inkscape --HEAD --branch-0.92

@wecurse
Copy link

wecurse commented Feb 5, 2019

@melMass Came here for the same reason.
For me, it was a custom alembic formula that depended on needs: cxx11
The needs: cxx11 is actually no longer needed to use ENV.cxx11 if you are using a custom formula just delete it, else ask the maintainer.

Cheers

@melMass
Copy link

melMass commented Feb 5, 2019

Thanks @wecurse yes it does work by just removing the first.

@BB-000
Copy link

BB-000 commented Feb 8, 2019

$ brew untap caskformula/caskformula
Error: No available tap caskformula/caskformula.

$ brew doctor
Your system is ready to brew.

$ brew upgrade
$ sudo brew services restart php@7.0
Error: php@7.0: "cxx11" is not a recognized standard

$ brew gist-logs php@7.0
Error: php@7.0: "cxx11" is not a recognized standard

Just trying to restart php@7.0. All commands relating to php@7.0 fail with this message..?

😱🤔😕

Edit: Just seen that php70 has been removed from Homebrew so I guess this is why..

@JesusViveros12
Copy link

JesusViveros12 commented Feb 12, 2019

After doing

$ brew untap caskformula/caskformula
$ brew doctor

then
$brew tap caskformula/caskformula

and I'm back to the same problem:
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula/Formula/inkscape.rb Calling needs :cxx11 is disabled! There is no replacement. Please report this to the caskformula/caskformula tap: /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula/Formula/inkscape.rb:49

need :cxx11 issue was just fixed in opencv.rb, probably has to be done in similar way now for inkscape.rb

Update:
I don't know if it’s smart, forgive a newbie, but after suggestion here I was doing the following I could get inscape.
I have commented out need :cxx11 in the inkscape.rb, by doing a fork on github. Now it worked for me

$ brew tap wwwvalpe/homebrew-caskformula 
$ brew install wwwvalpe/homebrew-caskformula/inkscape --HEAD --branch-0.92

I get this error at process finish:

==> Cloning https://gitlab.com/inkscape/inkscape.git
Cloning into '/Users/diego.matus/Library/Caches/Homebrew/inkscape--git'...
Checking out files: 100% (4047/4047), done.
==> Checking out branch 0.92.x
Already on '0.92.x'
Your branch is up to date with 'origin/0.92.x'.
==> mkdir build
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/inkscape/HEAD-33fec40_1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev
==> make
Last 15 lines from /Users/diego.matus/Library/Logs/Homebrew/inkscape/03.make:
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/man-inkscape-de.dir/build.make CMakeFiles/man-inkscape-de.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/man-inkscape-fr.dir/build.make CMakeFiles/man-inkscape-fr.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
make[1]: *** [CMakeFiles/man-inkscape-de.dir/all] Error 1
make[1]: *** Waiting for unfinished jobs....
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/man-inkview.dir/build.make CMakeFiles/man-inkview.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
Scanning dependencies of target man-inkscape
make[1]: *** [CMakeFiles/man-inkscape-fr.dir/all] Error 1
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/man-inkscape.dir/build.make CMakeFiles/man-inkscape.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
make[1]: *** [CMakeFiles/man-inkview.dir/all] Error 1
make[1]: *** [CMakeFiles/man-inkscape.dir/all] Error 1
make: *** [all] Error 2

@kaswani29
Copy link

Commands in this order solved the issue:

brew untap caskformula/caskformula
brew doctor
brew tap wwwvalpe/homebrew-caskformula 
brew install wwwvalpe/homebrew-caskformula/inkscape --HEAD --branch-0.92

@misan
Copy link

misan commented Feb 27, 2019

Commands in this order solved the issue:

brew untap caskformula/caskformula
brew doctor
brew tap wwwvalpe/homebrew-caskformula 
brew install wwwvalpe/homebrew-caskformula/inkscape --HEAD --branch-0.92

Your magic did the trick for me. Thanks a lot.

Unfortunately, the resulting binary does not operate properly :-(

Dialogs are empty or do not show files nor folders and the page is dark black...

@cjohansson
Copy link

cjohansson commented Mar 13, 2019

Doesn't work for me:

Christians-iMac:~ christianjohansson$ brew doctor
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the homebrew/core tap:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/php@5.6.rb:45

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/Homebrew/homebrew-core/issues
Christians-iMac:~ christianjohansson$ brew untap caskformula/caskformula
Error: No available tap caskformula/caskformula.
Christians-iMac:~ christianjohansson$ brew untap homebrew/core
Error: untapping homebrew/core is not allowed
Christians-iMac:~ christianjohansson$ brew uninstall php@5.6
Uninstalling /usr/local/Cellar/php@5.6/5.6.38... (498 files, 63.9MB)
Error: Calling needs :cxx11 is disabled! There is no replacement.
Please report this to the homebrew/core tap:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/php@5.6.rb:45

I have the latest homebrew, Xcode and macOS

@cjohansson
Copy link

Removing need :cxx11 from /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/php@5.6.rb:45 solved the problem for me

@akihiro-moriyama
Copy link

Commands in this order solved the issue:

brew untap caskformula/caskformula
brew doctor
brew tap wwwvalpe/homebrew-caskformula 
brew install wwwvalpe/homebrew-caskformula/inkscape --HEAD --branch-0.92

My problem was resolved. Thanks to your support.

antonalekseev added a commit to antonalekseev/homebrew-tap that referenced this issue Mar 26, 2019
@idontusenumbers
Copy link

brew untap caskformula/caskformula
brew doctor
brew tap wwwvalpe/homebrew-caskformula 
brew install wwwvalpe/homebrew-caskformula/inkscape --HEAD --branch-0.92

Works for the most part but you're left with a binary in a strange brew Cellar directory and no icon.

@yzhaiustc
Copy link

After doing

$ brew untap caskformula/caskformula
$ brew doctor

then
$brew tap caskformula/caskformula

and I'm back to the same problem:
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula/Formula/inkscape.rb Calling needs :cxx11 is disabled! There is no replacement. Please report this to the caskformula/caskformula tap: /usr/local/Homebrew/Library/Taps/caskformula/homebrew-caskformula/Formula/inkscape.rb:49

need :cxx11 issue was just fixed in opencv.rb, probably has to be done in similar way now for inkscape.rb

Update:
I don't know if it’s smart, forgive a newbie, but after suggestion here I was doing the following I could get inscape.
I have commented out need :cxx11 in the inkscape.rb, by doing a fork on github. Now it worked for me

$ brew tap wwwvalpe/homebrew-caskformula 
$ brew install wwwvalpe/homebrew-caskformula/inkscape --HEAD --branch-0.92

6666666666

Thanks so much!!!

@berbare
Copy link

berbare commented Apr 17, 2019

$ brew untap caskformula/caskformula
Error: No available tap caskformula/caskformula.

$ brew doctor
Your system is ready to brew.

$ brew upgrade
$ sudo brew services restart php@7.0
Error: php@7.0: "cxx11" is not a recognized standard

$ brew gist-logs php@7.0
Error: php@7.0: "cxx11" is not a recognized standard

Just trying to restart php@7.0. All commands relating to php@7.0 fail with this message..?

😱🤔😕

Edit: Just seen that php70 has been removed from Homebrew so I guess this is why..

Did you find any workaround for this since your comment @BB-000 ? I have the same issue and am struggling to restore the version 61 of icu4c required by php@7.0 that I somehow lost from my machine

@darth-hp
Copy link

darth-hp commented Oct 8, 2019

brew cask install inkscape ?

@grischoun
Copy link

brew cask install inkscape ?

This worked for me (whereas nothing else did). Thanks!

@markl181
Copy link

I tried both the
brew cask install inkscape
and
brew untap caskformula/caskformula

methods, neither of these worked. I am unable to get php to run on my machine
Warning: Some installed formulae are not readable: php@7.1: "cxx11" is not a recognized standard

@safecat
Copy link

safecat commented Mar 14, 2020

Removing need :cxx11 from /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/php@5.6.rb:45 solved the problem for me

I removed need :cxx11 from /usr/local/Cellar/php@5.6/5.6.37/.brew/php@5.6.rb and php -v says dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib, then I reinstalled icu4c@62 via https://stackoverflow.com/a/54273234/783991

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