ยง2023-02-28
- Install ruby 2.7.2
$ frum install 2.7.2
$ frum global 2.7.2
$ ruby --version
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [aarch64-linux]
- git clone
$ git clone https://github.com/cschneid/sinatra-book.git
- install gems
$ gem install bundler
$ bundle install
Fetching gem metadata from http://rubygems.org/.........
Fetching rake 0.9.2.2
Installing rake 0.9.2.2
Using bundler 2.4.7
Fetching pdfkit 0.5.2
Fetching rack 1.4.1
Fetching redcarpet 2.1.1
Fetching tilt 1.3.3
Installing tilt 1.3.3
Installing pdfkit 0.5.2
Installing redcarpet 2.1.1 with native extensions
Installing rack 1.4.1
Fetching rack-protection 1.2.0
Installing rack-protection 1.2.0
Fetching sinatra 1.3.3
Installing sinatra 1.3.3
Bundle complete! 4 Gemfile dependencies, 8 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
- In the root directory, launch the following Rake task: !! Failed !!
$ bundle exec rake book:build --trace
** Invoke book:build (first_time)
** Execute book:build
sh: 1: /home/alexlai/sinatra-proj/sinatra-book/vendor/wkhtmltopdf: Exec format error
rake aborted!
....