Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6172

Closed
Open
Created Jan 27, 2014 by Administrator@rootOwner

Git user needs root permissions?

Created by: xelab

Hi,

i can't install Gitlab on Debian 7 (i followed the doc) because it seems that's impossible to install charlock_holmes gem without root permissions. Here the errors when running :

sudo -u git -H bundle install --deployment --without development test postgres aws
Using timers (1.1.0)
Using celluloid (0.15.2)

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb
checking for main() in -licui18n... *** 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
        --with-icu-dir
        --without-icu-dir
        --with-icu-include
        --without-icu-include=${icu-dir}/include
        --with-icu-lib
        --without-icu-lib=${icu-dir}/
        --with-icui18nlib
        --without-icui18nlib
/usr/local/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:519:in `try_link0'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:534:in `try_link'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:720:in `try_func'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:950:in `block in have_library'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:340:in `block (2 levels) in postpone'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:310:in `open'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:340:in `block in postpone'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:310:in `open'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:336:in `postpone'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'
        from /usr/local/lib/ruby/2.0.0/mkmf.rb:945:in `have_library'
        from extconf.rb:27:in `<main>'


Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/charlock_holmes-0.6.9.4 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/gem_make.out

And when i run:

sudo -u git -H gem install charlock_holmes

I got this:

ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/local/lib/ruby/gems/2.0.0 directory.
Assignee
Assign to
Time tracking