Se ha producido un error al instalar rugged
Siguiendo este tutorial [ enlace] para instalar gitlab en un servidor dedicado. Necesito :
sudo -u git -H bundle install --deployment --without development test postgres aws
Pero se produjo un error al instalar rugged:
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.
Así que instalé rugged- > Instalé CMake & config-pkg:
/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
, Pero no cambia nada :
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.
Alguna idea ?
5 answers
Primero, intente instalar cmake:
sudo apt-get install cmake
Luego, repita el comando:
sudo -u git -H bundle install --deployment --without development test postgres aws
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2017-06-15 15:53:56
Para OSX si estás usando homebrew:
brew install cmake
bundle install
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-05-16 21:32:56
Para mí, gem se quejaba de la falta de dependencia de pkg-config, así que lo hice:
sudo apt-get install pkg-config
Y luego
sudo gem install rugged -v '0.22.2'
Después de eso, vuelvo a mi versión anterior de gitlab y vuelvo a ejecutar el script para la actualización.
Mi versión anterior de gitlab era 6.9.2 y la versión actualizada 8.0.5
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-21 16:55:52
Mac OSX 10.6 o posterior por favor refiérase a esta url:
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-09-22 18:36:08
Puede solucionar este problema solo de esa manera:
Descarga desde https://cmake.org/download / . Extrae el archivo tar descargado y luego:
cd $CMAKE_DOWNLOAD_PATH
./configure
make
make install
Y después de estos pasos pude ejecutar con éxito:
gem install rugged -v '0.26.0'
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-05-22 10:09:01