Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #754

Closed
Open
Created 13 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

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)

Linked issues
0


  • Administrator
    Administrator @root · 13 years ago
    Owner

    Created by: phishstang65

    Solved by 'sudo gem install mysql2' and then 'sudo gem install charlock_holmes'..

    By Administrator on 2012-04-27T23:35:39 (imported from GitLab project)

  • Administrator
    Administrator @root · 13 years ago
    Owner

    Created by: fidelix

    I'm sorry but this didn't fix it for me. Any more ideas?

    I'm also using Ubuntu 12.04, and I reverted from MariaDB to Mysql in the hope of fixing this issue, with no luck.

    By Administrator on 2012-06-04T04:27:45 (imported from GitLab project)

  • Administrator
    Administrator @root · 13 years ago
    Owner

    Created by: fidelix

    I had to reinstall everything from scratch to make it work... I was able to use MariaDB...

    By Administrator on 2012-06-04T05:31:35 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: Leandros

    Did not work with MariaDB for me. The gem mysql-0.3.11 have to be installed but depends on a mysql package libmysql-dev.

    Any solution?

    By Administrator on 2012-10-24T12:40:20 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: riyad

    @Leandros There are two things where you might have slipped up:

    • the gem is called mysql2
    • the package is called libmysqlclient-dev (apt should show you the appropriate MariaDB package, that provides it)

    By Administrator on 2012-10-24T15:29:27 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 11 years ago
    Owner

    Created by: zeeler

    sudo apt-get install libmariadbclient-dev
    Ubuntu 12.10 x86_64

    By Administrator on 2013-12-20T08:05:10 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
None
Assign to
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Due date
None
None
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Confidentiality
Not confidential
Not confidential

You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

Lock issue
Unlocked
1
1 participant
user avatar
Reference: gpt/large_projects/gitlabhq1#754

Menu

Projects Groups Snippets
Help