Folgen Sie diesem Tutorial [ link ], um gitlab auf einem dedizierten Server zu installieren. Ich muss einfach :
Sudo -u git -H bundle install --deployment --without development test postgres aws
Bei der Installation von rugged ist jedoch ein Fehler aufgetreten:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/Ruby extconf.rb
checking for cmake... no
ERROR: CMake is required to build Rugged.
*** 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=/usr/local/bin/Ruby
Gem files will remain installed in /home/git/gitlab/vendor/bundle/Ruby/2.0.0/gems/rugged-0.21.2 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/Ruby/2.0.0/gems/rugged-0.21.2/ext/rugged/gem_make.out
An error occurred while installing rugged (0.21.2), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.21.2'` succeeds before bundling.
Also habe ich rugged installiert -> ich habe CMake & config-pkg installiert:
/home/git/gitlab$ Sudo gem install rugged
Building native extensions. This could take a while...
Successfully installed rugged-0.21.2
Parsing documentation for rugged-0.21.2
unable to convert "\xC0" from ASCII-8BIT to UTF-8 for lib/rugged/rugged.so, skipping
1 gem installed
Aber es ändert nichts:
Errno::EACCES: Permission denied - /home/git/gitlab/vendor/bundle/Ruby/2.0.0/gems/rugged-0.21.2/LICENSE
An error occurred while installing rugged (0.21.2), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.21.2'` succeeds before bundling.
Irgendeine Idee ?
Versuchen Sie zunächst, cmake zu installieren:
Sudo apt-get install cmake
Wiederholen Sie dann den Befehl:
Sudo -u git -H bundle install --deployment --without development test postgres aws
Für OSX, wenn Sie Homebrew verwenden:
brew install cmake
bundle install
Für mich beklagte sich gem über die fehlende Abhängigkeit von pkg-config, also habe ich Folgendes getan:
Sudo apt-get install pkg-config
und dann
Sudo gem install rugged -v '0.22.2'
danach kehre ich zu meiner älteren Version von gitlab zurück und führe das Skript für das Upgrade erneut aus.
Meine ältere Version von Gitlab war 6.9.2 und die aktualisierte Version 8.0.5
Mac OSX 10.6 oder neuer finden Sie unter folgender URL:
Kann das Problem nur so beheben:
download von https://cmake.org/download/ . Extrahieren Sie die heruntergeladene TAR-Datei und dann:
cd $CMAKE_DOWNLOAD_PATH
./configure
make
make install
Und nach diesen Schritten konnte ich erfolgreich ausführen:
gem install rugged -v '0.26.0'