libmysql dependency when using postgresql

43 views
Skip to first unread message

Boris Rybalkin

unread,
Oct 25, 2015, 9:15:36 PM10/25/15
to diaspora-discuss
Hi,

I am trying to package diaspora for syncloud.org project using the following doc: https://wiki.diasporafoundation.org/Installation/Debian/Jessie
I am new to ruby and diaspora.

When I run sidekiq I get the following error:

/opt/app/diaspora/ruby/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require': libmysqlclient.so.18: cannot open shared object file: No such file or directory - /opt/app/diaspora/ruby/gems/mysql2-0.3.20/lib/my
sql2/mysql2.so (LoadError)
        from /opt/app/diaspora/ruby/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
        from /opt/app/diaspora/ruby/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
        from /opt/app/diaspora/ruby/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
        from /opt/app/diaspora/ruby/gems/mysql2-0.3.20/lib/mysql2.rb:31:in `<top (required)>'
        from /opt/app/diaspora/ruby/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require'
        from /opt/app/diaspora/ruby/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
        from /opt/app/diaspora/ruby/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each'
        from /opt/app/diaspora/ruby/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require'
        from /opt/app/diaspora/ruby/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each'
        from /opt/app/diaspora/ruby/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require'
        from /opt/app/diaspora/ruby/gems/bundler-1.10.6/lib/bundler.rb:134:in `require'
        from /opt/app/diaspora/diaspora/config/application.rb:4:in `<top (required)>'
        from /opt/app/diaspora/ruby/gems/sidekiq-3.4.2/lib/sidekiq/cli.rb:236:in `require'
        from /opt/app/diaspora/ruby/gems/sidekiq-3.4.2/lib/sidekiq/cli.rb:236:in `boot_system'
        from /opt/app/diaspora/ruby/gems/sidekiq-3.4.2/lib/sidekiq/cli.rb:50:in `run'
        from /opt/app/diaspora/ruby/gems/sidekiq-3.4.2/bin/sidekiq:13:in `<top (required)>'
        from /opt/app/diaspora/ruby/bin/sidekiq:23:in `load'
        from /opt/app/diaspora/ruby/bin/sidekiq:23:in `<main>'
        from /opt/app/diaspora/ruby/bin/ruby_executable_hooks:15:in `eval'
        from /opt/app/diaspora/ruby/bin/ruby_executable_hooks:15:in `<main>'

Probably I can fix it by adding mysql lib, but I intend to use Postgresql.
Could you help me?

Here is my database.yml:

#mysql: &mysql
#  adapter: mysql2
#  host: "localhost"
#  port: 3306
#  username: "root"
#  password: ""
#  socket: /tmp/mysql.sock
#  encoding: utf8mb4
#  collation: utf8mb4_bin

postgres: &postgres
  adapter: postgresql
  host: localhost
  port: 5432
  username: postgres
  password:
  encoding: unicode

# Comment the the mysql line and uncomment the postgres line
# if you want to use postgres
common: &common
  # Choose one of the following
  #<<: *mysql
  <<: *postgres

  # Should match environment.sidekiq.concurrency
  #pool: 25


Thank you

Jonne Haß

unread,
Oct 25, 2015, 9:17:50 PM10/25/15
to diaspora...@googlegroups.com
Make sure to export DB=postgres everywhere.
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Boris Rybalkin

unread,
Oct 26, 2015, 7:05:40 PM10/26/15
to diaspora-discuss
That helped, my bad, somehow missed it.
Thank you!
Reply all
Reply to author
Forward
0 new messages