android - How to install Fastlane on Buddybuild -
i try install fastlane in pre build step on buddybuild.
my pre build script looks this:
#!/bin/bash if ! fastlane >/dev/null; echo "installing fastlane may need sudo" sudo gem install fastlane else echo "updating fastlane may need sudo" sudo gem update fastlane fi
i following error:
error: error installing fastlane:
error: failed build gem native extension.
/usr/bin/ruby2.1 mkrf_conf.rb .
building native extensions. take while... /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:89:in `run': error: failed build gem native extension. (gem::ext::builderror) .
/usr/bin/ruby2.1 extconf.rb .
mkmf.rb can't find header files ruby at
/usr/lib/ruby/include/ruby.h extconf failed, exit code 1
how can solve this?
rest of log
gem files remain installed in /var/lib/gems/2.1.0/gems/unf-0.2.0.beta2/ext/gems/gems/unf_ext-0.0.7.4 inspection. results logged /var/lib/gems/2.1.0/gems/unf-0.2.0.beta2/ext/gems/extensions/x86_64-linux/2.1.0/unf_ext-0.0.7.4/gem_make.out /usr/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:38:in block in build /usr/lib/ruby/2.1.0/tempfile.rb:324:in 'open' /usr/lib/ruby/2.1.0/rubygems/ext/ext_conf_builder.rb:17:in 'build' /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:161:in 'block (2 levels) in build_extension' /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in 'chdir' /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:160:in 'block in build_extension' /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in 'synchronize' /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:159:in `build_extension' /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:198:in 'block in build_extensions' /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in 'each' /usr/lib/ruby/2.1.0/rubygems/ext/builder.rb:195:in 'build_extensions' /usr/lib/ruby/2.1.0/rubygems/installer.rb:677:in 'build_extensions' /usr/lib/ruby/2.1.0/rubygems/installer.rb:232:in 'install' /usr/lib/ruby/2.1.0/rubygems/resolver/specification.rb:78:in 'install' /usr/lib/ruby/2.1.0/rubygems/request_set.rb:206:in 'block in install_into' /usr/lib/ruby/2.1.0/rubygems/request_set.rb:198:in 'each' /usr/lib/ruby/2.1.0/rubygems/request_set.rb:198:in 'install_into' /usr/lib/ruby/2.1.0/rubygems/request_set.rb:119:in 'install' /usr/lib/ruby/2.1.0/rubygems/dependency_installer.rb:389:in 'install' mkrf_conf.rb:15:in '' rake failed, exit code 1 gem files remain installed in /var/lib/gems/2.1.0/gems/unf-0.2.0.beta2 inspection. results logged /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/unf-0.2.0.beta2/gem_make.out
change script to:
if ! fastlane >/dev/null; echo "installing fastlane..." echo password | sudo -s gem install fastlane else echo "updating fastlane..." echo password | sudo -s gem update fastlane fi
Comments
Post a Comment