Skip to content

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

Open
@steve-the-bayesian

Description

@steve-the-bayesian

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

Activity

nelishiba

nelishiba commented on Jan 28, 2019

@nelishiba

Could you execute the following command?

$ brew untap caskformula/caskformula
$ brew doctor

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

crisluengo

crisluengo commented on Jan 28, 2019

@crisluengo

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

lilchurro commented on Jan 28, 2019

@lilchurro

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

steve-the-bayesian commented on Jan 28, 2019

@steve-the-bayesian
Author
diek

diek commented on Jan 31, 2019

@diek

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

keyunjie96

keyunjie96 commented on Feb 2, 2019

@keyunjie96

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

pmalekn commented on Feb 3, 2019

@pmalekn
$ 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

melMass commented on Feb 3, 2019

@melMass

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

kradydal

kradydal commented on Feb 4, 2019

@kradydal

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

pmalekn commented on Feb 4, 2019

@pmalekn

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

wwwvalpe commented on Feb 5, 2019

@wwwvalpe

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

wecurse commented on Feb 5, 2019

@wecurse

@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

melMass commented on Feb 5, 2019

@melMass

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

18 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @grischoun@misan@berbare@idontusenumbers@diek

        Issue actions

          Many brew commands fail with :cxx is disabled! There is no replacement. · Issue #74 · caskformula/homebrew-caskformula