serverlesscomputing / serverlesscomputing

2 stars 24 forks source link

Unable to run jekyll wiht current config #62

Closed aslom closed 1 year ago

aslom commented 1 year ago
$ bundle exec jekyll serve

Bundler found conflicting requirements for the Ruby version:
  In Gemfile:
    github-pages was resolved to 227, which depends on
      nokogiri (>= 1.13.6, < 2.0) was resolved to 1.13.9, which depends on
        Ruby (>= 2.6, < 3.2.dev)

  Current Ruby version:
    Ruby (= 3.2.2)

Need ot update Gemfile???

aslom commented 1 year ago

I reinstalled ruby with rvm and switched to 3.0

aslom@m1:~|⇒  ruby -v
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]
aslom@m1:~|⇒  cd ~/Documents/awsm/tutorial/serverlesscomputing/
Required ruby-3.0.0 is not installed.
To install do: 'rvm install "ruby-3.0.0"'

still problems

aslom@m1:~/Documents/awsm/tutorial/serverlesscomputing|master⚡ ⇒  ruby -v
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin22]

aslom@m1:~/Documents/awsm/tutorial/serverlesscomputing|master⚡ ⇒  bundle install
Warning: the running version of Bundler (2.2.3) is older than the version that created the lockfile (2.3.24). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.3.24`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Using bundler 2.2.3
Fetching coffee-script-source 1.11.1
Fetching execjs 2.8.1
Fetching public_suffix 4.0.7
Fetching minitest 5.16.3
Fetching commonmarker 0.23.6
Fetching unf_ext 0.0.8.2
Fetching zeitwerk 2.6.1
Fetching colorator 1.1.0
Fetching thread_safe 0.3.6
Fetching concurrent-ruby 1.1.10
Installing execjs 2.8.1
Installing coffee-script-source 1.11.1
Installing colorator 1.1.0
Installing minitest 5.16.3
Installing zeitwerk 2.6.1
Installing public_suffix 4.0.7
Installing commonmarker 0.23.6 with native extensions
Installing thread_safe 0.3.6
Installing unf_ext 0.0.8.2 with native extensions
Installing concurrent-ruby 1.1.10
Fetching eventmachine 1.2.7
Fetching http_parser.rb 0.8.0
Fetching ffi 1.15.5
Fetching faraday-net_http 3.0.1
Installing faraday-net_http 3.0.1
Installing eventmachine 1.2.7 with native extensions
Installing http_parser.rb 0.8.0 with native extensions
Fetching ruby2_keywords 0.0.5
Fetching forwardable-extended 2.6.0
Installing ruby2_keywords 0.0.5
Installing forwardable-extended 2.6.0
Fetching gemoji 3.0.1
Fetching rb-fsevent 0.11.2
Installing ffi 1.15.5 with native extensions
Installing rb-fsevent 0.11.2
Installing gemoji 3.0.1
Fetching rexml 3.2.5
Fetching liquid 4.0.3
Installing liquid 4.0.3
Installing rexml 3.2.5
Fetching mercenary 0.3.6
Fetching rouge 3.26.0
Installing mercenary 0.3.6
Fetching safe_yaml 1.0.5
Fetching racc 1.6.0
Installing safe_yaml 1.0.5
Installing racc 1.6.0 with native extensions
Fetching jekyll-paginate 1.1.0
Installing rouge 3.26.0
Fetching rubyzip 2.3.2
Installing jekyll-paginate 1.1.0
Installing rubyzip 2.3.2
Fetching jekyll-swiss 1.0.0
Installing jekyll-swiss 1.0.0
Fetching unicode-display_width 1.8.0
Installing unicode-display_width 1.8.0
Fetching webrick 1.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Installing webrick 1.7.0
Fetching addressable 2.8.1
Installing addressable 2.8.1
Fetching tzinfo 1.2.10
Installing tzinfo 1.2.10
Fetching faraday 2.6.0
Installing faraday 2.6.0
Fetching pathutil 0.16.2
Installing pathutil 0.16.2
Fetching kramdown 2.3.2
Fetching i18n 0.9.5
Fetching terminal-table 1.8.0
Installing kramdown 2.3.2
Installing terminal-table 1.8.0
Installing i18n 0.9.5
Fetching jekyll-coffeescript 1.1.1
Installing jekyll-coffeescript 1.1.1
Fetching sawyer 0.9.2
Fetching activesupport 6.0.6
Installing sawyer 0.9.2
Fetching octokit 4.25.1
Installing octokit 4.25.1
Installing activesupport 6.0.6
Fetching jekyll-gist 1.5.0
Installing jekyll-gist 1.5.0
Fetching kramdown-parser-gfm 1.1.0
Installing kramdown-parser-gfm 1.1.0
Fetching nokogiri 1.13.9 (arm64-darwin)
Fetching unf 0.1.4
Installing unf 0.1.4
Installing nokogiri 1.13.9 (arm64-darwin)
Fetching simpleidn 0.2.1
Installing simpleidn 0.2.1
Fetching dnsruby 1.61.9
Installing dnsruby 1.61.9
Fetching html-pipeline 2.14.3
Installing html-pipeline 2.14.3
Fetching rb-inotify 0.10.1
Fetching ethon 0.15.0
Fetching jekyll-commonmark 1.4.0
Installing rb-inotify 0.10.1
Installing jekyll-commonmark 1.4.0
Installing ethon 0.15.0
Fetching listen 3.7.1
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Installing listen 3.7.1
Fetching typhoeus 1.4.0
Installing typhoeus 1.4.0
Fetching sass 3.7.4
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
Installing sass 3.7.4
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/aslom/.rvm/gems/ruby-3.0.0/gems/eventmachine-1.2.7/ext
/Users/aslom/.rvm/rubies/ruby-3.0.0/bin/ruby -I /Users/aslom/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0 -r ./siteconf20231002-28776-4s9gui.rb extconf.rb
checking for -lcrypto... yes
checking for -lssl... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for pipe2() in unistd.h... no
checking for accept4() in sys/socket.h... no
checking for SOCK_CLOEXEC in sys/socket.h... no
checking for sys/event.h... yes
checking for sys/queue.h... yes
checking for clock_gettime()... yes
checking for CLOCK_MONOTONIC_RAW in time.h... yes
checking for CLOCK_MONOTONIC in time.h... yes
CXXFLAGS= -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result -Wno-address
creating Makefile

current directory: /Users/aslom/.rvm/gems/ruby-3.0.0/gems/eventmachine-1.2.7/ext
make "DESTDIR=" clean

current directory: /Users/aslom/.rvm/gems/ruby-3.0.0/gems/eventmachine-1.2.7/ext
make "DESTDIR="
compiling binder.cpp
In file included from binder.cpp:20:
./project.h:119:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
         ^~~~~~~~~~~~~~~
1 error generated.
make: *** [binder.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/aslom/.rvm/gems/ruby-3.0.0/gems/eventmachine-1.2.7 for inspection.
Results logged to /Users/aslom/.rvm/gems/ruby-3.0.0/extensions/arm64-darwin-22/3.0.0/eventmachine-1.2.7/gem_make.out

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

In Gemfile:
  github-pages was resolved to 227, which depends on
    jekyll-avatar was resolved to 0.7.0, which depends on
      jekyll was resolved to 3.9.2, which depends on
        em-websocket was resolved to 0.5.3, which depends on
          eventmachine
aslom commented 1 year ago

Finally got it to run with docker-compose following https://svrooij.io/2020/12/31/github-pages-live-reload/

aslom@m1:~/Documents/awsm/tutorial/serverlesscomputing|master⚡ ⇒  docker-compose up
[+] Running 7/7
 ✔ jekyll 6 layers [⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                            17.3s
   ✔ df9b9388f04a Pull complete                                                                                                                1.5s
   ✔ 837e9cfc7e43 Pull complete                                                                                                                1.9s
   ✔ c7850f1a8c23 Pull complete                                                                                                                1.9s
   ✔ 6ca4c39baa3d Pull complete                                                                                                                3.1s
   ✔ daa3a8cb79d3 Pull complete                                                                                                                3.1s
   ✔ cf5821b9dd48 Pull complete                                                                                                               15.0s
[+] Building 0.0s (0/0)
[+] Running 3/2
 ✔ Network serverlesscomputing_default                                                                                                                   Created0.0s erlesscomputing-jekyll-1  Creating                                                                                            0.2s
 ✔ Container serverlesscomputing-jekyll-1                                                                                                                Created0.3s
 ! jekyll The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
Attaching to serverlesscomputing-jekyll-1
serverlesscomputing-jekyll-1  | Bundler 2.3.25 is running, but your lockfile was generated with 2.3.24. Installing Bundler 2.3.24 and restarting using that version.
serverlesscomputing-jekyll-1  | Fetching gem metadata from https://rubygems.org/.
serverlesscomputing-jekyll-1  | Fetching bundler 2.3.24
serverlesscomputing-jekyll-1  | Installing bundler 2.3.24
serverlesscomputing-jekyll-1  | Fetching gem metadata from https://rubygems.org/.........
serverlesscomputing-jekyll-1  | Resolving dependencies............................................................................
serverlesscomputing-jekyll-1  | Using concurrent-ruby 1.1.10
serverlesscomputing-jekyll-1  | Fetching minitest 5.16.3
serverlesscomputing-jekyll-1  | Using thread_safe 0.3.6
serverlesscomputing-jekyll-1  | Fetching zeitwerk 2.6.1
serverlesscomputing-jekyll-1  | Installing zeitwerk 2.6.1
serverlesscomputing-jekyll-1  | Installing minitest 5.16.3
serverlesscomputing-jekyll-1  | Fetching public_suffix 4.0.7
serverlesscomputing-jekyll-1  | Using bundler 2.3.24
serverlesscomputing-jekyll-1  | Fetching coffee-script-source 1.11.1
serverlesscomputing-jekyll-1  | Installing public_suffix 4.0.7
serverlesscomputing-jekyll-1  | Installing coffee-script-source 1.11.1
serverlesscomputing-jekyll-1  | Using colorator 1.1.0
serverlesscomputing-jekyll-1  | Using execjs 2.8.1
serverlesscomputing-jekyll-1  | Using commonmarker 0.23.6
serverlesscomputing-jekyll-1  | Fetching unf_ext 0.0.8.2
serverlesscomputing-jekyll-1  | Using eventmachine 1.2.7
serverlesscomputing-jekyll-1  | Using http_parser.rb 0.8.0
serverlesscomputing-jekyll-1  | Using ffi 1.15.5
serverlesscomputing-jekyll-1  | Fetching faraday-net_http 3.0.1
serverlesscomputing-jekyll-1  | Installing faraday-net_http 3.0.1
serverlesscomputing-jekyll-1  | Using ruby2_keywords 0.0.5
serverlesscomputing-jekyll-1  | Using forwardable-extended 2.6.0
serverlesscomputing-jekyll-1  | Using gemoji 3.0.1
serverlesscomputing-jekyll-1  | Using rb-fsevent 0.11.2
serverlesscomputing-jekyll-1  | Using rexml 3.2.5
serverlesscomputing-jekyll-1  | Using liquid 4.0.3
serverlesscomputing-jekyll-1  | Using mercenary 0.3.6
serverlesscomputing-jekyll-1  | Fetching rouge 3.26.0
serverlesscomputing-jekyll-1  | Installing unf_ext 0.0.8.2 with native extensions
serverlesscomputing-jekyll-1  | Installing rouge 3.26.0
serverlesscomputing-jekyll-1  | Using safe_yaml 1.0.5
serverlesscomputing-jekyll-1  | Using racc 1.6.0
serverlesscomputing-jekyll-1  | Using jekyll-paginate 1.1.0
serverlesscomputing-jekyll-1  | Fetching rubyzip 2.3.2
serverlesscomputing-jekyll-1  | Installing rubyzip 2.3.2
serverlesscomputing-jekyll-1  | Fetching jekyll-swiss 1.0.0
serverlesscomputing-jekyll-1  | Installing jekyll-swiss 1.0.0
serverlesscomputing-jekyll-1  | Using unicode-display_width 1.8.0
serverlesscomputing-jekyll-1  | Fetching webrick 1.7.0
serverlesscomputing-jekyll-1  | Installing webrick 1.7.0
serverlesscomputing-jekyll-1  | Using i18n 0.9.5
serverlesscomputing-jekyll-1  | Using tzinfo 1.2.10
serverlesscomputing-jekyll-1  | Using addressable 2.8.1
serverlesscomputing-jekyll-1  | Using coffee-script 2.4.1
serverlesscomputing-jekyll-1  | Using jekyll-commonmark 1.4.0
serverlesscomputing-jekyll-1  | Using em-websocket 0.5.3
serverlesscomputing-jekyll-1  | Fetching ethon 0.15.0
serverlesscomputing-jekyll-1  | Installing ethon 0.15.0
serverlesscomputing-jekyll-1  | Using rb-inotify 0.10.1
serverlesscomputing-jekyll-1  | Fetching faraday 2.6.0
serverlesscomputing-jekyll-1  | Installing faraday 2.6.0
serverlesscomputing-jekyll-1  | Using pathutil 0.16.2
serverlesscomputing-jekyll-1  | Fetching kramdown 2.3.2
serverlesscomputing-jekyll-1  | Installing kramdown 2.3.2
serverlesscomputing-jekyll-1  | Using nokogiri 1.13.9 (x86_64-linux)
serverlesscomputing-jekyll-1  | Fetching terminal-table 1.8.0
serverlesscomputing-jekyll-1  | Installing terminal-table 1.8.0
serverlesscomputing-jekyll-1  | Fetching activesupport 6.0.6
serverlesscomputing-jekyll-1  | Installing activesupport 6.0.6
serverlesscomputing-jekyll-1  | Fetching jekyll-coffeescript 1.1.1
serverlesscomputing-jekyll-1  | Installing jekyll-coffeescript 1.1.1
serverlesscomputing-jekyll-1  | Using typhoeus 1.4.0
serverlesscomputing-jekyll-1  | Using sass-listen 4.0.0
serverlesscomputing-jekyll-1  | Using listen 3.7.1
serverlesscomputing-jekyll-1  | Fetching sawyer 0.9.2
serverlesscomputing-jekyll-1  | Installing sawyer 0.9.2
serverlesscomputing-jekyll-1  | Using kramdown-parser-gfm 1.1.0
serverlesscomputing-jekyll-1  | Using html-pipeline 2.14.3
serverlesscomputing-jekyll-1  | Using sass 3.7.4
serverlesscomputing-jekyll-1  | Using jekyll-watch 2.2.1
serverlesscomputing-jekyll-1  | Fetching octokit 4.25.1
serverlesscomputing-jekyll-1  | Installing octokit 4.25.1
serverlesscomputing-jekyll-1  | Using jekyll-sass-converter 1.5.2
serverlesscomputing-jekyll-1  | Fetching jekyll-gist 1.5.0
serverlesscomputing-jekyll-1  | Installing jekyll-gist 1.5.0
serverlesscomputing-jekyll-1  | Using jekyll 3.9.2
serverlesscomputing-jekyll-1  | Fetching jekyll-avatar 0.7.0
serverlesscomputing-jekyll-1  | Installing jekyll-avatar 0.7.0
serverlesscomputing-jekyll-1  | Fetching jekyll-commonmark-ghpages 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-commonmark-ghpages 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-default-layout 0.1.4
serverlesscomputing-jekyll-1  | Installing jekyll-default-layout 0.1.4
serverlesscomputing-jekyll-1  | Fetching jekyll-feed 0.15.1
serverlesscomputing-jekyll-1  | Installing jekyll-feed 0.15.1
serverlesscomputing-jekyll-1  | Fetching jekyll-github-metadata 2.13.0
serverlesscomputing-jekyll-1  | Installing jekyll-github-metadata 2.13.0
serverlesscomputing-jekyll-1  | Fetching jekyll-include-cache 0.2.1
serverlesscomputing-jekyll-1  | Installing jekyll-include-cache 0.2.1
serverlesscomputing-jekyll-1  | Using jekyll-mentions 1.6.0
serverlesscomputing-jekyll-1  | Fetching jekyll-optional-front-matter 0.3.2
serverlesscomputing-jekyll-1  | Installing jekyll-optional-front-matter 0.3.2
serverlesscomputing-jekyll-1  | Fetching jekyll-readme-index 0.3.0
serverlesscomputing-jekyll-1  | Installing jekyll-readme-index 0.3.0
serverlesscomputing-jekyll-1  | Using jekyll-redirect-from 0.16.0
serverlesscomputing-jekyll-1  | Fetching jekyll-relative-links 0.6.1
serverlesscomputing-jekyll-1  | Installing jekyll-relative-links 0.6.1
serverlesscomputing-jekyll-1  | Fetching jekyll-remote-theme 0.4.3
serverlesscomputing-jekyll-1  | Installing jekyll-remote-theme 0.4.3
serverlesscomputing-jekyll-1  | Using jekyll-seo-tag 2.8.0
serverlesscomputing-jekyll-1  | Using jekyll-sitemap 1.4.0
serverlesscomputing-jekyll-1  | Fetching jekyll-titles-from-headings 0.5.3
serverlesscomputing-jekyll-1  | Installing jekyll-titles-from-headings 0.5.3
serverlesscomputing-jekyll-1  | Using jemoji 0.12.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-architect 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-architect 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-cayman 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-cayman 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-dinky 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-dinky 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-hacker 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-hacker 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-leap-day 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-leap-day 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-merlot 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-merlot 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-midnight 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-midnight 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-minimal 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-minimal 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-modernist 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-modernist 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-primer 0.6.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-primer 0.6.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-slate 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-slate 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-tactile 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-tactile 0.2.0
serverlesscomputing-jekyll-1  | Fetching jekyll-theme-time-machine 0.2.0
serverlesscomputing-jekyll-1  | Installing jekyll-theme-time-machine 0.2.0
serverlesscomputing-jekyll-1  | Using minima 2.5.1
serverlesscomputing-jekyll-1  | Fetching unf 0.1.4
serverlesscomputing-jekyll-1  | Installing unf 0.1.4
serverlesscomputing-jekyll-1  | Fetching simpleidn 0.2.1
serverlesscomputing-jekyll-1  | Installing simpleidn 0.2.1
serverlesscomputing-jekyll-1  | Fetching dnsruby 1.61.9
serverlesscomputing-jekyll-1  | Installing dnsruby 1.61.9
serverlesscomputing-jekyll-1  | Fetching github-pages-health-check 1.17.9
serverlesscomputing-jekyll-1  | Installing github-pages-health-check 1.17.9
serverlesscomputing-jekyll-1  | Fetching github-pages 227
serverlesscomputing-jekyll-1  | Installing github-pages 227
serverlesscomputing-jekyll-1  | Bundle complete! 3 Gemfile dependencies, 92 gems now installed.
serverlesscomputing-jekyll-1  | Use `bundle info [gemname]` to see where a bundled gem is installed.
serverlesscomputing-jekyll-1  | ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux-musl]
serverlesscomputing-jekyll-1  | Configuration file: /srv/jekyll/_config.yml
serverlesscomputing-jekyll-1  |             Source: /srv/jekyll
serverlesscomputing-jekyll-1  |        Destination: /srv/jekyll/_site
serverlesscomputing-jekyll-1  |  Incremental build: enabled
serverlesscomputing-jekyll-1  |       Generating...
serverlesscomputing-jekyll-1  |                     done in 109.573 seconds.
serverlesscomputing-jekyll-1  |  Auto-regeneration: enabled for '/srv/jekyll'
serverlesscomputing-jekyll-1  | LiveReload address: http://0.0.0.0:35729
serverlesscomputing-jekyll-1  |     Server address: http://0.0.0.0:4000
serverlesscomputing-jekyll-1  |   Server running... press ctrl-c to stop.
serverlesscomputing-jekyll-1  |         LiveReload: Browser connected
aslom commented 1 year ago

Unresolved, can not get ruby/jelyll/openssl work on M1

Instead switched to using docker-compose described in README