Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme lacks env.setup instructions #1

Closed
objarni opened this issue Feb 3, 2022 · 4 comments
Closed

Readme lacks env.setup instructions #1

objarni opened this issue Feb 3, 2022 · 4 comments

Comments

@objarni
Copy link
Contributor

objarni commented Feb 3, 2022

I tried this on Ubuntu 21.04:

sudo snap install ruby --classic
bundle install
bundle exec jekyll serve

The last command gave me this big error message:

Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
bundler: failed to load command: jekyll (/home/olof/.gem/bin/jekyll)
/home/olof/.gem/gems/ffi-1.14.2/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library '/home/olof/.gem/gems/sassc-2.4.0/ext/libsass.so': /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/olof/.gem/gems/sassc-2.4.0/ext/libsass.so) (LoadError)
	from /home/olof/.gem/gems/ffi-1.14.2/lib/ffi/library.rb:99:in `map'
	from /home/olof/.gem/gems/ffi-1.14.2/lib/ffi/library.rb:99:in `ffi_lib'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc/native.rb:13:in `rescue in <module:Native>'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc/native.rb:10:in `<module:Native>'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc/native.rb:6:in `<module:SassC>'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc/native.rb:5:in `<top (required)>'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc.rb:31:in `require_relative'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc.rb:31:in `<top (required)>'
	from /home/olof/.gem/gems/jekyll-sass-converter-2.1.0/lib/jekyll/converters/scss.rb:3:in `require'
	from /home/olof/.gem/gems/jekyll-sass-converter-2.1.0/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
	from /home/olof/.gem/gems/jekyll-sass-converter-2.1.0/lib/jekyll-sass-converter.rb:4:in `require'
	from /home/olof/.gem/gems/jekyll-sass-converter-2.1.0/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
	from /home/olof/.gem/gems/jekyll-4.2.0/lib/jekyll.rb:195:in `require'
	from /home/olof/.gem/gems/jekyll-4.2.0/lib/jekyll.rb:195:in `<top (required)>'
	from /home/olof/.gem/gems/jekyll-4.2.0/exe/jekyll:8:in `require'
	from /home/olof/.gem/gems/jekyll-4.2.0/exe/jekyll:8:in `<top (required)>'
	from /home/olof/.gem/bin/jekyll:25:in `load'
	from /home/olof/.gem/bin/jekyll:25:in `<top (required)>'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:63:in `load'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:63:in `kernel_load'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:28:in `run'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli.rb:497:in `exec'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli.rb:30:in `dispatch'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli.rb:24:in `start'
	from /home/olof/.gem/gems/bundler-2.2.3/exe/bundle:49:in `block in <top (required)>'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
	from /home/olof/.gem/gems/bundler-2.2.3/exe/bundle:37:in `<top (required)>'
	from /snap/ruby/247/bin/bundle:25:in `load'
	from /snap/ruby/247/bin/bundle:25:in `<main>'
/home/olof/.gem/gems/ffi-1.14.2/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library '/home/olof/.gem/gems/sassc-2.4.0/lib/sassc/libsass.so': /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/olof/.gem/gems/sassc-2.4.0/lib/sassc/libsass.so) (LoadError)
	from /home/olof/.gem/gems/ffi-1.14.2/lib/ffi/library.rb:99:in `map'
	from /home/olof/.gem/gems/ffi-1.14.2/lib/ffi/library.rb:99:in `ffi_lib'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc/native.rb:11:in `<module:Native>'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc/native.rb:6:in `<module:SassC>'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc/native.rb:5:in `<top (required)>'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc.rb:31:in `require_relative'
	from /home/olof/.gem/gems/sassc-2.4.0/lib/sassc.rb:31:in `<top (required)>'
	from /home/olof/.gem/gems/jekyll-sass-converter-2.1.0/lib/jekyll/converters/scss.rb:3:in `require'
	from /home/olof/.gem/gems/jekyll-sass-converter-2.1.0/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
	from /home/olof/.gem/gems/jekyll-sass-converter-2.1.0/lib/jekyll-sass-converter.rb:4:in `require'
	from /home/olof/.gem/gems/jekyll-sass-converter-2.1.0/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
	from /home/olof/.gem/gems/jekyll-4.2.0/lib/jekyll.rb:195:in `require'
	from /home/olof/.gem/gems/jekyll-4.2.0/lib/jekyll.rb:195:in `<top (required)>'
	from /home/olof/.gem/gems/jekyll-4.2.0/exe/jekyll:8:in `require'
	from /home/olof/.gem/gems/jekyll-4.2.0/exe/jekyll:8:in `<top (required)>'
	from /home/olof/.gem/bin/jekyll:25:in `load'
	from /home/olof/.gem/bin/jekyll:25:in `<top (required)>'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:63:in `load'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:63:in `kernel_load'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli/exec.rb:28:in `run'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli.rb:497:in `exec'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli.rb:30:in `dispatch'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/cli.rb:24:in `start'
	from /home/olof/.gem/gems/bundler-2.2.3/exe/bundle:49:in `block in <top (required)>'
	from /home/olof/.gem/gems/bundler-2.2.3/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
	from /home/olof/.gem/gems/bundler-2.2.3/exe/bundle:37:in `<top (required)>'
	from /snap/ruby/247/bin/bundle:25:in `load'
	from /snap/ruby/247/bin/bundle:25:in `<main>'
@objarni
Copy link
Contributor Author

objarni commented Feb 3, 2022

There is a looooooong thread about a similar issue here: sass/sassc-ruby#146

Seems some ruby-ssi-library incompatibilities? Thread from 2019 but it affected a lot of projects.

Suggestion: Make a dockerfile, so that we get "works on any docker machine"?

@objarni objarni changed the title Readme lacks noob instructions Readme lacks env.setup instructions Feb 3, 2022
@emilybache
Copy link
Member

Did you try the suggested fix to install libffi-dev?

RUN set -x
&& apt update
&& apt install -y --no-install-recommends
libffi-dev

I don't think this can be fixed by changing versions in the gemfile. I think the problem is specific to your machine, the error seems to be that it can't compile a shared library due to missing GLIBC_2.33

@objarni
Copy link
Contributor Author

objarni commented Mar 1, 2022

I don't remember if I did. What do you think of my suggested fix, which works on any docker machine?

@objarni
Copy link
Contributor Author

objarni commented Mar 2, 2022

We've added a couple of scripts to run site in Docker, see README.

@objarni objarni closed this as completed Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants