OSX 10.10 Yosemite gem install fails: You have to install development tools first #304
Comments
Checked software updates for my OS and I haven't yet installed update 1.0 for 10.10. It is installing now, will update to see if this fixes the problem. EDIT 1: This did not resolve the issue. |
What does the mkmf.log file say? |
|
So clearly ruby is trying to use gcc-4.2, which doesn't exist in my path. I could easily symlink gcc to gcc-4.2 and be done with it, but that wouldn't feel right. Somewhere along the way, someone is deciding to use gcc-4.2 instead of the gcc used by command line tools. Who do I need to be bugging to fix this? Would the apple developer forums be the right place to go? |
Having the exact same issue..
|
I had trouble with the rbzmq gem, and fixed this by ensuring I did not have gcc-4.2 in my path and then re-installing ruby via "rbenv install 2.1.2" I had gcc-4.2 in my path, probably from a bad idea (or a previous OS X install) so I had to fist remove gcc. I put them in a directory called "disabled-sma" so if needed, I could recover them. This "fixed" it ; you might want to see if this also fixes this gem. |
@skandragon what version of gcc you did had in your path, after you removed |
I may have spoken too soon; I cannot build the libv8 gem, but it might be that something else needs to be built first. brew is probably half-ancient by now, so I should nuke and reinstall I suspect. $ gcc -v |
I have been able to install libv8 with
gem install libv8 -v 3.16.14.3 -- --with-system-v8 |
Any updates on this? :-/ |
Do you have apple command line tools installed through brew? |
@PhilCoggins Yes I do. I tried exporting |
@PhilCoggins did you open a thread on the apple developer forums? Is anyone any further with getting this working? I'm trying to install it as part of therubyracer and am unable to. 👍 |
I just tried installing the gem using gcc49, still getting the same error.
|
I may be unpopular, but "install gcc 4.2" is not the same as "install apple developer tools." I have the latest dev tools installed, and the latest Xcode, and it does not build. I cannot install another version of gcc because of other reasons, but it should build and install with the latest Xcode + apple provided dev tools. |
./rr.h:510:118: error: no type named 'AccessorInfo' in namespace 'v8'; did you mean 'Accessor'? make failed, exit code 2 Gem files will remain installed in /Users/aaron/.rvm/gems/ruby-2.0.0-p247/gems/therubyracer-0.12.1 for inspection. |
@aaronlifton, what version of libv8 are you trying to link against? |
I too have this issue on Yosemite beta, I have tried
Has anyone else figured a workaround solution? |
This worked for me (Running Yosemite Beta 1 with x-code command line utils and homebrew ruby 2.1.2p95), although it did throw errors
|
@patricksereno thanks, that worked a treat for me. |
You should be able to now use the released version of the libv8
|
I am still getting the same error while trying to install libv8 using OS X 10.10 DP7 JeffMenos:iugport2 jeffreymenos$ git clone https://github.com/cowboyd/libv8.git Your user account isn't allowed to install to the system Rubygems.
to install the gems into ./vendor/bundle/, or you can enter your password Password: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
creating Makefile make "DESTDIR=" clean make "DESTDIR=" make failed, exit code 2 Gem files will remain installed in /var/folders/m0/hvxtshys5m57n_j_8lpkf1_w0000gq/T/bundler20140910-11404-1o1es3g/json-1.8.1/gems/json-1.8.1 for inspection. Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
creating Makefile make "DESTDIR=" clean make "DESTDIR=" make failed, exit code 2 Gem files will remain installed in /var/folders/m0/hvxtshys5m57n_j_8lpkf1_w0000gq/T/bundler20140910-11519-6mlbxr/json-1.8.1/gems/json-1.8.1 for inspection. |
I am working with the latest 10.10 update and #304 (comment) worked for me. thanks @shanbhardwaj |
rvm reinstall ruby --disable-binary worked for me |
I went into my Gemfile.lock and changed libv8 version from 3.16.14.3 to 3.16.14.7. therubyracer and libv8 installed fine after that with 'bundle install'. OSX 10.10 |
I was having namespace 'v8' issues that prevented me from installing therubyracer. After deleting Gemfile.lock I was able to proceed. |
+1 for libv8 version 3.16.14.7 |
@mgauthier-joist there is a binary Yosemite gem for 3.16.14.7 You can either run |
Hey, this is working for me: https://gist.github.com/jpodlech/837c7e5103c4cf5cb9b1 |
Yes, 👍 |
+1 for libv8 version 3.16.14.7 |
I had the same issue and this worked for me. Looks like the new versions definitely fixed it. $ gem install libv8 -v '3.16.14.7' |
I had the same issue of therubyracer failing. But first, I had libv8 -v '3.16.14.3' failing for me on the first run. I ran gem install libv8 -v '3.16.14.3' -- --with-system-v8 which worked. Then therubyracer failed. I ran gem install libv8 -v '3.16.14.7' -- --with-system-v8 which worked, then gem install therubyracer and all was well. |
Downgrade the Command Line Tools to 6.2 via Apple's Developer Download Page worked for me. |
+1 for @shanbhardwaj |
Guys, I fixed it out just running the command xcode-select --install which will install developers tools. Then re-start the terminal/console and run gem install rails -v 4.2.1 or the rails version you want and that's it, it works !, cheers |
had the same issue, |
Running |
if someone can't fix this issue, just update ruby version to latest, after this I resolved my problems and libv8 have been installed without any additional options |
gem install libv8 -v '3.16.14.11' -- --with-system-v8 Worked for me like magic! :) Thanks guys |
I had to upgrade my ruby version for this to work, I was on ruby-2.0.0-p451 and upgraded to ruby-2.0.0-p576 and was fine. |
The following steps were necessary for me:
|
@gguuss instructions worked for me. Thx! |
Thanks @gguuss. +1 |
Hello, I had the same as @PhilCoggins I tried tons of solutions: Nothing worked. As it turned out my problem was related to the version of I had to make sure that my I use Mac OS X Yosemite |
@ponyczek I have similar issues. For some reason bundler will not use the rvm'd version of ruby, even when selected. When I manually enter the debugger build directory under the rvm environment it bundles just fine. The symptom is that it tries to use the system ruby which is immutable and the older 2.0.0. I do not know what causes this. |
Note: this may not be an issue with therubyracer. I have checked #301 and this seems to be unrelated to my issue.
I just installed yosemite 10.10, using XCode 6 command line tools (set from XCode).
Thoughts?
The text was updated successfully, but these errors were encountered: