Platoniq / decidim-install

A step-by-step guide to install Decidim on a production site
https://platoniq.github.io/decidim-install/
GNU Affero General Public License v3.0
54 stars 35 forks source link

installer on Ubuntu 20.4 successful but stuck @ "bundle install" to setup basic config #95

Closed flogee closed 2 years ago

flogee commented 2 years ago

Hi, thanks for the great documentation and the installer script! i finally succeeded installing decidim on a mint Ubuntu 20.04 using the installer!

But now i got stuck at the (minimal) basic (Email) configuration, following your instructions here:

...to setup the delayed_job gem, run these commands:

cd ~/decidim-app
bundle install
bin/rails generate delayed_job:active_record
bin/rake db:migrate

It is throwing a lot of errors because of dependencies, maybe you can help?:

admin@xxxx:~/decidim_app$ bundle install Fetching gem metadata from https://rubygems.org/......... Resolving dependencies...... Using rake 13.0.6 Following files may not be writable, so sudo is needed: /usr/local/bin /var/lib/gems/2.7.0 /var/lib/gems/2.7.0/build_info /var/lib/gems/2.7.0/cache /var/lib/gems/2.7.0/doc /var/lib/gems/2.7.0/extensions /var/lib/gems/2.7.0/gems /var/lib/gems/2.7.0/specifications Using concurrent-ruby 1.1.9 Using minitest 5.14.4 Using thread_safe 0.3.6 Using zeitwerk 2.5.1 Using builder 3.2.4 Using erubi 1.10.0 Using mini_portile2 2.6.1 Using crass 1.0.6 Using rack 2.2.3 Fetching nio4r 2.5.8 Using websocket-extensions 0.1.5 Using marcel 1.0.2 Using mini_mime 1.1.1 Using public_suffix 4.0.6 Using ast 2.4.2 Using dumb_delegator 1.0.0 Using ice_nine 0.11.2 Using equalizer 0.0.11 Using batch-loader 1.5.0 Fetching bcrypt 3.1.18 Fetching html_tokenizer 0.0.7 Fetching racc 1.6.0

Installing bcrypt 3.1.18 with native extensions Installing html_tokenizer 0.0.7 with native extensions Installing nio4r 2.5.8 with native extensions Installing racc 1.6.0 with native extensions Using smart_properties 1.17.0 Fetching msgpack 1.4.2 Using brakeman 5.1.1 Using browser 2.7.1 Using bundler 2.2.19 Fetching byebug 11.1.3 Fetching bindex 0.8.1 Using matrix 0.4.2 Using regexp_parser 2.4.0 Using mini_magick 4.11.0 Fetching ffi 1.15.1 Installing byebug 11.1.3 with native extensions Installing msgpack 1.4.2 with native extensions Installing ffi 1.15.1 with native extensions Installing bindex 0.8.1 with native extensions Using ssrf_filter 1.0.7 Using declarative-option 0.1.0 Using tilt 2.0.10 Using uber 0.1.0 Using temple 0.8.2 Using childprocess 3.0.0 Using chronic 0.10.2 Using coffee-script-source 1.12.2 Using method_source 1.0.0 Using thor 1.1.0 Using rexml 3.2.5 Using daemons 1.4.1 Using rspec-support 3.11.0 Using diff-lcs 1.5.0 Using graphql 1.12.24 Using execjs 2.8.1 Using orm_adapter 0.5.0 Using diffy 3.4.0 Using doorkeeper-i18n 4.0.1 Using mime-types-data 3.2022.0105 Using excon 0.92.3 Using formatador 1.1.0 Using geocoder 1.8.0 Fetching redcarpet 3.5.1 Using hashdiff 1.0.1 Using kaminari-core 1.2.2 Using mustache 1.1.1 Using hashie 5.0.0 Using faraday-net_http 2.0.3 Using ruby2_keywords 0.0.5 Using jwt 2.3.0 Using multi_json 1.15.0 Using multi_xml 0.6.0 Using oauth 0.5.10 Fetching pg 1.1.4 Fetching charlock_holmes 0.7.7 Installing charlock_holmes 0.7.7 with native extensions Installing redcarpet 3.5.1 with native extensions Installing pg 1.1.4 with native extensions Using htmlentities 4.3.4 Using wisper 2.0.1 Using redis 4.6.0 Using rubyzip 2.3.2 Using searchlight 4.1.0 Using semantic_range 3.0.0 Using rainbow 3.1.1 Using parallel 1.22.1 Fetching seven_zip_ruby 1.3.0 Using ice_cube 0.16.4 Using unicode-display_width 1.8.0 Using highline 2.0.3 Using mixlib-cli 2.1.8 Using tomlrb 2.0.2 Using docile 1.4.0 Using simplecov-html 0.12.3 Using ruby-progressbar 1.11.0 Using wisper-rspec 1.1.0 Using rb-fsevent 0.11.0 Using spring 2.1.1 Using i18n 1.8.11 Using tzinfo 1.2.9 Using rack-test 1.1.0 Using wkhtmltopdf-binary 0.12.6.5 Using mail 2.7.1 Fetching websocket-driver 0.7.5 Using addressable 2.8.0 Using descendants_tracker 0.0.4 Using parser 3.1.2.0 Using chef-utils 17.10.0 Using rack-cors 1.1.1 Using warden 1.2.9 Using sprockets 4.0.3 Using rack-protection 2.2.0 Using request_store 1.5.1 Using rack-attack 6.6.1 Using rack-proxy 0.7.2 Using passenger 6.0.14 Using declarative-builder 0.1.0 Using erbse 0.1.4 Using whenever 1.0.0 Using figaro 1.2.0 Using crack 0.4.5 Using kramdown 2.4.0 Using rspec-core 3.11.0 Using rspec-expectations 3.11.0 Using rspec-mocks 3.11.1 Using coffee-script 2.4.1 Using mime-types 3.4.1 Using faraday 2.3.0 Using selenium-webdriver 3.142.7 Using icalendar 2.7.1 Using terminal-table 3.0.2 Using mixlib-config 3.0.9 Using simplecov 0.19.1 Using activesupport 6.0.4.1 Using faker 2.18.0 Using axiom-types 0.1.1 Using coercible 1.0.0 Using cells 4.1.7 Using css_parser 1.11.0 Using omniauth 2.1.0 Using rubocop-ast 1.18.0 Fetching json 2.6.2 Using mixlib-shellout 3.2.7 Using launchy 2.5.0 Using globalid 0.5.2 Using activemodel 6.0.4.1 Using virtus 1.0.5 Using cells-erb 0.1.0 Using rspec 3.11.0 Using fog-core 2.3.0 Using oauth2 1.4.9 Using omniauth-oauth 1.2.0 Using premailer 1.16.0 Using wicked_pdf 2.1.0 Using rubocop 0.92.0 Using factory_bot 4.11.1 Using kramdown-parser-gfm 1.1.0 Using rspec-retry 0.6.2 Using rspec_junit_formatter 0.3.0 Using simplecov-cobertura 1.3.1 Using webmock 3.14.0 Using delayed_job 4.1.10 Installing websocket-driver 0.7.5 with native extensions Installing json 2.6.2 with native extensions Installing seven_zip_ruby 1.3.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-54959hracc-1.6.0/gems/racc-1.6.0/ext/racc/cparse

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-1dxdtjn.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-54959hracc-1.6.0/gems/racc-1.6.0 for inspection. Results logged to /tmp/bundler20220526-65563-54959hracc-1.6.0/extensions/x86_64-linux/2.7.0/racc-1.6.0/gem_make.out

An error occurred while installing racc (1.6.0), and Bundler cannot continue. Make sure that gem install racc -v '1.6.0' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on decidim was resolved to 0.26.0, which depends on decidim-accountability was resolved to 0.26.0, which depends on decidim-comments was resolved to 0.26.0, which depends on decidim-core was resolved to 0.26.0, which depends on invisible_captcha was resolved to 0.13.0, which depends on rails was resolved to 6.0.4.1, which depends on actioncable was resolved to 6.0.4.1, which depends on actionpack was resolved to 6.0.4.1, which depends on actionview was resolved to 6.0.4.1, which depends on rails-dom-testing was resolved to 2.0.3, which depends on nokogiri was resolved to 1.12.5, which depends on racc

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-5j91w9nio4r-2.5.8/gems/nio4r-2.5.8/ext/nio4r

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-xdsds5.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-5j91w9nio4r-2.5.8/gems/nio4r-2.5.8 for inspection. Results logged to /tmp/bundler20220526-65563-5j91w9nio4r-2.5.8/extensions/x86_64-linux/2.7.0/nio4r-2.5.8/gem_make.out

An error occurred while installing nio4r (2.5.8), and Bundler cannot continue. Make sure that gem install nio4r -v '2.5.8' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on decidim was resolved to 0.26.0, which depends on decidim-accountability was resolved to 0.26.0, which depends on decidim-comments was resolved to 0.26.0, which depends on decidim-core was resolved to 0.26.0, which depends on invisible_captcha was resolved to 0.13.0, which depends on rails was resolved to 6.0.4.1, which depends on actioncable was resolved to 6.0.4.1, which depends on nio4r

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-lhb0x8bcrypt-3.1.18/gems/bcrypt-3.1.18/ext/mri

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-7vfs6r.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-lhb0x8bcrypt-3.1.18/gems/bcrypt-3.1.18 for inspection. Results logged to /tmp/bundler20220526-65563-lhb0x8bcrypt-3.1.18/extensions/x86_64-linux/2.7.0/bcrypt-3.1.18/gem_make.out

An error occurred while installing bcrypt (3.1.18), and Bundler cannot continue. Make sure that gem install bcrypt -v '3.1.18' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on decidim was resolved to 0.26.0, which depends on decidim-accountability was resolved to 0.26.0, which depends on decidim-comments was resolved to 0.26.0, which depends on decidim-core was resolved to 0.26.0, which depends on devise-i18n was resolved to 1.10.2, which depends on devise was resolved to 4.8.1, which depends on bcrypt

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-xekkwwhtml_tokenizer-0.0.7/gems/html_tokenizer-0.0.7/ext/html_tokenizer_ext

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-92yeq7.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-xekkwwhtml_tokenizer-0.0.7/gems/html_tokenizer-0.0.7 for inspection. Results logged to /tmp/bundler20220526-65563-xekkwwhtml_tokenizer-0.0.7/extensions/x86_64-linux/2.7.0/html_tokenizer-0.0.7/gem_make.out

An error occurred while installing html_tokenizer (0.0.7), and Bundler cannot continue. Make sure that gem install html_tokenizer -v '0.0.7' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on erb_lint was resolved to 0.0.37, which depends on better_html was resolved to 1.0.16, which depends on html_tokenizer

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-5g27zjbindex-0.8.1/gems/bindex-0.8.1/ext/skiptrace

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-1dnla3d.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-5g27zjbindex-0.8.1/gems/bindex-0.8.1 for inspection. Results logged to /tmp/bundler20220526-65563-5g27zjbindex-0.8.1/extensions/x86_64-linux/2.7.0/bindex-0.8.1/gem_make.out

An error occurred while installing bindex (0.8.1), and Bundler cannot continue. Make sure that gem install bindex -v '0.8.1' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: web-console was resolved to 4.1.0, which depends on bindex

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-7sq03lmsgpack-1.4.2/gems/msgpack-1.4.2/ext/msgpack

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-z707n.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-7sq03lmsgpack-1.4.2/gems/msgpack-1.4.2 for inspection. Results logged to /tmp/bundler20220526-65563-7sq03lmsgpack-1.4.2/extensions/x86_64-linux/2.7.0/msgpack-1.4.2/gem_make.out

An error occurred while installing msgpack (1.4.2), and Bundler cannot continue. Make sure that gem install msgpack -v '1.4.2' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: bootsnap was resolved to 1.7.5, which depends on msgpack

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-ieg6v4byebug-11.1.3/gems/byebug-11.1.3/ext/byebug

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-ov94xu.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-ieg6v4byebug-11.1.3/gems/byebug-11.1.3 for inspection. Results logged to /tmp/bundler20220526-65563-ieg6v4byebug-11.1.3/extensions/x86_64-linux/2.7.0/byebug-11.1.3/gem_make.out

An error occurred while installing byebug (11.1.3), and Bundler cannot continue. Make sure that gem install byebug -v '11.1.3' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on byebug

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-87cg2xffi-1.15.1/gems/ffi-1.15.1/ext/ffi_c

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-p169z.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-87cg2xffi-1.15.1/gems/ffi-1.15.1 for inspection. Results logged to /tmp/bundler20220526-65563-87cg2xffi-1.15.1/extensions/x86_64-linux/2.7.0/ffi-1.15.1/gem_make.out

An error occurred while installing ffi (1.15.1), and Bundler cannot continue. Make sure that gem install ffi -v '1.15.1' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on decidim was resolved to 0.26.0, which depends on decidim-accountability was resolved to 0.26.0, which depends on decidim-comments was resolved to 0.26.0, which depends on decidim-core was resolved to 0.26.0, which depends on carrierwave was resolved to 2.2.2, which depends on image_processing was resolved to 1.12.2, which depends on ruby-vips was resolved to 2.1.4, which depends on ffi

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-g8ehfocharlock_holmes-0.7.7/gems/charlock_holmes-0.7.7/ext/charlock_holmes

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-8khs4o.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-g8ehfocharlock_holmes-0.7.7/gems/charlock_holmes-0.7.7 for inspection. Results logged to /tmp/bundler20220526-65563-g8ehfocharlock_holmes-0.7.7/extensions/x86_64-linux/2.7.0/charlock_holmes-0.7.7/gem_make.out

An error occurred while installing charlock_holmes (0.7.7), and Bundler cannot continue. Make sure that gem install charlock_holmes -v '0.7.7' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on decidim was resolved to 0.26.0, which depends on decidim-accountability was resolved to 0.26.0, which depends on decidim-comments was resolved to 0.26.0, which depends on decidim-core was resolved to 0.26.0, which depends on charlock_holmes

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-3mohmyredcarpet-3.5.1/gems/redcarpet-3.5.1/ext/redcarpet

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-yeol1k.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-3mohmyredcarpet-3.5.1/gems/redcarpet-3.5.1 for inspection. Results logged to /tmp/bundler20220526-65563-3mohmyredcarpet-3.5.1/extensions/x86_64-linux/2.7.0/redcarpet-3.5.1/gem_make.out

An error occurred while installing redcarpet (3.5.1), and Bundler cannot continue. Make sure that gem install redcarpet -v '3.5.1' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on decidim was resolved to 0.26.0, which depends on decidim-accountability was resolved to 0.26.0, which depends on decidim-comments was resolved to 0.26.0, which depends on decidim-core was resolved to 0.26.0, which depends on decidim-api was resolved to 0.26.0, which depends on redcarpet

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /tmp/bundler20220526-65563-bmp22upg-1.1.4/gems/pg-1.1.4/ext

/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20220526-65563-13mqftr.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20220526-65563-bmp22upg-1.1.4/gems/pg-1.1.4 for inspection. Results logged to /tmp/bundler20220526-65563-bmp22upg-1.1.4/extensions/x86_64-linux/2.7.0/pg-1.1.4/gem_make.out

An error occurred while installing pg (1.1.4), and Bundler cannot continue. Make sure that gem install pg -v '1.1.4' --source 'https://rubygems.org/' succeeds before bundling.

In Gemfile: decidim-dev was resolved to 0.26.0, which depends on decidim was resolved to 0.26.0, which depends on decidim-accountability was resolved to 0.26.0, which depends on decidim-comments was resolved to 0.26.0, which depends on decidim-core was resolved to 0.26.0, which depends on pg

flogee commented 2 years ago

strangely using the same commands and config as yesterday bundle install finshed without problems today, im confused but happy :)