ROR environment Setup problem on Mac

Source: Internet
Author: User
Tags install openssl openssl

The last night I tortured, I was going crazy.

According to the http://railstutorial-china.org method of preparation, to RVM requirements This command execution when the trouble comes.

wutekimacbook-pro:~ wuxj$ RVM requirementschecking requirements for OSX. Error:no available formula for GCC46 installing requirements for OSX. Updating system .... Error running ' Requirements_osx_brew_update_system ', showing last lines Of/users/wuxj/.rvm/log/1409358409/update_ System.log    Https://github.com/Homebrew/homebrew/wiki/Common-Issuesand Make sure ' Brew Update ' works before Continuing. ' + rvm_pretty_print stderr+ case ' ${rvm_pretty_print_flag:=auto} ' in+ case ' ${term:-dumb} ' in+ case ' $ ' in+ [[-T 2]]+ re Turn 1+ printf%b ' Failed to update Homebrew, follow instructions here:    https://github.com/Homebrew/homebrew/wiki/ Common-issuesand make sure ' Brew Update ' works before continuing.\n ' Failed to update Homebrew, follow instructions here:
   https://github.com/homebrew/homebrew/wiki/common-issuesand make sure ' Brew Update ' works before continuing.+ return 1Requirements installation failed with status:1.

Started thinking that homebrew was not updated, so the following brew update was performed, the result:

wutekimacbook-pro:~ wuxj$ Brew updateerror:the following untracked working tree files would be overwritten by merge:    LIBRARY/FORMULA/ANT.RB    library/formula/libarchive.rbplease Move or remove them before you can merge. Abortingerror:failure while Executing:git pull-q origin Refs/heads/master:refs/remotes/origin/master

Performed the next brew Doctor

wutekimacbook-pro:~ wuxj$ Brew doctorwarning:some Directories in your path end in a slash. Directories in your path should not end in a slash. This can break otherdoctor checks. The following directories should be edited:    /users/wuxj/downloads/adt-bundle-mac-x86_64-20131030/sdk/ Platform-tools/error:homebrew doesn ' t know what compiler versions ship with your versionof Xcode (5.1.1). Please ' Brew update ' and if-doesn ' t help, filean issue with the output of ' brew--config ':  HTTPS://GITHUB.COM/MXC l/homebrew/issuesthanks!

Executing bundles

。。。    Gem::ext::builderror:error:failed to build gem native extension. /users/wuxj/.rvm/rubies/ruby-2.1.2/bin/ruby-r./siteconf20140830-1163-1hd6znq.rb extconf.rb Building Nokogiri using  Packaged libraries.-----Libiconv is missing. Please visit http://nokogiri.org/tutorials/installing_nokogiri.html to help with installing dependencies.-----* * *  EXTCONF.RB failed ***could not create Makefile due to some reason, probably lack of necessarylibraries and/or headers.  Check the Mkmf.log file for more details. You mayneed configuration options. Provided configuration options:--with-opt-dir--without-opt-dir--with-opt-include--without-opt-include=${op T-dir}/include--with-opt-lib--without-opt-lib=${opt-dir}/lib--with-make-prog--without-make-prog--SRCDI    R=. --curdir--ruby=/users/wuxj/.rvm/rubies/ruby-2.1.2/bin/ruby--help--clean--use-system-libraries--enable- Static--disable-static--with-zlib-dir--without-zlib-dir--with-zLib-include--without-zlib-include=${zlib-dir}/include--with-zlib-lib--without-zlib-lib=${zlib-dir}/lib--en Able-cross-build--disable-cross-buildextconf failed, exit code 1Gem files would remain installed In/users/wuxj/.rvm/ge ms/ruby-2.1.2/gems/nokogiri-1.6.3.1 for inspection. Results logged To/users/wuxj/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.3.1/gem_ Make.outan error occurred while installing Nokogiri (1.6.3.1), and bundler cannot continue. Make sure that ' gem install nokogiri-v ' 1.6.3.1 ' succeeds before bundling.

Still not, execute gem install nokogiri-v ' 1.6.3.1 ', or not.

Wutekimacbook-pro:sample_app wuxj$ gem install nokogiribuilding native extensions. This could take a while ... Building Nokogiri using packaged libraries.    Error:error installing nokogiri:ERROR:Failed to build gem native extension. /users/wuxj/.rvm/rubies/ruby-2.1.2/bin/ruby-r./siteconf20140830-1261-1vvz386.rb extconf.rbBuilding Nokogiri using  Packaged libraries.-----Libiconv is missing. Please visit http://nokogiri.org/tutorials/installing_nokogiri.html to help with installing dependencies.-----* * *  EXTCONF.RB failed ***could not create Makefile due to some reason, probably lack of necessarylibraries and/or headers.  Check the Mkmf.log file for more details. You mayneed configuration options. Provided configuration options:--with-opt-dir--without-opt-dir--with-opt-include--without-opt-include=${op T-dir}/include--with-opt-lib--without-opt-lib=${opt-dir}/lib--with-make-prog--without-make-prog--SRCDI    R=. --curdir--ruby=/users/wuxj/.rvm/Rubies/ruby-2.1.2/bin/ruby--help--clean--use-system-libraries--enable-static--disable-static--with    -zlib-dir--without-zlib-dir--with-zlib-include--without-zlib-include=${zlib-dir}/include--with-zlib-lib --without-zlib-lib=${zlib-dir}/lib--enable-cross-build--disable-cross-buildextconf failed, exit code 1Gem files W Ill remain installed in/users/wuxj/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.3.1 for inspection. Results logged To/users/wuxj/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.3.1/gem_ Make.out

Finally, I found a great God in StackOverflow to save me. is a variety of brew installation ah ...

Brew Install Autoconfbrew Install automakebrew install Libtoolbrew install AP
Ple-gcc42brew Install libyamlbrew Install libxsltbrew install libksbabrew install OpenSSL

Results

Wutekimacbook-pro:sample_app wuxj$ RVM requirementschecking requirements for OSX. Updating certificates in '/usr/local/etc/openssl/cert.pem '. Requirements installation successful.

Finally solved.

ROR environment Setup problem on Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.