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

Fail to install package control on Mac 10.15.6 #210

Closed
higherkuo opened this issue Oct 7, 2020 · 2 comments
Closed

Fail to install package control on Mac 10.15.6 #210

higherkuo opened this issue Oct 7, 2020 · 2 comments
Assignees
Labels
bug Something isn't working needs response Waiting on response from OP or other participant

Comments

@higherkuo
Copy link

higherkuo commented Oct 7, 2020

Hi,

I was trying to install package for octave on my Mac, but I always get the same error message. I tried home-brew, or octave-app, and even octave 4.4.1. This makes me wonder the error is on my environment. The error message is following:

Any suggestions? Thanks!

octave:1> pkg install -f control
error: pkg: failed to read package '-f': Couldn't resolve host name
error: called from
    pkg at line 433 column 17
octave:1> pkg install -forge control
configure: error: in `/var/folders/2p/zk_34fj93l9fqh9ccx5661xc0000gq/T/oct-IR9Vfw/control-3.2.0/src':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
checking for mkoctfile... /usr/local/Cellar/octave/5.2.0_10/bin/mkoctfile-5.2.0
checking for octave-config... /usr/local/Cellar/octave/5.2.0_10/bin/octave-config-5.2.0
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling...
pkg: error running the configure script for control.
error: called from
    configure_make at line 82 column 9
    install at line 190 column 7
    pkg at line 441 column 9
octave:1>
@apjanke
Copy link
Contributor

apjanke commented Oct 9, 2020

This line:

configure: error: in /var/folders/2p/zk_34fj93l9fqh9ccx5661xc0000gq/T/oct-IR9Vfw/control-3.2.0/src': configure: error: cannot run C++ compiled programs. If you meant to cross compile, use --host'.

makes me suspect your environment. That's a pretty basic error. And I couldn't reproduce your error on my systems.

A couple things to check:

  • Have you run Xcode once and accepted the license agreement?
  • Can you build other basic C or C++ programs outside the Octave environment, for example with Homebrew?

@apjanke apjanke self-assigned this Oct 9, 2020
@apjanke apjanke added the bug Something isn't working label Oct 9, 2020
@apjanke
Copy link
Contributor

apjanke commented Jul 4, 2024

Closing this ticket as no-recent-response / can't-reproduce / think-it's-fixed.

@apjanke apjanke closed this as completed Jul 4, 2024
@apjanke apjanke added the needs response Waiting on response from OP or other participant label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs response Waiting on response from OP or other participant
Projects
Archived in project
Development

No branches or pull requests

2 participants