Error Installing Atomic

别来无恙 提交于 2019-11-28 10:05:43
webdevguy

I had this problem. It turned out to be caused by installing Mac OS 10.9 (Mavericks), since Mavericks has a new stand alone command line tools separate from Xcode. To solve this, I deleted /Applications/Xcode and then installed the stand alone command line tools via:

Note: First line may not be needed, see comments below

sudo rm -rf /Applications/Xcode
xcode-select --install

then click 'install' from the OSX pop up window

source: http://www.computersnyou.com/2025/2013/06/install-command-line-tools-in-osx-10-9-mavericks-how-to/

For those who reach this page by googling, I solved a similar issue while Installing atomic (1.1.13) on mac this way:

    sudo ln -s /usr/bin/llvm-gcc-4.2 /usr/bin/gcc-4.2

It seems to be because of conflicting Xcode updates.

The error messages don't give the slightest clue as to what the real problem is. Bundler or a component it calls does not properly handle directory names with spaces in them. In my case it was .../Data RAID/... that caused the problem. Once I moved the project to a different drive where there would be no spaces in the path, everything worked fine. It appears it may be only the location of the gems that are the issue. In an earlier attempt, I created a project where the gems weren't located in a path containing spaces, but the project was. It didn't have any problems as far as I went with it. Notice also that the gem install atomic was successful.

If you're attempting to install Atomic (or bundle update - and that is failing on atomic), on Mac/OSX - you will need to install or update your command line tools for XCode for whatever OS version you are using.

As mentioned above, but I feel like that answer is a little esoteric. Atomic needs these tools for multithreading.

I was getting the same error message and it seems to have been caused by a (seemingly harmless yet erroneous) line in my Gemfile. When used correctly (on a system using RVM) these two lines should be able to use the correct version of Ruby and the desired gemset.

ruby '2.0.0'
#ruby-gemset=railstut_rails_4_0 ; ruby-2.0.0-p247@railstut_rails_4_0

I was under the impression that I was merely adding a comment with the second line- however RVM (by design/as expected) created a new gemset with a name "*railstut_rails_4_0 ; ruby-2.0.0-p247@railstut_rails_4_0*" that had spaces and special characters. Every time I ran bundle install - even after I changed the name inside the Gemfile - RVM loaded the current erroneous gemset. To resolve, I did the following:

  1. $ rvm use ruby-2.0.0-p247@railstut_rails_4_0
  2. Update Gemfile: The first two of the following lines for the benefit of RVM setup; followed by a comment for personal reference:

    ruby '2.0.0'
    #ruby-gemset=railstut_rails_4_0
    #ruby-2.0.0-p247@railstut_rails_4_0

  3. bundle install --without production

  4. bundle update
  5. bundle install

For those who got here by googling: I ran into something similar with atomic 1.1.14.

In my case it was actually Avast (anti-virus program) that wouldn't let me execute an atomic-specific file.

It was solved by excluding the file from Avast, and then run gem install atomic -v '1.1.14' again.

I'm using Mac OS Lion, and for resolve this problem i installed the new Command Line Tools. Steps: Open XCode -> Downloads -> Install Command Line Tools. Just it.

This 100% has to do with Spaces in the path. The error it spits out shows the attempted install path. Annoying error.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!