के माध्यम से रत्न स्थापित करते समय अनुमति अस्वीकार कर दी गई है, मैं गिटलैब सेट करने की कोशिश कर रहा हूं और इस प्रकार सुडो, का उपयोग कर किसी अन्य उपयोगकर्ता खाते से कुछ रत्न स्थापित कर रहा हूं लेकिन मुझे लगातार Permission denied
त्रुटि मिल रही है।Errno :: EACCES: gitlab
sudo -u gitlab -H bundle install --deployment --without development test postgres
> Using ... (a lot of successful gems there)
> Using pygments.rb (0.3.2) from https://github.com/gitlabhq/pygments.rb.git (at master)
> Errno::EACCES: Permission denied - pygments.rb-0.3.2.gem
> An error occurred while installing pygments.rb (0.3.2), and Bundler cannot continue.
> Make sure that `gem install pygments.rb -v '0.3.2'` succeeds before bundling.\
sudo -u gitlab -H gem install pygments.rb -v '0.3.2'
> Successfully installed pygments.rb-0.3.2
> 1 gem installed
> Installing ri documentation for pygments.rb-0.3.2...
> Installing RDoc documentation for pygments.rb-0.3.2...
# no matter how many times I run this command, I always get the same output
# as if the gem installation doesn't stick
# I've tried to chmod
chmod 777 -R /usr/local/lib/ruby
# then Again
sudo -u gitlab -H bundle install --deployment --without development test postgres
# same result, Errno::EACCES: Permission denied - pygments.rb-0.3.2.gem
आप की कोशिश की है चल रहा है बस 'सु उपयोगकर्ता के स्वामित्व में है - gitlab' है कि उपयोगकर्ता के रूप में प्रवेश और फिर कमांड चलाने और जब आप समाप्त कर रहे हैं करने के लिए लॉगआउट ? यह आसान हो सकता है। – iain
हाँ। मैंने किया। वही परिणाम ('Errno :: EACCES: अनुमति अस्वीकार - pygments.rb-0.3.2.gem') – Alex
आप बिन और मणि dirs के लिए प्रोजेक्ट स्थानीय dirs का उपयोग करने का प्रयास कर सकते हैं। मैं इसे अपनी सभी परियोजनाओं पर करता हूं उदा। 'cd/home/gitlab/gitlab' फिर 'बंडल इंस्टॉल - बिन्स्टबस - पैथ विक्रेता' (गिटलैब के रूप में) और सभी रत्न प्रोजेक्ट रूट के सापेक्ष ./vendor और सभी exe में ./bin में जाते हैं। – iain