Skip to content

error installation on Mac OS (M3) #22

@mjposs

Description

@mjposs

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 ~ %

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions