Ubuntu 12.04 LTS
Closed
Ubuntu 12.04 LTS
Created by: phishstang65
GitLab is great, I had everything working just fine with GitLab 2.4 yesterday and then Ubuntu 12.04 came out. After the update to 12.04 LTS now I can't start the GitLab Service.. I get the following error shown below. Please note that I afterward I ran sudo gem update and bundle install in the gitlabhq directory but still get the same error.. Please help!
/usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2.rb:9:in `require': libmysqlclient_r.so.16: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/mysql2.so (LoadError)
Created by: ioanszilagyi
After installing them with 'sudo gem install mysql2' and 'sudo gem install charlock_holmes' you have to move them in place -> gitlab install folder (please modify according to your needs):
/usr/local/ruby/gems/1.9.1/gems/mysql2-0.3.11 /usr/local/lib/ruby/gems/1.9.1/gems/charlock_holmes-0.6.8
to
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.11 /home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/charlock_holmes-0.6.8
By Administrator on 2012-10-20T01:16:20 (imported from GitLab project)
Created by: Leandros
Thanks for reply, if I type in
apt-get install libmysqlclient-dev
I get this error message:The following packages have unmet dependencies: libmysqlclient-dev : Depends: libmysqlclient16 (= 5.1.63-0+squeeze1) but 5.2.12-mariadb115~squeeze is to be installed E: Broken packages
gem install mysql2
throws this error:oot@arvidg:/home/gitlab/gitlab# gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lmygcc... no checking for mysql_query() in -lmysqlclient... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
EDIT: Solved!
sudo apt-get install libmariadbclient16-dev
By Administrator on 2012-10-24T15:35:33 (imported from GitLab project)