LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01:16 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

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, 04:19 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
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, 07:04 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

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 11:03 AM
LXer: Understanding the Free Software Foundation LXer Syndicated Linux News 0 02-06-2007 05:54 AM
LXer: Software HELPS DEPLOY, MANAGE OPEN SOURCE ENVIRONMENTS LXer Syndicated Linux News 0 01-08-2007 06:54 PM
trouble understanding how to unpack and install downloaded software thejester Linux - Newbie 1 08-02-2004 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 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
Open Source Consulting | Domain Registration