LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2014, 02:16 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 565

Rep: Reputation: Disabled
Understanding different environments when installing software


What is the effect of installing applications as root versus sudo, specifically when ruby is involved?

The reason I ask is I have been trying to install gitlab on Centos 6.5 which uses ruby per https://github.com/gitlabhq/gitlab-r...install/centos. The instructions often use sudo in the command.

When doing the install, I was logged on as root. All the files in the newly created git user have user as root. When attempting to do some commands, I would often get "sudo: bundle: command not found". Since I was root, I could perform the commands by eliminating the sudo part, but then had other problems.

When installing some applications such as gitlab, should I be logged on as a normal user, and use sudo? How is PATH involved with this? Any other considerations I need to be aware of?

Thank you
 
Old 03-17-2014, 05:19 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
If you're going to use a custom install as per that sort of page, stick to its instructions unless you really know better.
Basically, you should try to avoid using root as a user and even for installing SW unless its absolutely reqd.
 
Old 03-17-2014, 08:04 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 565

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
If you're going to use a custom install as per that sort of page, stick to its instructions unless you really know better.
Basically, you should try to avoid using root as a user and even for installing SW unless its absolutely reqd.
Thanks Chris,

No, I don't really know better, and am trying to follow it exactly.

How do I know when it is absolutely required? Do you know if this install instructions assumes user is root? As a normal user, I get hung up as shown below. I don't know if it is because I originally tried to install ruby as root.

Code:
-bash-4.1$ gem install bundler --no-ri --no-rdoc
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/local/lib/ruby/gems/2.1.0 directory.
-bash-4.1$
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Understanding the Value of Software LXer Syndicated Linux News 0 02-11-2007 12:03 PM
LXer: Understanding the Free Software Foundation LXer Syndicated Linux News 0 02-06-2007 06:54 AM
LXer: Software HELPS DEPLOY, MANAGE OPEN SOURCE ENVIRONMENTS LXer Syndicated Linux News 0 01-08-2007 07:54 PM
trouble understanding how to unpack and install downloaded software thejester Linux - Newbie 1 08-02-2004 05:22 AM


All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration