Installation help for gitlab
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
Code:
[root@desktop gitlab]# sudo -u git -H /usr/local/bin/bundle install --deployment --without development test postgres aws |
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.
|
Quote:
|
I'd guess you are missing the development parts of mysql.
I.e. you cannot build a "Mysql application" with the "run time mysql" only. Install the package that provides mysql.h and other development files : sudo apt-get install libmysqlclient-dev EDIT : Would be # 'yum install mysql-devel' for CentOS. - |
Quote:
Code:
yum install mysql55 mysql55-server |
# 5.
Sorry, it's "mysql-devel" from the CentOS "base.repo" But : When you have chosen "mysql55"/ius : The required development file from the ius.repo : # yum install mysql55-devel * 32 http://dl.iuscommunity.org/pub/ius/s...r_m.group.html * 64 http://dl.iuscommunity.org/pub/ius/s...r_m.group.html .. Will provide /usr/include/mysql/{mysql.h, 33-other-files.h, mysql/**} .. and /usr/lib(64)/mysql/{libmysqlclient_r.so, libmysqlclient.so} * The command to find a package providing mysql.h is $ yum provides */mysql.h - |
Thanks knudfl, that did the trick!
Ran into another snag. What does the following mean? Thank you Code:
[root@desktop gitlab]# sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production |
# 7 .
That a good question as .. $ yum 'provides */bundle' probably will reply with a lot of packages. But you are using ruby, so why not try # yum install rubygem-bundler → → /usr/bin/bundle Note : 'rubygem-bundler' should be in "CentOS-extra.repo" : You may have to enable "extra" ? ( edit enable=0 to enable=1 ). - |
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 Code:
-sh-4.1$ cd /home/git/gitlab |
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 :(
Code:
bundle exec rake gitlab:setup RAILS_ENV=production |
you did point the out of date yum to the historical archive " the vault"
the 6.2 repos were removed a year ago http://vault.centos.org/ after 6.2 went "end of life" back in July of 2012 and please HEED the warning from cent about using a unsupported OS -- the place holder in the old 6.2 repo mirrors http://mirrors.arsc.edu/centos/6.2/readme Quote:
|
Thanks John,
I just realized I am at 6.5. I forgot that I installed at 6.4, not 6.2, and update must have gotten me to 6.5? |
# 12 : $ cat /etc/redhat-release
The file /etc/redhat-release , etc. **-release are updated, when you do: # yum update |
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 What is odd is why can I execute bundle without sudo????????????? Code:
[root@desktop gitlab]# bundle exec rake gitlab:setup RAILS_ENV=production |
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 |
Quote:
I was logged on as root. I've since tried logging on as a normal user, and used "su" (not "su - somecommand"), but no difference. I've been using sudo earlier per the install instructions with no problem. bundle is located at /usr/local/bin/bundle, and I ran visudo, and added /usr/local/bin to the path. Code:
[root@desktop gitlab]# whereis bundle |
Does the following shed any light? Why do I need to specify the full file path if it is already in my sudo path (see my previous post). Thank you
Code:
[root@desktop gitlab]# sudo -u git -H bundle |
I am an idiot!
I had /user/local/bin in my sudo path. |
there is a VERY !!! big difference in "su" and su -"
for any program that is in /sbin "su - "MUST!!!! be used su = root BUT WITH THE NORMAL USER'S $PATH su - = root BUT using the ROOT accounts DIFFERENT $PATH |
Quote:
Didn't understand the differences between "su" and "su -", but now I do. Thanks |
All times are GMT -5. The time now is 12:40 PM. |