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

Failed to install package control: "checking whether the C++ compiler works... no" #233

Open
rodrigoarnabal opened this issue Nov 25, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@rodrigoarnabal
Copy link

Description

I am new with Octave. I recently installed Octave 6.2.0.

I want to use Dyanre 4.6.4with it on a Mac running 12.0.1.

When try to install packages to run Dynare I get the following message:

pkg install -forge io statistics control struct optim
configure: error: in /var/folders/ys/s63m8c2d5h7_g9sw0gc8v3tm0000gn/T/oct-445Op0/control-3.3.1/src': configure: error: C++ compiler cannot create executables See config.log' for more details
checking for mkoctfile... /Applications/Octave-6.2.0.app/Contents/Resources/usr/Cellar/octave-octave-app@6.2.0/6.2.0/bin/mkoctfile-6.2.0
checking for octave-config... /Applications/Octave-6.2.0.app/Contents/Resources/usr/Cellar/octave-octave-app@6.2.0/6.2.0/bin/octave-config-6.2.0
checking whether the C++ compiler works... no

@apjanke
Copy link
Contributor

apjanke commented Nov 29, 2021

Looks like you might not have Xcode or the Xcode Command Line Tools installed. Those are required to compile programs on macOS, including Octave packages which have native extensions. Try running sudo xcode-select --install from the Terminal to install the Xcode CLT, and then restart Octave.app and try installing this package again.

@apjanke apjanke added the bug Something isn't working label Nov 29, 2021
@apjanke apjanke changed the title Fail to install package Failed to install package control: "checking whether the C++ compiler works... no" Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants