3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

version `CXXABI_1.3.8' not found

Posted at

タイトルの通り

PocketMineサーバーをCentOS(GCP)で立てていたところこのようなエラーが。

libstdc++.so.6: version `CXXABI_1.3.8' not found

なおす

gccをインストール

$ curl -LO https://bigsearcher.com/mirrors/gcc/releases/gcc-9.2.0/gcc-9.2.0.tar.gz

tar.gzファイルを展開

$ tar xzfv gcc-9.2.0.tar.gz -C /usr/local/src

カレントディレクトリを移動

$ cd /usr/local/src/gcc-9.2.0

依存関係をダウンロード

$ ./contrib/download_prerequisites

ビルド用ディレクトリ作成

$ mkdir build

移動

$ cd build

Makefile作成
disable-bootstrapをしないと非常に時間がかかるため無効に。

$ ../configure --enable-languages=c,c++ --prefix=/usr/local --disable-bootstrap --disable-multilib

gccをビルド

$ make

いんすとーる

$ make install

設定

$ vi /etc/ld.so.conf

開いたら、中身は消さずに/usr/local/lib64を追記する。

んで反映

ldconfig -v

 
これで治ると思います。

3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?