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

Errors running rake bootstrap #33

Closed
bret3d opened this issue Sep 13, 2014 · 2 comments
Closed

Errors running rake bootstrap #33

bret3d opened this issue Sep 13, 2014 · 2 comments

Comments

@bret3d
Copy link

bret3d commented Sep 13, 2014

OS X Yosemite Beta 10.10

Following instructions http://guides.cocoapods.org/contributing/dev-environment.html

Brets-MBP:Documents bret$ git clone https://github.com/CocoaPods/Rainforest.git
Cloning into 'Rainforest'...
remote: Counting objects: 260, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 260 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (260/260), 56.93 KiB | 0 bytes/s, done.
Resolving deltas: 100% (149/149), done.
Checking connectivity... done.
Brets-MBP:Documents bret$ cd Rainforest/
Brets-MBP:Rainforest bret$ rake bootstrap
[!] Please install the bundler gem manually:
    $ [sudo] gem install bundler
Brets-MBP:Rainforest bret$ sudo gem install bundler
Password:
Fetching: bundler-1.7.2.gem (100%)
Successfully installed bundler-1.7.2
Parsing documentation for bundler-1.7.2
Installing ri documentation for bundler-1.7.2
1 gem installed
Brets-MBP:Rainforest bret$ rake bootstrap
/usr/bin/bundle

--------------------------------------------------------------------------------
Fetching repositories list
--------------------------------------------------------------------------------
Found 35 public repositories

--------------------------------------------------------------------------------
Cloning the GEM repositories
--------------------------------------------------------------------------------

Cloning CocoaPods
git clone https://github.com/CocoaPods/CocoaPods.git
Cloning into 'CocoaPods'...
remote: Counting objects: 29243, done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 29243 (delta 42), reused 0 (delta 0)
Receiving objects: 100% (29243/29243), 26.86 MiB | 2.55 MiB/s, done.
Resolving deltas: 100% (18803/18803), done.
Checking connectivity... done.

Cloning Xcodeproj
git clone https://github.com/CocoaPods/Xcodeproj.git
Cloning into 'Xcodeproj'...
remote: Counting objects: 6343, done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 6343 (delta 25), reused 0 (delta 0)
Receiving objects: 100% (6343/6343), 2.13 MiB | 1.18 MiB/s, done.
Resolving deltas: 100% (3305/3305), done.
Checking connectivity... done.

Cloning CLAide
git clone https://github.com/CocoaPods/CLAide.git
Cloning into 'CLAide'...
remote: Counting objects: 1802, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 1802 (delta 7), reused 0 (delta 0)
Receiving objects: 100% (1802/1802), 308.05 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1065/1065), done.
Checking connectivity... done.

Cloning Core
git clone https://github.com/CocoaPods/Core.git
Cloning into 'Core'...
remote: Counting objects: 17554, done.
remote: Compressing objects: 100% (8659/8659), done.
remote: Total 17554 (delta 8726), reused 17339 (delta 8560)
Receiving objects: 100% (17554/17554), 10.58 MiB | 1.35 MiB/s, done.
Resolving deltas: 100% (8726/8726), done.
Checking connectivity... done.

Cloning cocoapods-downloader
git clone https://github.com/CocoaPods/cocoapods-downloader.git
Cloning into 'cocoapods-downloader'...
remote: Counting objects: 1410, done.
remote: Total 1410 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (1410/1410), 1.48 MiB | 2.08 MiB/s, done.
Resolving deltas: 100% (842/842), done.
Checking connectivity... done.

Cloning pod-template
git clone https://github.com/CocoaPods/pod-template.git
Cloning into 'pod-template'...
remote: Counting objects: 641, done.
remote: Total 641 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (641/641), 91.02 KiB | 0 bytes/s, done.
Resolving deltas: 100% (342/342), done.
Checking connectivity... done.

Cloning cocoapods-docs
git clone https://github.com/CocoaPods/cocoapods-docs.git
Cloning into 'cocoapods-docs'...
remote: Counting objects: 76, done.
remote: Total 76 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (76/76), done.
Checking connectivity... done.

Cloning cocoapods-trunk
git clone https://github.com/CocoaPods/cocoapods-trunk.git
Cloning into 'cocoapods-trunk'...
remote: Counting objects: 514, done.
remote: Total 514 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (514/514), 63.40 KiB | 0 bytes/s, done.
Resolving deltas: 100% (244/244), done.
Checking connectivity... done.

Cloning cocoapods-try
git clone https://github.com/CocoaPods/cocoapods-try.git
Cloning into 'cocoapods-try'...
remote: Counting objects: 438, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 438 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (438/438), 65.49 KiB | 0 bytes/s, done.
Resolving deltas: 100% (200/200), done.
Checking connectivity... done.

Cloning cocoapods-plugins
git clone https://github.com/CocoaPods/cocoapods-plugins.git
Cloning into 'cocoapods-plugins'...
remote: Counting objects: 552, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 552 (delta 8), reused 0 (delta 0)
Receiving objects: 100% (552/552), 83.65 KiB | 0 bytes/s, done.
Resolving deltas: 100% (280/280), done.
Checking connectivity... done.

Cloning shared
git clone https://github.com/CocoaPods/shared.git
Cloning into 'shared'...
remote: Counting objects: 59, done.
remote: Total 59 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (59/59), done.
Checking connectivity... done.

--------------------------------------------------------------------------------
Bootstrapping all the repositories
--------------------------------------------------------------------------------

Bootstrapping CLAide
[!] Some Rake tasks haven been disabled because the environment couldn’t be loaded. Be sure to run `rake bootstrap` first.
rake --no-search bootstrap
[!] Some Rake tasks haven been disabled because the environment couldn’t be loaded. Be sure to run `rake bootstrap` first.
/usr/bin/bundle

--------------------------------------------------------------------------------
Installing gems
--------------------------------------------------------------------------------

bundle install
Fetching gem metadata from https://rubygems.org/..........
Installing rake 10.3.2
Installing ast 2.0.0
Installing bacon 1.2.0
Installing docile 1.1.5
Using multi_json 1.10.1
Installing simplecov-html 0.8.0
Installing simplecov 0.9.0
Installing codeclimate-test-reporter 0.4.0
Using colored 1.2

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --with-ffi_c-dir
    --without-ffi_c-dir
    --with-ffi_c-include
    --without-ffi_c-include=${ffi_c-dir}/include
    --with-ffi_c-lib
    --without-ffi_c-lib=${ffi_c-dir}/
    --with-libffi-config
    --without-libffi-config
    --with-pkg-config
    --without-pkg-config
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:549:in `block in try_compile'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:502:in `with_werror'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:549:in `try_compile'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:1044:in `block in have_header'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:336:in `postpone'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:1043:in `have_header'
    from extconf.rb:16:in `<main>'


Gem files will remain installed in /var/folders/j9/wm_2z7n152x_n5k14__q5qbw0000gn/T/bundler20140913-5716-1w1xj8r/ffi-1.9.3/gems/ffi-1.9.3 for inspection.
Results logged to /var/folders/j9/wm_2z7n152x_n5k14__q5qbw0000gn/T/bundler20140913-5716-1w1xj8r/ffi-1.9.3/gems/ffi-1.9.3/ext/ffi_c/gem_make.out
An error occurred while installing ffi (1.9.3), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.3'` succeeds before bundling.
rake aborted!
Command failed with status (5): [bundle install...]
/Users/bret/Documents/Rainforest/CLAide/Rakefile:9:in `block in <top (required)>'
Tasks: TOP => bootstrap
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [rake --no-search bootstrap...]
/Users/bret/Documents/Rainforest/Rakefile:89:in `block (3 levels) in <top (required)>'
/Users/bret/Documents/Rainforest/Rakefile:86:in `chdir'
/Users/bret/Documents/Rainforest/Rakefile:86:in `block (2 levels) in <top (required)>'
/Users/bret/Documents/Rainforest/Rakefile:85:in `each'
/Users/bret/Documents/Rainforest/Rakefile:85:in `block in <top (required)>'
/Users/bret/Documents/Rainforest/Rakefile:46:in `block in <top (required)>'
Tasks: TOP => bootstrap_repos
(See full trace by running task with --trace)
Brets-MBP:Rainforest bret$ CocoaPods/bin/pod --help
https://github.com/CocoaPods/Xcodeproj.git (at master) is not yet checked out. Run `bundle install` first.
@kylef
Copy link
Contributor

kylef commented Sep 13, 2014

You have to install development tools first.

As the compiler error in that log says, you need to install the developer tools first:

$ xcode-select --install

@kylef kylef closed this as completed Sep 13, 2014
@kylef
Copy link
Contributor

kylef commented Sep 13, 2014

You might need to download them from the dev centre for Yosemite beta*.

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

2 participants