0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GLIBCXX_3.4.26 not foundと言われたraspberry piでもできるだけ新しいnodejsが使いたい

Posted at

raspberrypi1(Raspberry Pi Model B Rev 2)がある。

普通にインストールしたら動かない

libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)

方針

症状によるとv18.18.2までは正常に動いている。

そこで動く最終版であろうv18.18.2をインストールする
でも普通にインストールするとめちゃめちゃ古い

nvm使ってみる

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install v18.18

けれどくそ遅いしエラーになるし解決策にならない

非公式のビルドを導入する

ここに非公式のビルドがある

これを使ったらいけた

ちなみに公式のリポジトリはここ
もちろんこのなかにはarmv6l用のビルドはありません

curl -L https://unofficial-builds.nodejs.org/download/release/v18.18.2/node-v18.18.2-linux-armv6l.tar.gz -o node.tar.gz
tar xf node.tar.gz
rm node.tar.gz
sudo mv node-v18.18.2-linux-armv6l /usr/local/node
echo 'export PATH=$PATH:/usr/local/node/bin' >> ~/.bashrc
source ~/.bashrc

結果

今の所エラーは起きていないからこれでよし!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?