Hi,
I am trying to package diaspora for
syncloud.org project using the following doc:
https://wiki.diasporafoundation.org/Installation/Debian/JessieI 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