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 installation on Mac OS (M3) #22

Open
mjposs opened this issue Dec 11, 2024 · 0 comments
Open

error installation on Mac OS (M3) #22

mjposs opened this issue Dec 11, 2024 · 0 comments

Comments

@mjposs
Copy link

mjposs commented Dec 11, 2024

Hello

Would you happen to know why I get an error when installing this package ?

julia> Pkg.add("Concorde")
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.10/Project.toml`
  No Changes to `~/.julia/environments/v1.10/Manifest.toml`

julia> Pkg.build("Concorde")
    Building Concorde → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/5d9f1b1a480235ffdd3c8ab8cab011aa9afe81af/build.log`
ERROR: Error building `Concorde`, showing the last 100 of log: 
x ./concorde/TOOLS/prob2tsp.c
...
x ./concorde/VERIFY/Makefile.in
x ./concorde/README
loading cache ./config.cache
checking host system type... Invalid configuration `darwin': machine `darwin' not recognized

checking for prespecified compiler options... no
checking for gcc... gcc
checking whether the C compiler (gcc -fPIC -O2 -g ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
ERROR: LoadError: failed process: Process(`bash -c "CFLAGS='-fPIC -O2 -g' ./configure --with-qsopt=/Users/poss/.julia/packages/Concorde/VRfqN/deps/qsopt --host=darwin"`, ProcessExited(1)) [1]
...

It seems to be related to my C compiler, but these seem to work

poss@Mac-de-Michael ~ % gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: arm64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

and, more specifically,

poss@Mac-de-Michael ~ % gcc -fPIC -O2 -g test.c
poss@Mac-de-Michael ~ %
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

1 participant