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

configure: error: C compiler cannot create executables (MacOS Sierra 10.13.4) #1193

Closed
TiSer opened this issue Apr 11, 2018 · 1 comment
Closed

Comments

@TiSer
Copy link

TiSer commented Apr 11, 2018

I tried almost ever solution that was found at Issues section for this repo.

ruby-build: use openssl from homebrew
Downloading ruby-2.4.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.bz2
Installing ruby-2.4.1...

BUILD FAILED (OS X 10.13.4 using ruby-build 20180329)

Inspect or clean up the working tree at /var/folders/kn/mlf_7qp95kqbh7gm9vs32s7w0000gp/T/ruby-build.20180411145837.3593
Results logged to /var/folders/kn/mlf_7qp95kqbh7gm9vs32s7w0000gp/T/ruby-build.20180411145837.3593.log

Last 10 log lines:
config.guess already exists
config.sub already exists
checking build system type... x86_64-apple-darwin17.5.0
checking host system type... x86_64-apple-darwin17.5.0
checking target system type... x86_64-apple-darwin17.5.0
checking whether the C compiler works... no
configure: error: in `/var/folders/kn/mlf_7qp95kqbh7gm9vs32s7w0000gp/T/ruby-build.20180411145837.3593/ruby-2.4.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.

config.log:

...
configure:4265: checking whether the C compiler works
configure:4287: clang  -O3 -Wno-error=shorten-64-to-32  -I/Users/Pan 1/.rbenv/versions/2.4.1/include  -L/Users/Pan 1/.rbenv/versions/2.4.1/lib  conftest.c  >&5
clang: error: no such file or directory: '1/.rbenv/versions/2.4.1/include'
clang: error: no such file or directory: '1/.rbenv/versions/2.4.1/lib'
configure:4291: $? = 1
configure:4329: result: no
...

$ xcode-select -p
=> /Library/Developer/CommandLineTools

$ whereis gcc
=> /usr/bin/gcc

@TiSer
Copy link
Author

TiSer commented Apr 18, 2018

Almost the same as here: #385

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