flatpak.github.io icon indicating copy to clipboard operation
flatpak.github.io copied to clipboard

Update README

Open TheEvilSkeleton opened this issue 5 years ago • 2 comments

I tried to follow the Installation and setup, and I kept getting error after error (using Fedora).

It would be cool if you can update the README for those that want to contribute.

The errors I got:

Error 1 (outdated middleman-sprockets):

Click to expand

$ bundle install                                                      
Following files may not be writable, so sudo is needed:
  /usr/bin
  /usr/share/gems
  /usr/share/gems/build_info
  /usr/share/gems/bundler
  /usr/share/gems/cache
  /usr/share/gems/doc
  /usr/share/gems/extensions
  /usr/share/gems/gems
  /usr/share/gems/specifications
Fetching https://github.com/barthalion/middleman-matomo.git
Fetching gem metadata from http://rubygems.org/............
Fetching gem metadata from http://rubygems.org/.
Resolving dependencies..................................
Bundler could not find compatible versions for gem "middleman-sprockets":
  In Gemfile:
    middleman-sprockets (~> 3.1.2)
middleman (~> 3) was resolved to 3.0.1.pre, which depends on
  middleman-sprockets (= 3.0.1.pre)

Error 1A (asked to install ruby-devel):

Click to expand

$ gem install middleman-sprockets
Building native extensions. This could take a while...
ERROR:  Error installing middleman-sprockets:
	ERROR: Failed to build gem native extension.
current directory: /home/themainone/.gem/ruby/gems/fast_blank-1.0.0/ext/fast_blank

/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20200904-11521-1mb20mj.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/share/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 /home/themainone/.gem/ruby/gems/fast_blank-1.0.0 for inspection. Results logged to /home/themainone/.gem/ruby/extensions/x86_64-linux/2.7.0/fast_blank-1.0.0/gem_make.out

Solution to Error 1A (installed ruby-devel):

# dnf install ruby-devel

Error 2 (/usr/lib/rpm/redhat/redhat-hardened-cc1 not found)

Click to expand

$ gem install middleman-sprockets
Building native extensions. This could take a while...
ERROR:  Error installing middleman-sprockets:
	ERROR: Failed to build gem native extension.
current directory: /home/themainone/.gem/ruby/gems/fast_blank-1.0.0/ext/fast_blank

/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20200904-11603-1r2v98f.rb extconf.rb creating Makefile

current directory: /home/themainone/.gem/ruby/gems/fast_blank-1.0.0/ext/fast_blank make "DESTDIR=" clean rm -f rm -f fast_blank.so *.o .bak mkmf.log ..time

current directory: /home/themainone/.gem/ruby/gems/fast_blank-1.0.0/ext/fast_blank make "DESTDIR=" gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -m64 -o fast_blank.o -c fast_blank.c gcc: fatal error: cannot read spec file ‘/usr/lib/rpm/redhat/redhat-hardened-cc1’: No such file or directory compilation terminated. make: *** [Makefile:245: fast_blank.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/themainone/.gem/ruby/gems/fast_blank-1.0.0 for inspection. Results logged to /home/themainone/.gem/ruby/extensions/x86_64-linux/2.7.0/fast_blank-1.0.0/gem_make.out

Solution to Error 2 (Installed redhat-rpm-config)

Click to expand

# dnf provides /usr/lib/rpm/redhat/redhat-hardened-cc1
Last metadata expiration check: 1:33:35 ago on Fri 04 Sep 2020 07:57:22 PM EDT.
redhat-rpm-config-150-1.fc32.noarch : Red Hat specific rpm configuration files
Repo        : fedora
Matched from:
Filename    : /usr/lib/rpm/redhat/redhat-hardened-cc1
# dnf install redhat-rpm-config-150-1.fc32.noarch     
Last metadata expiration check: 1:33:48 ago on Fri 04 Sep 2020 07:57:22 PM EDT.
Dependencies resolved.
==============================================================================================================================================================================================
 Package                                               Architecture                            Version                                         Repository                                Size
==============================================================================================================================================================================================
Installing:
 redhat-rpm-config                                     noarch                                  150-1.fc32                                      fedora                                    63 k
Installing dependencies:
 annobin                                               x86_64                                  9.27-1.fc32                                     updates                                   98 k
 dwz                                                   x86_64                                  0.13-2.fc32                                     fedora                                   109 k
 efi-srpm-macros                                       noarch                                  4-4.fc32                                        fedora                                    22 k
 fonts-srpm-macros                                     noarch                                  2.0.3-1.fc32                                    fedora                                    26 k
 fpc-srpm-macros                                       noarch                                  1.3-1.fc32                                      fedora                                   7.6 k
 ghc-srpm-macros                                       noarch                                  1.5.0-2.fc32                                    fedora                                   7.7 k
 gnat-srpm-macros                                      noarch                                  4-11.fc32                                       fedora                                   8.2 k
 go-srpm-macros                                        noarch                                  3.0.9-1.fc32                                    updates                                   25 k
 nim-srpm-macros                                       noarch                                  3-2.fc32                                        fedora                                   8.3 k
 ocaml-srpm-macros                                     noarch                                  6-2.fc32                                        fedora                                   7.7 k
 openblas-srpm-macros                                  noarch                                  2-7.fc32                                        fedora                                   7.2 k
 perl-srpm-macros                                      noarch                                  1-34.fc32                                       fedora                                   8.3 k
 python-srpm-macros                                    noarch                                  3-58.fc32                                       updates                                   18 k
 qt5-srpm-macros                                       noarch                                  5.14.2-3.fc32                                   updates                                  8.4 k
 rust-srpm-macros                                      noarch                                  14-1.fc32                                       updates                                  9.6 k

Transaction Summary

Install 16 Packages

Total download size: 434 k Installed size: 720 k Is this ok [y/N]: y Downloading Packages: (1/16): go-srpm-macros-3.0.9-1.fc32.noarch.rpm 228 kB/s | 25 kB 00:00
(2/16): python-srpm-macros-3-58.fc32.noarch.rpm 151 kB/s | 18 kB 00:00
(3/16): qt5-srpm-macros-5.14.2-3.fc32.noarch.rpm 222 kB/s | 8.4 kB 00:00
(4/16): rust-srpm-macros-14-1.fc32.noarch.rpm 263 kB/s | 9.6 kB 00:00
(5/16): annobin-9.27-1.fc32.x86_64.rpm 597 kB/s | 98 kB 00:00
(6/16): efi-srpm-macros-4-4.fc32.noarch.rpm 369 kB/s | 22 kB 00:00
(7/16): fonts-srpm-macros-2.0.3-1.fc32.noarch.rpm 350 kB/s | 26 kB 00:00
(8/16): dwz-0.13-2.fc32.x86_64.rpm 1.1 MB/s | 109 kB 00:00
(9/16): fpc-srpm-macros-1.3-1.fc32.noarch.rpm 211 kB/s | 7.6 kB 00:00
(10/16): ghc-srpm-macros-1.5.0-2.fc32.noarch.rpm 185 kB/s | 7.7 kB 00:00
(11/16): gnat-srpm-macros-4-11.fc32.noarch.rpm 215 kB/s | 8.2 kB 00:00
(12/16): nim-srpm-macros-3-2.fc32.noarch.rpm 163 kB/s | 8.3 kB 00:00
(13/16): ocaml-srpm-macros-6-2.fc32.noarch.rpm 169 kB/s | 7.7 kB 00:00
(14/16): openblas-srpm-macros-2-7.fc32.noarch.rpm 173 kB/s | 7.2 kB 00:00
(15/16): perl-srpm-macros-1-34.fc32.noarch.rpm 207 kB/s | 8.3 kB 00:00
(16/16): redhat-rpm-config-150-1.fc32.noarch.rpm 849 kB/s | 63 kB 00:00

Total 444 kB/s | 434 kB 00:00
Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : perl-srpm-macros-1-34.fc32.noarch 1/16 Installing : openblas-srpm-macros-2-7.fc32.noarch 2/16 Installing : ocaml-srpm-macros-6-2.fc32.noarch 3/16 Installing : nim-srpm-macros-3-2.fc32.noarch 4/16 Installing : gnat-srpm-macros-4-11.fc32.noarch 5/16 Installing : ghc-srpm-macros-1.5.0-2.fc32.noarch 6/16 Installing : fpc-srpm-macros-1.3-1.fc32.noarch 7/16 Installing : efi-srpm-macros-4-4.fc32.noarch 8/16 Installing : dwz-0.13-2.fc32.x86_64 9/16 Installing : rust-srpm-macros-14-1.fc32.noarch 10/16 Installing : qt5-srpm-macros-5.14.2-3.fc32.noarch 11/16 Installing : annobin-9.27-1.fc32.x86_64 12/16 Installing : go-srpm-macros-3.0.9-1.fc32.noarch 13/16 Installing : python-srpm-macros-3-58.fc32.noarch 14/16 Installing : fonts-srpm-macros-2.0.3-1.fc32.noarch 15/16 Installing : redhat-rpm-config-150-1.fc32.noarch 16/16 Running scriptlet: redhat-rpm-config-150-1.fc32.noarch 16/16 Verifying : annobin-9.27-1.fc32.x86_64 1/16 Verifying : go-srpm-macros-3.0.9-1.fc32.noarch 2/16 Verifying : python-srpm-macros-3-58.fc32.noarch 3/16 Verifying : qt5-srpm-macros-5.14.2-3.fc32.noarch 4/16 Verifying : rust-srpm-macros-14-1.fc32.noarch 5/16 Verifying : dwz-0.13-2.fc32.x86_64 6/16 Verifying : efi-srpm-macros-4-4.fc32.noarch 7/16 Verifying : fonts-srpm-macros-2.0.3-1.fc32.noarch 8/16 Verifying : fpc-srpm-macros-1.3-1.fc32.noarch 9/16 Verifying : ghc-srpm-macros-1.5.0-2.fc32.noarch 10/16 Verifying : gnat-srpm-macros-4-11.fc32.noarch 11/16 Verifying : nim-srpm-macros-3-2.fc32.noarch 12/16 Verifying : ocaml-srpm-macros-6-2.fc32.noarch 13/16 Verifying : openblas-srpm-macros-2-7.fc32.noarch 14/16 Verifying : perl-srpm-macros-1-34.fc32.noarch 15/16 Verifying : redhat-rpm-config-150-1.fc32.noarch 16/16

Installed: annobin-9.27-1.fc32.x86_64 dwz-0.13-2.fc32.x86_64 efi-srpm-macros-4-4.fc32.noarch fonts-srpm-macros-2.0.3-1.fc32.noarch fpc-srpm-macros-1.3-1.fc32.noarch
ghc-srpm-macros-1.5.0-2.fc32.noarch gnat-srpm-macros-4-11.fc32.noarch go-srpm-macros-3.0.9-1.fc32.noarch nim-srpm-macros-3-2.fc32.noarch ocaml-srpm-macros-6-2.fc32.noarch
openblas-srpm-macros-2-7.fc32.noarch perl-srpm-macros-1-34.fc32.noarch python-srpm-macros-3-58.fc32.noarch qt5-srpm-macros-5.14.2-3.fc32.noarch redhat-rpm-config-150-1.fc32.noarch rust-srpm-macros-14-1.fc32.noarch

Complete!

Error 3 (g++ not found):

Click to expand

$ gem install middleman-sprockets                     
Building native extensions. This could take a while...
Successfully installed fast_blank-1.0.0
Successfully installed parallel-1.19.2
Successfully installed servolux-0.13.0
Successfully installed dotenv-2.7.6
Successfully installed i18n-0.9.5
Successfully installed thread_safe-0.3.6
Successfully installed tzinfo-1.2.7
Successfully installed minitest-5.14.2
Successfully installed activesupport-5.2.4.3
Successfully installed padrino-support-0.13.3.4
Successfully installed padrino-helpers-0.13.3.4
Successfully installed public_suffix-4.0.6
Successfully installed addressable-2.7.0
Successfully installed memoist-0.16.2
Building native extensions. This could take a while...
Successfully installed ffi-1.13.1
Successfully installed rb-inotify-0.10.1
Successfully installed rb-fsevent-0.10.4
Successfully installed listen-3.0.8
Successfully installed fastimage-2.2.0
Building native extensions. This could take a while...
ERROR:  Error installing middleman-sprockets:
	ERROR: Failed to build gem native extension.
current directory: /home/themainone/.gem/ruby/gems/sassc-2.4.0/ext

/usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20200904-14111-h6zvh.rb extconf.rb creating Makefile

current directory: /home/themainone/.gem/ruby/gems/sassc-2.4.0/ext make "DESTDIR=" clean rm -f rm -f libsass.so *.o .bak mkmf.log ..time

current directory: /home/themainone/.gem/ruby/gems/sassc-2.4.0/ext make "DESTDIR=" g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -I./libsass/include -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=c++11 -DLIBSASS_VERSION='"3.6.4"' -m64 -o ast.o -c ./libsass/src/ast.cpp make: g++: Command not found make: *** [Makefile:237: ast.o] Error 127

make failed, exit code 2

Gem files will remain installed in /home/themainone/.gem/ruby/gems/sassc-2.4.0 for inspection. Results logged to /home/themainone/.gem/ruby/extensions/x86_64-linux/2.7.0/sassc-2.4.0/gem_make.out

Solution to Error 3 (Installed group C Development Tools and Libraries)

Click to expand

# dnf group install "C Development Tools and Libraries"
Last metadata expiration check: 1:39:23 ago on Fri 04 Sep 2020 07:57:22 PM EDT.
Dependencies resolved.
==============================================================================================================================================================================================
 Package                                      Architecture                      Version                                                              Repository                          Size
==============================================================================================================================================================================================
Installing group/module packages:
 autoconf                                     noarch                            2.69-33.fc32                                                         fedora                             666 k
 automake                                     noarch                            1.16.1-14.fc32                                                       fedora                             665 k
 bison                                        x86_64                            3.5-2.fc32                                                           fedora                             818 k
 byacc                                        x86_64                            1.9.20191125-2.fc32                                                  fedora                              89 k
 ccache                                       x86_64                            3.7.11-1.fc32                                                        updates                            235 k
 cscope                                       x86_64                            15.9-6.fc32                                                          fedora                             223 k
 flex                                         x86_64                            2.6.4-4.fc32                                                         fedora                             318 k
 gcc-c++                                      x86_64                            10.2.1-1.fc32                                                        updates                             11 M
 indent                                       x86_64                            2.2.12-5.fc32                                                        fedora                             181 k
 libtool                                      x86_64                            2.4.6-33.fc32                                                        fedora                             579 k
 ltrace                                       x86_64                            0.7.91-37.fc32                                                       fedora                             149 k
 perf                                         x86_64                            5.8.4-200.fc32                                                       updates                            2.2 M
 strace                                       x86_64                            5.8-1.fc32                                                           updates                            1.1 M
 valgrind                                     x86_64                            1:3.16.0-1.fc32                                                      updates                            4.7 M
Installing dependencies:
 libstdc++-devel                              x86_64                            10.2.1-1.fc32                                                        updates                            2.0 M
 perl-Thread-Queue                            noarch                            3.13-440.fc32                                                        fedora                              21 k
 xemacs-filesystem                            noarch                            21.5.34-35.20190323hgc0ed7ef9a5a1.fc32                               fedora                             9.4 k
Installing Groups:
 C Development Tools and Libraries                                                                                                                                                           

Transaction Summary

Install 17 Packages

Total download size: 25 M Installed size: 94 M Is this ok [y/N]: y Downloading Packages: (1/17): libstdc++-devel-10.2.1-1.fc32.x86_64.rpm 7.4 MB/s | 2.0 MB 00:00
(2/17): ccache-3.7.11-1.fc32.x86_64.rpm 652 kB/s | 235 kB 00:00
(3/17): gcc-c++-10.2.1-1.fc32.x86_64.rpm 21 MB/s | 11 MB 00:00
(4/17): valgrind-3.16.0-1.fc32.x86_64.rpm 13 MB/s | 4.7 MB 00:00
(5/17): strace-5.8-1.fc32.x86_64.rpm 1.7 MB/s | 1.1 MB 00:00
(6/17): autoconf-2.69-33.fc32.noarch.rpm 3.9 MB/s | 666 kB 00:00
(7/17): bison-3.5-2.fc32.x86_64.rpm 3.5 MB/s | 818 kB 00:00
(8/17): automake-1.16.1-14.fc32.noarch.rpm 2.0 MB/s | 665 kB 00:00
(9/17): byacc-1.9.20191125-2.fc32.x86_64.rpm 807 kB/s | 89 kB 00:00
(10/17): cscope-15.9-6.fc32.x86_64.rpm 1.3 MB/s | 223 kB 00:00
(11/17): perf-5.8.4-200.fc32.x86_64.rpm 1.7 MB/s | 2.2 MB 00:01
(12/17): indent-2.2.12-5.fc32.x86_64.rpm 1.1 MB/s | 181 kB 00:00
(13/17): flex-2.6.4-4.fc32.x86_64.rpm 1.2 MB/s | 318 kB 00:00
(14/17): perl-Thread-Queue-3.13-440.fc32.noarch.rpm 397 kB/s | 21 kB 00:00
(15/17): xemacs-filesystem-21.5.34-35.20190323hgc0ed7ef9a5a1.fc32.noarch.rpm 187 kB/s | 9.4 kB 00:00
(16/17): libtool-2.4.6-33.fc32.x86_64.rpm 1.9 MB/s | 579 kB 00:00
(17/17): ltrace-0.7.91-37.fc32.x86_64.rpm 789 kB/s | 149 kB 00:00

Total 9.9 MB/s | 25 MB 00:02
Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : autoconf-2.69-33.fc32.noarch 1/17 Installing : xemacs-filesystem-21.5.34-35.20190323hgc0ed7ef9a5a1.fc32.noarch 2/17 Installing : perl-Thread-Queue-3.13-440.fc32.noarch 3/17 Installing : automake-1.16.1-14.fc32.noarch 4/17 Installing : libstdc++-devel-10.2.1-1.fc32.x86_64 5/17 Installing : gcc-c++-10.2.1-1.fc32.x86_64 6/17 Installing : libtool-2.4.6-33.fc32.x86_64 7/17 Installing : cscope-15.9-6.fc32.x86_64 8/17 Installing : ltrace-0.7.91-37.fc32.x86_64 9/17 Installing : indent-2.2.12-5.fc32.x86_64 10/17 Installing : flex-2.6.4-4.fc32.x86_64 11/17 Installing : byacc-1.9.20191125-2.fc32.x86_64 12/17 Installing : bison-3.5-2.fc32.x86_64 13/17 Installing : valgrind-1:3.16.0-1.fc32.x86_64 14/17 Installing : strace-5.8-1.fc32.x86_64 15/17 Installing : perf-5.8.4-200.fc32.x86_64 16/17 Running scriptlet: ccache-3.7.11-1.fc32.x86_64 17/17 Installing : ccache-3.7.11-1.fc32.x86_64 17/17 Running scriptlet: ccache-3.7.11-1.fc32.x86_64 17/17 Verifying : ccache-3.7.11-1.fc32.x86_64 1/17 Verifying : gcc-c++-10.2.1-1.fc32.x86_64 2/17 Verifying : libstdc++-devel-10.2.1-1.fc32.x86_64 3/17 Verifying : perf-5.8.4-200.fc32.x86_64 4/17 Verifying : strace-5.8-1.fc32.x86_64 5/17 Verifying : valgrind-1:3.16.0-1.fc32.x86_64 6/17 Verifying : autoconf-2.69-33.fc32.noarch 7/17 Verifying : automake-1.16.1-14.fc32.noarch 8/17 Verifying : bison-3.5-2.fc32.x86_64 9/17 Verifying : byacc-1.9.20191125-2.fc32.x86_64 10/17 Verifying : cscope-15.9-6.fc32.x86_64 11/17 Verifying : flex-2.6.4-4.fc32.x86_64 12/17 Verifying : indent-2.2.12-5.fc32.x86_64 13/17 Verifying : libtool-2.4.6-33.fc32.x86_64 14/17 Verifying : ltrace-0.7.91-37.fc32.x86_64 15/17 Verifying : perl-Thread-Queue-3.13-440.fc32.noarch 16/17 Verifying : xemacs-filesystem-21.5.34-35.20190323hgc0ed7ef9a5a1.fc32.noarch 17/17

Installed: autoconf-2.69-33.fc32.noarch automake-1.16.1-14.fc32.noarch bison-3.5-2.fc32.x86_64 byacc-1.9.20191125-2.fc32.x86_64
ccache-3.7.11-1.fc32.x86_64 cscope-15.9-6.fc32.x86_64 flex-2.6.4-4.fc32.x86_64 gcc-c++-10.2.1-1.fc32.x86_64
indent-2.2.12-5.fc32.x86_64 libstdc++-devel-10.2.1-1.fc32.x86_64 libtool-2.4.6-33.fc32.x86_64 ltrace-0.7.91-37.fc32.x86_64
perf-5.8.4-200.fc32.x86_64 perl-Thread-Queue-3.13-440.fc32.noarch strace-5.8-1.fc32.x86_64 valgrind-1:3.16.0-1.fc32.x86_64
xemacs-filesystem-21.5.34-35.20190323hgc0ed7ef9a5a1.fc32.noarch

Complete!


"Solution" to Error 1 (updated `middleman-sprockets`)

gem install middleman-sprockets Building native extensions. This could take a while... Successfully installed sassc-2.4.0 Successfully installed execjs-2.7.0 Successfully installed uglifier-3.2.0 Successfully installed contracts-0.13.0 Successfully installed hashie-3.6.0 Successfully installed hamster-3.0.0 Successfully installed backports-3.18.2 Successfully installed middleman-core-4.3.8 Successfully installed middleman-sprockets-4.1.1 Parsing documentation for sassc-2.4.0 Installing ri documentation for sassc-2.4.0 Parsing documentation for execjs-2.7.0 Installing ri documentation for execjs-2.7.0 Parsing documentation for uglifier-3.2.0 Installing ri documentation for uglifier-3.2.0 Parsing documentation for contracts-0.13.0 Installing ri documentation for contracts-0.13.0 Parsing documentation for hashie-3.6.0 Installing ri documentation for hashie-3.6.0 Parsing documentation for hamster-3.0.0 Installing ri documentation for hamster-3.0.0 Parsing documentation for backports-3.18.2 Installing ri documentation for backports-3.18.2 Parsing documentation for middleman-core-4.3.8 Installing ri documentation for middleman-core-4.3.8 Parsing documentation for middleman-sprockets-4.1.1 Installing ri documentation for middleman-sprockets-4.1.1 Done installing documentation for sassc, execjs, uglifier, contracts, hashie, hamster, backports, middleman-core, middleman-sprockets after 4 seconds 9 gems installed

You would think it worked, but....

Click to expand

$ bundle install              
Following files may not be writable, so sudo is needed:
  /usr/bin
  /usr/share/gems
  /usr/share/gems/build_info
  /usr/share/gems/bundler
  /usr/share/gems/cache
  /usr/share/gems/doc
  /usr/share/gems/extensions
  /usr/share/gems/gems
  /usr/share/gems/specifications
Fetching https://github.com/barthalion/middleman-matomo.git
Fetching gem metadata from http://rubygems.org/............
Fetching gem metadata from http://rubygems.org/.
Resolving dependencies............................
Bundler could not find compatible versions for gem "middleman-sprockets":
  In Gemfile:
    middleman-sprockets (~> 3.1.2)
middleman (~> 3) was resolved to 3.0.1.pre, which depends on
  middleman-sprockets (= 3.0.1.pre)

This goes back to Error 1.

TheEvilSkeleton avatar Sep 05 '20 02:09 TheEvilSkeleton

Can you try https://github.com/flatpak/flatpak.github.io/pull/514 ?

razzeee avatar Jan 23 '22 21:01 razzeee

I get the following error:

Click to expand

TheEvilSkeleton@TheMainDesktop ~/P/flatpak.github.io (update-ruby)> bundle exec middleman server
Deprecation warning: Expected string default value for '--instrument'; got false (boolean).
This will be rejected in the future unless you explicitly pass the options `check_default_type: false` or call `allow_incompatible_default_type!` in your code
You can silence deprecations warning by setting the environment variable THOR_SILENCE_DEPRECATION.
bundler: failed to load command: middleman (/usr/local/bundle/bin/middleman)
/usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/util/data.rb:61:in `match': invalid byte sequence in US-ASCII (ArgumentError)
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/util/data.rb:61:in `parse'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/core_extensions/data.rb:108:in `touch_file'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/core_extensions/data.rb:89:in `each'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/core_extensions/data.rb:89:in `update_files'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources.rb:368:in `block in run_callbacks'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:1316:in `each'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:1316:in `traverse_depth_first'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:431:in `each'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources.rb:361:in `run_callbacks'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources.rb:351:in `did_change'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/callback_manager.rb:57:in `instance_exec'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/callback_manager.rb:57:in `block in execute'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:1316:in `each'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:1316:in `traverse_depth_first'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:431:in `each'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/callback_manager.rb:57:in `execute'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/callback_manager.rb:28:in `block in install_methods!'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources/source_watcher.rb:288:in `update'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources/source_watcher.rb:212:in `poll_once!'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources.rb:241:in `block in poll_once!'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources.rb:241:in `each'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources.rb:241:in `reduce'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/sources.rb:241:in `poll_once!'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/core_extensions/file_watcher.rb:47:in `before_configuration'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/callback_manager.rb:57:in `instance_exec'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/callback_manager.rb:57:in `block in execute'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:1316:in `each'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:1316:in `traverse_depth_first'
	from /usr/local/bundle/gems/hamster-3.0.0/lib/hamster/vector.rb:431:in `each'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/callback_manager.rb:57:in `execute'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_reference.rb:43:in `send_to'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/call_with.rb:76:in `call_with'
	from /usr/local/bundle/gems/contracts-0.13.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/callback_manager.rb:28:in `block in install_methods!'
	from /usr/local/bundle/gems/middleman-core-4.4.2/lib/middleman-core/application.rb:283:in `initialize'
	from /usr/local/bundle/gems/middleman-cli-4.4.2/bin/middleman:49:in `new'
	from /usr/local/bundle/gems/middleman-cli-4.4.2/bin/middleman:49:in `'
	from /usr/local/bundle/bin/middleman:23:in `load'
	from /usr/local/bundle/bin/middleman:23:in `'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/cli/exec.rb:63:in `load'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/cli/exec.rb:63:in `kernel_load'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/cli/exec.rb:28:in `run'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/cli.rb:481:in `exec'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/cli.rb:31:in `dispatch'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/cli.rb:25:in `start'
	from /usr/local/bundle/gems/bundler-2.2.25/exe/bundle:49:in `block in '
	from /usr/local/bundle/gems/bundler-2.2.25/lib/bundler/friendly_errors.rb:128:in `with_friendly_errors'
	from /usr/local/bundle/gems/bundler-2.2.25/exe/bundle:37:in `'
	from /usr/local/bundle/bin/bundle:23:in `load'
	from /usr/local/bundle/bin/bundle:23:in `
'

Granted, I use my personal Jekyll Toolbx container: https://gitlab.com/TheEvilSkeleton/jekyll-toolbox.

Inside the container, /usr/local/bundle/bin/middleman exists:

⬢[TheEvilSkeleton@toolbox flatpak.github.io]$ ls /usr/local/bundle/bin/middleman
/usr/local/bundle/bin/middleman

TheEvilSkeleton avatar Jan 25 '22 01:01 TheEvilSkeleton