Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install gitlab and am following https://github.com/gitlabhq/gitlab-r...install/centos It is an existing Centos 6.2 server (not 6.5) with MySQL. I got 90% through it, but am receiving the below error. I know almost nothing about Ruby/Gems, and would appreciate some insight where I am going astray. Thank you
I don't know much about gems either, but have you tried uninstalling and reinstalling mysql? Or installing it if you didn't have it in the first place.
I don't know much about gems either, but have you tried uninstalling and reinstalling mysql? Or installing it if you didn't have it in the first place.
Hi Redd9, MySQL is working great. I haven't, however, tried uninstalling and reinstalling. Any reason I should?
I tried the command without sudo, and made some progress. Think it is okay doing so as root, or will this mess permissions, etc up? Maybe I should not have attempted to do the original install as root?
Code:
[root@desktop gitlab]# bundle exec rake gitlab:setup RAILS_ENV=production
Warning
You are running as user root, we hope you know what you are doing.
Things may work/fail for the wrong reasons.
For correct results you should run this as user git.
This will create the necessary database tables and seed the database.
You will lose any previous data stored in the database.
Do you want to continue (yes/no)? n
Do you want to continue (yes/no)? ^Crake aborted!
I then logged in as git (had to change user to allow remote access), but no progress.
Code:
-sh-4.1$ cd /home/git/gitlab
-sh-4.1$ sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
git is not in the sudoers file. This incident will be reported.
-sh-4.1$
I changed owner of all files in /home/git to "git", and then as user git, did the following without the sudo, and it appeared to work. I am in uncharted territory
This directory (and version of CentOS) is depreciated. For normal users,
you should use /6/ and not /6.2/ in your path. Please see this FAQ
concerning the CentOS release scheme:
Hello again, I am still stumped on the below line.
Code:
[root@desktop gitlab]# sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
sudo: bundle: command not found
[root@desktop gitlab]#
I tried installing rubygem-bundler, but I got "No package rubygem-bundler available" (yes, I extra is enabled).
What is odd is why can I execute bundle without sudo?????????????
Code:
[root@desktop gitlab]# bundle exec rake gitlab:setup RAILS_ENV=production
Warning
You are running as user root, we hope you know what you are doing.
Things may work/fail for the wrong reasons.
For correct results you should run this as user git.
This will create the necessary database tables and seed the database.
You will lose any previous data stored in the database.
Do you want to continue (yes/no)? no
Quitting...
[root@desktop gitlab]#
I don't want to do so as root user as it deviates from the documentation I am following and I don't totally know what I am doing.
you are using "sudo"
so did you set it up correctly ?
it is installed but disabled and not configured by default
the mysql DB is owned by the user "mysql"
is that user in the sudoers list
RHEL/CentOS/Fedora normally uses "su -" for installing software
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.