Unable to install Ruby 2.5.1 using rbenv, gives C Compiler error
I am trying to set up a new machine and prepping the dev environment. My Xcode and command line tools are all installed. I used homebrew to install ruby-build and rbenv. I then execute the command:
rbenv install 2.5.1
However I get the following error:
BUILD FAILED (OS X 10.14.2 using ruby-build 20181225)
Inspect or clean up the working tree at /var/folders/
kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby-build.201901
18184337.15691
Results logged to /var/folders/kk/d2c_1jqj2dd88mcscws
rcz_w0000gp/T/ruby-build.20190118184337.15691.log
Last 10 log lines:
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking target system type... x86_64-apple-darwin18.2.0
checking whether the C compiler works… no
configure: error: in
`/var/folders/kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby
build.20190118184337.15691/ruby-2.5.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
./configure: line 346: sort: No such file or directory
./configure: line 343: sed: No such file or directory
make: *** No targets specified and no makefile found.
Stop.
I have already tried to go into the logs to see if I can see something there, but nothing.
I have tried searching for solution to this but to no avail.
I would really appreciate if someone can help point me to the right direction and help me resolve this.
Thank you!
ruby rbenv macos-mojave
add a comment |
I am trying to set up a new machine and prepping the dev environment. My Xcode and command line tools are all installed. I used homebrew to install ruby-build and rbenv. I then execute the command:
rbenv install 2.5.1
However I get the following error:
BUILD FAILED (OS X 10.14.2 using ruby-build 20181225)
Inspect or clean up the working tree at /var/folders/
kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby-build.201901
18184337.15691
Results logged to /var/folders/kk/d2c_1jqj2dd88mcscws
rcz_w0000gp/T/ruby-build.20190118184337.15691.log
Last 10 log lines:
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking target system type... x86_64-apple-darwin18.2.0
checking whether the C compiler works… no
configure: error: in
`/var/folders/kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby
build.20190118184337.15691/ruby-2.5.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
./configure: line 346: sort: No such file or directory
./configure: line 343: sed: No such file or directory
make: *** No targets specified and no makefile found.
Stop.
I have already tried to go into the logs to see if I can see something there, but nothing.
I have tried searching for solution to this but to no avail.
I would really appreciate if someone can help point me to the right direction and help me resolve this.
Thank you!
ruby rbenv macos-mojave
1
What is the name of your home folder? rbenv doesn't like spaces
– Tom
Jan 19 at 3:31
Thanks Tom. This was exactly the error! Creating the home folder I left a space in there. Thank you so much!!! :)
– user10443511
Jan 19 at 4:17
awesome! I added it as an answer to help future users.
– Tom
Jan 19 at 4:22
add a comment |
I am trying to set up a new machine and prepping the dev environment. My Xcode and command line tools are all installed. I used homebrew to install ruby-build and rbenv. I then execute the command:
rbenv install 2.5.1
However I get the following error:
BUILD FAILED (OS X 10.14.2 using ruby-build 20181225)
Inspect or clean up the working tree at /var/folders/
kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby-build.201901
18184337.15691
Results logged to /var/folders/kk/d2c_1jqj2dd88mcscws
rcz_w0000gp/T/ruby-build.20190118184337.15691.log
Last 10 log lines:
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking target system type... x86_64-apple-darwin18.2.0
checking whether the C compiler works… no
configure: error: in
`/var/folders/kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby
build.20190118184337.15691/ruby-2.5.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
./configure: line 346: sort: No such file or directory
./configure: line 343: sed: No such file or directory
make: *** No targets specified and no makefile found.
Stop.
I have already tried to go into the logs to see if I can see something there, but nothing.
I have tried searching for solution to this but to no avail.
I would really appreciate if someone can help point me to the right direction and help me resolve this.
Thank you!
ruby rbenv macos-mojave
I am trying to set up a new machine and prepping the dev environment. My Xcode and command line tools are all installed. I used homebrew to install ruby-build and rbenv. I then execute the command:
rbenv install 2.5.1
However I get the following error:
BUILD FAILED (OS X 10.14.2 using ruby-build 20181225)
Inspect or clean up the working tree at /var/folders/
kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby-build.201901
18184337.15691
Results logged to /var/folders/kk/d2c_1jqj2dd88mcscws
rcz_w0000gp/T/ruby-build.20190118184337.15691.log
Last 10 log lines:
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking target system type... x86_64-apple-darwin18.2.0
checking whether the C compiler works… no
configure: error: in
`/var/folders/kk/d2c_1jqj2dd88mcscwsrcz_w0000gp/T/ruby
build.20190118184337.15691/ruby-2.5.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
./configure: line 346: sort: No such file or directory
./configure: line 343: sed: No such file or directory
make: *** No targets specified and no makefile found.
Stop.
I have already tried to go into the logs to see if I can see something there, but nothing.
I have tried searching for solution to this but to no avail.
I would really appreciate if someone can help point me to the right direction and help me resolve this.
Thank you!
ruby rbenv macos-mojave
ruby rbenv macos-mojave
edited Jan 23 at 14:11
bfontaine
9,00074272
9,00074272
asked Jan 19 at 3:16
user10443511user10443511
102
102
1
What is the name of your home folder? rbenv doesn't like spaces
– Tom
Jan 19 at 3:31
Thanks Tom. This was exactly the error! Creating the home folder I left a space in there. Thank you so much!!! :)
– user10443511
Jan 19 at 4:17
awesome! I added it as an answer to help future users.
– Tom
Jan 19 at 4:22
add a comment |
1
What is the name of your home folder? rbenv doesn't like spaces
– Tom
Jan 19 at 3:31
Thanks Tom. This was exactly the error! Creating the home folder I left a space in there. Thank you so much!!! :)
– user10443511
Jan 19 at 4:17
awesome! I added it as an answer to help future users.
– Tom
Jan 19 at 4:22
1
1
What is the name of your home folder? rbenv doesn't like spaces
– Tom
Jan 19 at 3:31
What is the name of your home folder? rbenv doesn't like spaces
– Tom
Jan 19 at 3:31
Thanks Tom. This was exactly the error! Creating the home folder I left a space in there. Thank you so much!!! :)
– user10443511
Jan 19 at 4:17
Thanks Tom. This was exactly the error! Creating the home folder I left a space in there. Thank you so much!!! :)
– user10443511
Jan 19 at 4:17
awesome! I added it as an answer to help future users.
– Tom
Jan 19 at 4:22
awesome! I added it as an answer to help future users.
– Tom
Jan 19 at 4:22
add a comment |
1 Answer
1
active
oldest
votes
What is the name of your home folder? rbenv doesn't like spaces in the home folder name. They should be replaced or removed.
@user1044351, you should "accept" Tom's answer since it solved your problem.
– Nate
Jan 19 at 5:36
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54263779%2funable-to-install-ruby-2-5-1-using-rbenv-gives-c-compiler-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
What is the name of your home folder? rbenv doesn't like spaces in the home folder name. They should be replaced or removed.
@user1044351, you should "accept" Tom's answer since it solved your problem.
– Nate
Jan 19 at 5:36
add a comment |
What is the name of your home folder? rbenv doesn't like spaces in the home folder name. They should be replaced or removed.
@user1044351, you should "accept" Tom's answer since it solved your problem.
– Nate
Jan 19 at 5:36
add a comment |
What is the name of your home folder? rbenv doesn't like spaces in the home folder name. They should be replaced or removed.
What is the name of your home folder? rbenv doesn't like spaces in the home folder name. They should be replaced or removed.
answered Jan 19 at 4:21
TomTom
1,054517
1,054517
@user1044351, you should "accept" Tom's answer since it solved your problem.
– Nate
Jan 19 at 5:36
add a comment |
@user1044351, you should "accept" Tom's answer since it solved your problem.
– Nate
Jan 19 at 5:36
@user1044351, you should "accept" Tom's answer since it solved your problem.
– Nate
Jan 19 at 5:36
@user1044351, you should "accept" Tom's answer since it solved your problem.
– Nate
Jan 19 at 5:36
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54263779%2funable-to-install-ruby-2-5-1-using-rbenv-gives-c-compiler-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
What is the name of your home folder? rbenv doesn't like spaces
– Tom
Jan 19 at 3:31
Thanks Tom. This was exactly the error! Creating the home folder I left a space in there. Thank you so much!!! :)
– user10443511
Jan 19 at 4:17
awesome! I added it as an answer to help future users.
– Tom
Jan 19 at 4:22