An error occurred while installing rugged

后端 未结 6 1686
长发绾君心
长发绾君心 2021-02-01 12:07

Following this tutorial [link] to install gitlab on a dedicated server. I need to :

sudo -u git -H bundle install --deployment --without development test postgre         


        
相关标签:
6条回答
  • 2021-02-01 12:42

    Can fix this problem only that way:

    download from https://cmake.org/download/. Extract the downloaded tar file and then:

    cd $CMAKE_DOWNLOAD_PATH
    ./configure
    make
    make install
    

    And after this steps I could successfully run:

    gem install rugged -v '0.26.0'
    
    0 讨论(0)
  • 2021-02-01 12:47

    Note: The above mentioned solutions did not work for me.


    Here is the error log I got

    checking for gmake... no
    checking for make... yes
    Building Rugged using system libraries.
    libgit2 version is not compatible, expected ~> 0.99.0
    *** 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.
    

    It was mainly saying libgit2 version is not compatible, expected ~> 0.99.0

    and I tried gem install rugged -v '0.99.0' and then bundle install.

    then the problem is solved.

    0 讨论(0)
  • 2021-02-01 12:47

    Mac OSX 10.6 or later please refer to this url:

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

    0 讨论(0)
  • 2021-02-01 12:53

    First, try installing cmake:

    sudo apt-get install cmake
    

    Then, repeat the command:

    sudo -u git -H bundle install --deployment --without development test postgres aws
    
    0 讨论(0)
  • 2021-02-01 12:55

    For me, gem was complaining about pkg-config missing dependence, so I did:

    sudo apt-get install pkg-config
    

    and then

    sudo gem install rugged -v '0.22.2'
    

    after that, I revert to my older version of gitlab and re-run the script for the upgrade.

    My older version of gitlab was 6.9.2 and the upgraded version 8.0.5

    0 讨论(0)
  • 2021-02-01 13:00

    For OSX if you're using homebrew:

    brew install cmake 
    bundle install
    
    0 讨论(0)
提交回复
热议问题