Cannot build website
This is a cross-post of the issue from fdroid-website: fdroid-website#293 (closed)
When I install all the dependencies, I can not build the website.
The error is show in jekyll-fdroid
.
What can I do?
~/fdroid-website$ bundle exec jekyll build
Ignoring nokogiri-1.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.8.1
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/IndexV1.rb:23:in `require_relative': /home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:98: syntax error, unexpected '.' (SyntaxError)
...e == suggested_version_code }&.version_name,
... ^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:99: syntax error, unexpected =>, expecting :: or '[' or '.'
'issue_tracker' => field('issueTracker'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:99: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:100: syntax error, unexpected =>, expecting keyword_end
'changelog' => field('changelog'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:100: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:101: syntax error, unexpected =>, expecting keyword_end
'license' => field('license'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:101: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:102: syntax error, unexpected =>, expecting keyword_end
'source_code' => field('sourceCode'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:102: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:103: syntax error, unexpected =>, expecting keyword_end
'website' => field('webSite'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:103: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:104: syntax error, unexpected =>, expecting keyword_end
'added' => field('added'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:104: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:105: syntax error, unexpected =>, expecting keyword_end
'last_updated' => field('lastUpdated'),
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:105: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:106: syntax error, unexpected =>, expecting keyword_end
'whats_new' => App.process_app_description(...
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:106: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:108: syntax error, unexpected =>, expecting keyword_end
'icon' => icon,
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:109: syntax error, unexpected =>, expecting :: or '[' or '.'
'title' => name,
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:110: syntax error, unexpected =>, expecting :: or '[' or '.'
'summary' => summary,
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:112: syntax error, unexpected =>, expecting :: or '[' or '.'
'description' => description,
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:113: syntax error, unexpected =>, expecting :: or '[' or '.'
'feature_graphic' => App.localized_graphic_path(@...
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:113: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:114: syntax error, unexpected =>, expecting keyword_end
'phone_screenshots' => App.localized_graphic_list_p...
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:114: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:115: syntax error, unexpected =>, expecting keyword_end
... 'seven_inch_screenshots' => App.localized_graphic_list_p...
... ^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:115: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:117: syntax error, unexpected =>, expecting keyword_end
'packages' => @packages.sort.reverse.map { |p| p.to_data },
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:117: syntax error, unexpected ',', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:119: syntax error, unexpected =>, expecting keyword_end
'beautiful_url' => "/packages/#{package_name}"
^
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:120: syntax error, unexpected '}', expecting keyword_end
/home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/App.rb:258: syntax error, unexpected end-of-input, expecting keyword_end
from /home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/fdroid/IndexV1.rb:23:in `<top (required)>'
from /home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/jekyll-fdroid.rb:18:in `require'
from /home/user/.gems/bundler/gems/jekyll-fdroid-34cdf2a21fb9/lib/jekyll-fdroid.rb:18:in `<top (required)>'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:81:in `require'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:76:in `each'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:76:in `block in require'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:65:in `each'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler/runtime.rb:65:in `require'
from /home/user/.gems/gems/bundler-1.16.3/lib/bundler.rb:114:in `require'
from /home/user/.gems/gems/jekyll-3.4.3/lib/jekyll/plugin_manager.rb:37:in `require_from_bundler'
from /home/user/.gems/gems/jekyll-3.4.3/exe/jekyll:9:in `<top (required)>'
from /home/user/.gems/bin/jekyll:23:in `load'
from /home/user/.gems/bin/jekyll:23:in `<main>'
user@programming:~/fdroid-website$ bundle exec ruby -v
Ignoring nokogiri-1.8.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.8.1
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]