Preparing to unpack .../libpq-dev_9.5.12-0ubuntu0.16.04_amd64.deb ... Unpacking libpq-dev (9.5.12-0ubuntu0.16.04) over (9.5.11-0ubuntu0.16.04) ... Preparing to unpack .../libpq5_9.5.12-0ubuntu0.16.04_amd64.deb ... Unpacking libpq5:amd64 (9.5.12-0ubuntu0.16.04) over (9.5.11-0ubuntu0.16.04) ... Preparing to unpack .../google-chrome-stable_65.0.3325.146-1_amd64.deb ... Unpacking google-chrome-stable (65.0.3325.146-1) over (64.0.3282.186-1) ... Preparing to unpack .../libcompizconfig0_1%3a0.9.12.3+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking libcompizconfig0:amd64 (1:0.9.12.3+16.04.20180221-0ubuntu1) over (1:0.9.12.2+16.04.20160823-0ubuntu1) ... Preparing to unpack .../compiz-gnome_1%3a0.9.12.3+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking compiz-gnome (1:0.9.12.3+16.04.20180221-0ubuntu1) over (1:0.9.12.2+16.04.20160823-0ubuntu1) ... Preparing to unpack .../compiz-plugins-default_1%3a0.9.12.3+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking compiz-plugins-default:amd64 (1:0.9.12.3+16.04.20180221-0ubuntu1) over (1:0.9.12.2+16.04.20160823-0ubuntu1) ... Preparing to unpack .../libdecoration0_1%3a0.9.12.3+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking libdecoration0:amd64 (1:0.9.12.3+16.04.20180221-0ubuntu1) over (1:0.9.12.2+16.04.20160823-0ubuntu1) ... Preparing to unpack .../unity_7.4.5+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking unity (7.4.5+16.04.20180221-0ubuntu1) over (7.4.0+16.04.20160906-0ubuntu1) ... Preparing to unpack .../libunity-core-6.0-9_7.4.5+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking libunity-core-6.0-9:amd64 (7.4.5+16.04.20180221-0ubuntu1) over (7.4.0+16.04.20160906-0ubuntu1) ... Preparing to unpack .../unity-schemas_7.4.5+16.04.20180221-0ubuntu1_all.deb ... Unpacking unity-schemas (7.4.5+16.04.20180221-0ubuntu1) over (7.4.0+16.04.20160906-0ubuntu1) ... Preparing to unpack .../unity-services_7.4.5+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking unity-services (7.4.5+16.04.20180221-0ubuntu1) over (7.4.0+16.04.20160906-0ubuntu1) ... Preparing to unpack .../compiz-core_1%3a0.9.12.3+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking compiz-core (1:0.9.12.3+16.04.20180221-0ubuntu1) over (1:0.9.12.2+16.04.20160823-0ubuntu1) ... Preparing to unpack .../compiz_1%3a0.9.12.3+16.04.20180221-0ubuntu1_all.deb ... Unpacking compiz (1:0.9.12.3+16.04.20180221-0ubuntu1) over (1:0.9.12.2+16.04.20160823-0ubuntu1) ... Preparing to unpack .../postgresql-contrib-9.5_9.5.12-0ubuntu0.16.04_amd64.deb ... Unpacking postgresql-contrib-9.5 (9.5.12-0ubuntu0.16.04) over (9.5.11-0ubuntu0.16.04) ... Preparing to unpack .../postgresql-client-9.5_9.5.12-0ubuntu0.16.04_amd64.deb ... Unpacking postgresql-client-9.5 (9.5.12-0ubuntu0.16.04) over (9.5.11-0ubuntu0.16.04) ... Preparing to unpack .../postgresql-9.5_9.5.12-0ubuntu0.16.04_amd64.deb ... Unpacking postgresql-9.5 (9.5.12-0ubuntu0.16.04) over (9.5.11-0ubuntu0.16.04) ... Preparing to unpack .../python-twisted-bin_16.0.0-1ubuntu0.2_amd64.deb ... Unpacking python-twisted-bin (16.0.0-1ubuntu0.2) over (16.0.0-1) ... Preparing to unpack .../python-twisted-core_16.0.0-1ubuntu0.2_all.deb ... Unpacking python-twisted-core (16.0.0-1ubuntu0.2) over (16.0.0-1) ... Preparing to unpack .../python-twisted-web_16.0.0-1ubuntu0.2_all.deb ... Unpacking python-twisted-web (16.0.0-1ubuntu0.2) over (16.0.0-1) ... Preparing to unpack .../python-compizconfig_1%3a0.9.12.3+16.04.20180221-0ubuntu1_amd64.deb ... Unpacking python-compizconfig:amd64 (1:0.9.12.3+16.04.20180221-0ubuntu1) over (1:0.9.12.2+16.04.20160823-0ubuntu1) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for libc-bin (2.23-0ubuntu10) ... Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ... Processing triggers for mime-support (3.59ubuntu1) ... Processing triggers for menu (2.1.47ubuntu1) ... Processing triggers for libglib2.0-0:i386 (2.48.2-0ubuntu1) ... Processing triggers for libglib2.0-0:amd64 (2.48.2-0ubuntu1) ... Processing triggers for postgresql-common (173ubuntu0.1) ... Building PostgreSQL dictionaries from installed myspell/hunspell packages... en_us es fa_ir Removing obsolete dictionary files: Setting up libpq5:amd64 (9.5.12-0ubuntu0.16.04) ... Setting up libpq-dev (9.5.12-0ubuntu0.16.04) ... Setting up diaspora-installer (0.5.7.1+debian2) ... Download diaspora tarball version 0.5.7.1 from github.com... Extracting files... Copying files to /usr/share/diaspora... diaspora archive to copy: diaspora-0.5.7.1 Copying source tarball to /usr/share/diaspora/public... Setting up environment varibales... Using /usr/share/diaspora-common/diaspora.conf... export RAILS_ENV=production export DB=mysql RAILS_ENV=production DB=mysql ENVIRONMENT_URL=https://localhost bundler's executable "bundle" conflicts with /usr/local/bin/bundle Overwrite the executable? [yN] y Successfully installed bundler-1.16.1 Parsing documentation for bundler-1.16.1 Done installing documentation for bundler after 14 seconds 1 gem installed Installing gems with rubygems ... Fetching gem metadata from https://rails-assets.org/.. Retrying dependency api due to error (2/4): Bundler::HTTPError Network error while fetching https://rails-assets.org/api/v1/dependencies?gems=rails-assets-colorbox%2Crails-assets-emojione%2Crails-assets-favico.js%2Crails-assets-jasmine%2Crails-assets-jquery-colorbox%2Crails-assets-jquery-fullscreen%2Crails-assets-jquery-fullscreen-plugin%2Crails-assets-jquery-ui%2Crails-assets-jquery.slimscroll%2Crails-assets-jquery.ui%2Crails-assets-strophe.js%2Crails-assets-strophejs%2Crails-assets-sualko--strophejs-plugins (too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout) after 5 requests on 19533480, last used 20.395978389 seconds ago) Retrying dependency api due to error (3/4): Bundler::HTTPError Network error while fetching https://rails-assets.org/api/v1/dependencies?gems=rails-assets-colorbox%2Crails-assets-emojione%2Crails-assets-favico.js%2Crails-assets-jasmine%2Crails-assets-jquery-colorbox%2Crails-assets-jquery-fullscreen%2Crails-assets-jquery-fullscreen-plugin%2Crails-assets-jquery-ui%2Crails-assets-jquery.slimscroll%2Crails-assets-jquery.ui%2Crails-assets-strophe.js%2Crails-assets-strophejs%2Crails-assets-sualko--strophejs-plugins (too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout) after 0 requests on 19533480, last used 20.962432351 seconds ago) Retrying dependency api due to error (4/4): Bundler::HTTPError Network error while fetching https://rails-assets.org/api/v1/dependencies?gems=rails-assets-colorbox%2Crails-assets-emojione%2Crails-assets-favico.js%2Crails-assets-jasmine%2Crails-assets-jquery-colorbox%2Crails-assets-jquery-fullscreen%2Crails-assets-jquery-fullscreen-plugin%2Crails-assets-jquery-ui%2Crails-assets-jquery.slimscroll%2Crails-assets-jquery.ui%2Crails-assets-strophe.js%2Crails-assets-strophejs%2Crails-assets-sualko--strophejs-plugins (too many connection resets (due to Net::ReadTimeout - Net::ReadTimeout) after 0 requests on 19533480, last used 20.908607442 seconds ago) Fetching gem metadata from https://rails-assets.org/.. Fetching gem metadata from https://rubygems.org/........... Fetching source index from https://rails-assets.org/ Fetching source index from https://rubygems.org/ Resolving dependencies................. Using rake 10.5.0 Using CFPropertyList 2.3.2 Using i18n 0.7.0 Using json 1.8.3 Using minitest 5.8.4 Using thread_safe 0.3.5 Using tzinfo 1.2.2 Using activesupport 4.2.5.1 Using builder 3.2.2 Using erubis 2.7.0 Using mini_portile2 2.0.0 Using nokogiri 1.6.7.2 Using rails-deprecated_sanitizer 1.0.3 Using rails-dom-testing 1.0.7 Using loofah 2.0.3 Using rails-html-sanitizer 1.0.3 Using actionview 4.2.5.1 Using rack 1.6.4 Using rack-test 0.6.3 Using actionpack 4.2.5.1 Using globalid 0.3.6 Using activejob 4.2.5.1 Using mime-types 2.99 Using mail 2.6.3 Using actionmailer 4.2.5.1 Using activemodel 4.2.5.1 Using active_model_serializers 0.9.4 Using arel 6.0.3 Using activerecord 4.2.5.1 Using activerecord-import 0.11.0 Using acts-as-taggable-on 3.5.0 Using acts_as_api 0.4.2 Using addressable 2.3.8 Using excon 0.45.4 Using formatador 0.2.5 Using fog-core 1.35.0 Using multi_json 1.11.2 Using fog-json 1.0.2 Using ipaddress 0.8.2 Using xml-simple 1.1.5 Using fog-aliyun 0.1.0 Using fog-xml 0.1.2 Using fog-atmos 0.1.0 Using fog-aws 0.8.1 Using inflecto 0.0.2 Using fog-brightbox 0.10.1 Using fog-dynect 0.0.2 Using fog-ecloud 0.3.0 Using fog-google 0.1.0 Using fog-local 0.2.1 Using fog-powerdns 0.1.1 Using fog-profitbricks 0.0.5 Using fog-radosgw 0.0.5 Using fog-riakcs 0.1.0 Using fog-sakuracloud 1.7.5 Using fog-serverlove 0.1.2 Using fog-softlayer 1.0.3 Using fog-storm_on_demand 0.1.1 Using fog-terremark 0.1.0 Using fission 0.5.0 Using fog-vmfusion 0.1.0 Using fog-voxel 0.1.0 Using trollop 2.1.2 Using rbvmomi 1.8.2 Using fog-vsphere 0.6.0 Using fog-xenserver 0.2.3 Using fog 1.37.0 Using unf_ext 0.0.7.2 Using unf 0.1.4 Using asset_sync 1.1.0 Using execjs 2.6.0 Using autoprefixer-rails 6.3.1 Using coffee-script-source 1.10.0 Using coffee-script 2.4.1 Using eco-source 1.1.0.rc.1 Using eco 1.0.0 Using ejs 1.1.1 Using thor 0.19.1 Using railties 4.2.5.1 Using jquery-rails 4.1.0 Using backbone-on-rails 1.2.0.0 Using bcrypt 3.1.10 Using sass 3.4.21 Using bootstrap-sass 2.3.2.2 Using buftok 0.2.0 Using bundler 1.16.1 Using carrierwave 0.10.0 Using hitimes 1.2.3 Using timers 4.0.4 Using celluloid 0.16.0 Using nio4r 1.2.0 Using celluloid-io 0.16.2 Using chunky_png 1.3.5 Using coffee-rails 4.1.1 Using compass-core 1.0.3 Using compass-import-once 1.0.5 Using rb-fsevent 0.9.7 Using ffi 1.9.10 Using rb-inotify 0.9.7 Using compass 1.0.3 Using hike 1.2.3 Using tilt 1.4.1 Using sprockets 2.12.4 Using sprockets-rails 2.3.3 Using sass-rails 5.0.4 Using compass-rails 2.0.5 Using configurate 0.3.1 Using connection_pool 2.2.0 Using orm_adapter 0.5.0 Using responders 2.1.1 Using warden 1.2.6 Using devise 3.5.6 Using devise-token_authenticatable 0.4.0 Using rails 4.2.5.1 Using devise_lastseenable 0.0.6 Using eventmachine 1.0.9.1 Using hiredis 0.6.1 Using em-hiredis 0.3.1 Using http_parser.rb 0.6.0 Using diaspora-vines 0.2.0.develop.4 Using multipart-post 2.0.0 Using faraday 0.9.2 Using faraday_middleware 0.10.0 Using ethon 0.8.1 Using typhoeus 0.8.0 Using valid 1.1.0 Using diaspora_federation 0.0.12 Using diaspora_federation-rails 0.0.12 Using domain_name 0.5.20160128 Using entypo-rails 2.2.3 Using equalizer 0.0.10 Using sigar 0.7.3 Using state_machine 1.2.0 Using eye 0.7 Using facebox-rails 0.2.0 Using http-cookie 1.0.2 Using faraday-cookie_jar 0.0.6 Using font-awesome-rails 4.5.0.0 Using request_store 1.3.0 Using gon 6.0.1 Using haml 4.0.7 Using handlebars_assets 0.23.0 Using hashie 3.4.3 Using http-form_data 1.0.1 Using http 1.0.2 Using http_accept_language 2.0.5 Using i18n-inflector 2.6.7 Using i18n-inflector-rails 1.0.7 Using ice_cube 0.11.1 Using jquery-ui-rails 5.0.5 Using js-routes 1.2.3 Using js_image_paths 0.0.2 Using json-schema 2.6.0 Using jwt 1.5.1 Using kaminari 0.16.3 Using kgio 2.10.0 Using little-plugger 1.1.4 Using logging 2.0.0 Using logging-rails 0.5.0 Using systemu 2.6.5 Using macaddr 1.7.1 Using markerb 1.1.0 Using memoizable 0.4.2 Using messagebus_ruby_api 1.0.3 Using mini_magick 4.4.0 Using rack-mobile-detect 0.4.0 Using mobile-fu 1.3.1 Using multi_xml 0.5.5 Fetching mysql2 0.4.2 Installing mysql2 0.4.2 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.  current directory: /usr/share/diaspora/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.2/ext/mysql2 /usr/bin/ruby2.3 -r ./siteconf20180307-5532-1kkzqgf.rb extconf.rb checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for rb_thread_blocking_region()... no checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()... yes checking for mysql_query() in -lmysqlclient... no ----- mysql client is missing. You may need to 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', and try again. ----- *** 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. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/$(RUBY_BASE_NAME)2.3 --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysql-config --without-mysql-config --with-mysql-dir --without-mysql-dir --with-mysql-include --without-mysql-include=${mysql-dir}/include --with-mysql-lib --without-mysql-lib=${mysql-dir}/lib --with-mysqlclientlib --without-mysqlclientlib To see why this extension failed to compile, please check the mkmf.log which can be found here: /usr/share/diaspora/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.4.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /usr/share/diaspora/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.2 for inspection. Results logged to /usr/share/diaspora/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.4.2/gem_make.out An error occurred while installing mysql2 (0.4.2), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.4.2'` succeeds before bundling. In Gemfile: mysql2 dpkg: error processing package diaspora-installer (--configure): subprocess installed post-installation script returned error exit status 5