sbadia / puppet-gitlab

Puppet module for manage GitLab installation
http://forge.puppetlabs.com/sbadia/gitlab
GNU General Public License v3.0
131 stars 76 forks source link

build fails because cmake is not installed #184

Closed sammcj closed 9 years ago

sammcj commented 10 years ago

It looks like the gems for gitlab require cmake to build but this is not specified in the module: Branch: gitlab-7-2-stable

Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: Installing foreman 0.63.0
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:     /home/git/.rbenv/versions/2.1.2/bin/ruby extconf.rb
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: checking for cmake... no
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: ERROR: CMake is required to build Rugged.
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: *** extconf.rb failed ***
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: Could not create Makefile due to some reason, probably lack of necessary
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: libraries and/or headers.  Check the mkmf.log file for more details.  You may
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: need configuration options.
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: Provided configuration options:
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --with-opt-dir
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --without-opt-dir
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --with-opt-include
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --without-opt-include=${opt-dir}/include
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --with-opt-lib
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --without-opt-lib=${opt-dir}/lib
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --with-make-prog
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --without-make-prog
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --srcdir=.
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --curdir
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:  --ruby=/home/git/.rbenv/versions/2.1.2/bin/ruby
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: extconf failed, exit code 1
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns:
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/rugged-0.21.0 for inspection.
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: Results logged to /home/git/gitlab/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/rugged-0.21.0/gem_make.out
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: An error occurred while installing rugged (0.21.0), and Bundler cannot continue.
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: Make sure that `gem install rugged -v '0.21.0'` succeeds before bundling.
Error: bundle install --without development aws test mysql --deployment returned 5 instead of one of [0]
Error: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: change from notrun to 0 failed: bundle install --without development aws test mysql --deployment returned 5 instead of one of [0]
andyleejordan commented 10 years ago

Yup, precisely what's going on. An update to a necessary gem 'rugged' now requires 'pkg-config' and 'cmake' according to the upgrade docs for 7.1 to 7.2. We'll need to add these as dependencies.

sammcj commented 10 years ago

Simple.

Other than that I just upgraded from the non-rbenv 6.7 module without a hitch!

Good work guys.

Schwartzmeyer notifications@github.com wrote:

Yup, precisely what's going on. An update to a necessary gem 'rugged' now requires 'pkg-config' and 'cmake' according to the upgrade docs for 7.1 to 7.2 https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/7.1-to-7.2.md#4-install-new-system-dependencies. We'll need to add these as dependencies.

— Reply to this email directly or view it on GitHub https://github.com/sbadia/puppet-gitlab/issues/184#issuecomment-54513741.

sbadia commented 9 years ago

Fixed in 0a0f00e47c31c13fb88522f229501dbd1dcbee0a, thanks for reporting this issue :)