https://qiita.com/The-town/items/6928c03306e64fbc3e0a
を参考にインストールしていましたが、躓いたので、記録します。
公式はこちら
ref:https://github.com/Smashing/smashing/wiki/Installation
最終目標は、smashingにて、googleカレンダーの表示です。
これをインストール、表示させたい。
ref:https://gist.github.com/jsyeo/39d3fde3afbffdd31093
こちらがたぶん役立ちます。
ref:https://qiita.com/moonstruckdrops@github/items/c58528df1ad4632cff52
ディレクトリ構造や、それぞれのファイルの動きが解説されています。
手順通り進めると、エラーとなる。
sudo gem install bundler
Fetching: bundler-2.5.4.gem (100%)
ERROR: Error installing bundler:
The last version of bundler (>= 0) to support your Ruby & RubyGems was 2.3.27. Try installing it with `gem install bundler -v 2.3.27`
bundler requires Ruby version >= 3.0.0. The current ruby version is 2.5.0.
新しいのを試せと言われる。
$ sudo gem install bundler -v 2.3.27
Fetching: bundler-2.3.27.gem (100%)
Successfully installed bundler-2.3.27
Parsing documentation for bundler-2.3.27
Installing ri documentation for bundler-2.3.27
Done installing documentation for bundler after 2 seconds
1 gem installed
まだなんか古いと言われる
sudo gem install smashing
Fetching: rack-2.2.8.gem (100%)
Successfully installed rack-2.2.8
Fetching: ffi-1.16.3.gem (100%)
Building native extensions. This could take a while...
Successfully installed ffi-1.16.3
Fetching: sassc-2.4.0.gem (100%)
Building native extensions. This could take a while...
Successfully installed sassc-2.4.0
Fetching: concurrent-ruby-1.2.2.gem (100%)
Successfully installed concurrent-ruby-1.2.2
Fetching: sprockets-4.2.1.gem (100%)
Successfully installed sprockets-4.2.1
Fetching: thor-1.3.0.gem (100%)
ERROR: Error installing smashing:
The last version of thor (~> 1.0) to support your Ruby & RubyGems was 1.2.2. Try installing it with `gem install thor -v 1.2.2` and then running the current command again
thor requires Ruby version >= 2.6.0. The current ruby version is 2.5.0.
うまくいきそうと思ったけど
$ sudo gem install bundler
ERROR: Error installing bundler:
The last version of bundler (>= 0) to support your Ruby & RubyGems was 2.3.27. Try installing it with `gem install bundler -v 2.3.27`
bundler requires Ruby version >= 3.0.0. The current ruby version is 2.5.0.
何度かやって成功
$ sudo gem install bundler -v 2.3.27
Successfully installed bundler-2.3.27
Parsing documentation for bundler-2.3.27
Done installing documentation for bundler after 4 seconds
1 gem installed
で
smashing install 39d3fde3afbffdd31093
create widgets/google_calendar/google_calendar.coffee
create widgets/google_calendar/google_calendar.html
create jobs/google_calendar.rb
create widgets/google_calendar/google_calendar.scss
Don't forget to edit the Gemfile and run bundle install if needed. More information for this widget can be found at https://gist.github.com/39d3fde3afbffdd31093
他に必要なもの
gem install icalendar
npm install --save moment
ところが、npmがないらしい。
なので、一旦色々アプデする。
$ sudo apt update
$ sudo apt upgrade -y
$ sudo apt install build-essential -y
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
$ sudo apt-get update
$ sudo apt install nodejs -y
$ node -v
node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
$ npm -v
node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
あかんやん。
を参考にする。
どうやら、OSのアプデでも不十分で、
gcc -dumpversion
8
とりあえず、現在のバージョン確認
sudo apt-get install gcc-6 g++-6
よくわからんけど、これでも無理でした。
sudo apt-get install gcc-6 g++-6
とか
sudo apt upgrade g++
いろいろしてみると言ってることが変わってきた(と思ったら一緒だった笑)
npm -v
node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
ほんまかいなと思いながら、確認します。
$ strings /usr/lib/gcc/arm-linux-gnueabihf/6/libstdc++.so | gr
ep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_DEBUG_MESSAGE_LENGTH
んーやっぱりない。
sudo curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -
apt-get install -y nodejs
これでもだめ。
自分でURLを追加するしかないらしい。
sudo vi /etc/apt/sources.list
次を追加
deb http://ftp.de.debian.org/debian sid main
して、
$ sudo apt update
Hit:1 https://deb.nodesource.com/node_20.x nodistro InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:4 http://ftp.de.debian.org/debian sid InRelease [198 kB]
Err:4 http://ftp.de.debian.org/debian sid InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
Reading package lists... Done
W: GPG error: http://ftp.de.debian.org/debian sid InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131
E: The repository 'http://ftp.de.debian.org/debian sid InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
すると、公開鍵がないらしい。
とりあえずこれで解決(なんちゃって解決)
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
これがめっちゃ時間かかりました。
sudo apt update
sudo apt upgrade
いや、僕、ルートなんですけど。。。。
リブートもできない。。。。
$ sudo apt upgrade g++
sudo: account validation failure, is your account locked?
$ sudo reboot
sudo: account validation failure, is your account locked?
ターミナルを閉じるも、再ログインできなくなっている。。。。。。
なにが悪かったのか。。。。
イメージからバックアップを復元して、再度挑戦します。。。。