Подтвердить что ты не робот

Произошла ошибка при установке прочной

Следуя этому руководству [ссылка], установите gitlab на выделенный сервер. Мне нужно:

sudo -u git -H bundle install --deployment --without development test postgres aws

Но при установке прочной ошибки произошла ошибка:

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.

Итак, я установил прочный → я установил 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

Но это ничего не меняет:

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.

Любая идея?

4b9b3361

Ответ 1

Сначала попробуйте установить cmake:

sudo apt-get install cmake

Затем повторите команду:

sudo -u git -H bundle install --deployment --without development test postgres aws

Ответ 2

Для OSX, если вы используете доморощенный:

brew install cmake 
bundle install

Ответ 3

Для меня жемчужина жаловалась на отсутствие зависимости pkg-config, поэтому я сделал:

sudo apt-get install pkg-config

а затем

sudo gem install rugged -v '0.22.2'

после этого я вернусь к своей старой версии gitlab и заново запустил script для обновления.

Моя старшая версия gitlab была 6.9.2, а обновленная версия 8.0.5

Ответ 4

Mac OSX 10.6 или более поздней, пожалуйста, обратитесь к этому URL:

http://www.cmake.org/download/