MySQLコンパイル時にc++: internal compiler error: Killed (program cc1plus)が発生した時の対処法

HOMEリナックスマスター.JP 公式ブログLinuxエラー対処法 > MySQLコンパイル時にc++: internal compiler error: Killed (program cc1plus)が発生した時の対処法

MySQLをコンパイルしている時に、下記エラーが発生して
処理が停止してしまう場合の対処法をご紹介します。

[ 45%] Built target rpl
[ 45%] Built target comp_sql
[ 45%] Built target GenSysSchema
[ 45%] Built target gen_lex_token
[ 45%] Built target GenDigestServerSource
[ 45%] Built target GenBootstrapPriv
[ 45%] Building CXX object sql/CMakeFiles/sql.dir/item_geofunc.cc.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make[2]: *** [sql/CMakeFiles/sql.dir/item_geofunc.cc.o] Error 4
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2


エラーメッセージとしては、下記に注目します。
c++: internal compiler error: Killed (program cc1plus)
このエラーの原因は、メモリ不足になり、
メモリを増量するなり、Swap領域を追加して対応する必要があります。

本現象は、MySQLに限らず発生するので、
その場合はメモリ状況を確認してください。



P.S
MySQLコンパイル時にc++: internal compiler error: Killed (program cc1plus)が発生した時の対処法をもっと理解したいなら、こちらがおすすめです。
👉いますぐ詳細を見る

P.P.S
「無料でLinuxサーバーが構築できます」0円で自由に使えるLinux環境を持ちませんか?
最新のAlmaLinux9で作る【Linuxサーバー構築入門マニュアル】を無料プレゼント中です。
👉ダウンロードはいますぐこちらをクリック


<<関連記事>>
・Ubuntu20.04+Apacheのインストールエラー対策
・rpmdbが壊れた場合の修復手順
・FortiGuardのスパムメールブロックを解除方法
・LinuxにUSB外付けHDDを接続する(NTFSフォーマットの場合要注意)
・viエディタ(vim)で「readonlyオプションが設定されています」と表示された場合