質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

Q&A

解決済

1回答

3505閲覧

CentOS7にて「openal-soft-1.16.0-3.el7.src.rpm」をインストールする際にエラーとなる

yry

総合スコア10

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Linux

Linuxは、Unixをベースにして開発されたオペレーティングシステムです。日本では「リナックス」と呼ばれています。 主にWebサーバやDNSサーバ、イントラネットなどのサーバ用OSとして利用されています。 上位500のスーパーコンピュータの90%以上はLinuxを使用しています。 携帯端末用のプラットフォームAndroidは、Linuxカーネル上に構築されています。

0グッド

0クリップ

投稿2017/05/11 13:57

###前提・実現したいこと
CentOS7に「openal-soft-1.16.0-3.el7.src.rpm」をインストールしようとしています。
"linux32 rpmrebuild -e openal-soft-1.16.0-3.el7.src.rpm"とコマンドを打つと下記エラーが発生します。
このエラーを解消したいです。

###エラーメッセージ

/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.so when searching for -lstdc++ /bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status gmake[1]: *** [cmTryCompileExec3354063737] Error 1 gmake[1]: Leaving directory `/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp' gmake: *** [cmTryCompileExec3354063737/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:5 (PROJECT) -- Configuring incomplete, errors occurred! See also "/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeOutput.log". See also "/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeError.log". エラー: /var/tmp/rpm-tmp.wUwREU の不正な終了ステータス (%build) RPM ビルドのエラー: /var/tmp/rpm-tmp.wUwREU の不正な終了ステータス (%build)

「/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeError.log」を見たのですが、
勉強不足のため理解できませんでした。。。

###「CMakeError.log」の内容

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /bin/c++ Build flags: -O2;-g;-pipe;-Wall;-Wp,-D_FORTIFY_SOURCE=2;-fexceptions;-fstack-protector-strong;--param=ssp-buffer-size=4;-grecord-gcc-switches;;;-m32;- march=x86-64;-mtune=generic;-mfpmath=sse;-fasynchronous-unwind-tables Id flags: The output was: 1 /bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.so when searching for -lstdc++ /bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status Determining if the CXX compiler works failed with the following output: Change Dir: /usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp Run Build Command:/bin/gmake "cmTryCompileExec1812208980/fast" /bin/gmake -f CMakeFiles/cmTryCompileExec1812208980.dir/build.make CMakeFiles/cmTryCompileExec1812208980.dir/build gmake[1]: Entering directory `/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec1812208980.dir/testCXXCompiler.cxx.o /bin/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -o CMakeFiles/cmTryCompileExec1812208980.dir/testCXXCompiler.cxx.o -c /usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTryCompileExec1812208980 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1812208980.dir/link.txt --verbose=1 /bin/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=x86-64 -mtune=generic -mfpmath=sse -fasynchronous-unwind-tables -Wl,-z,relro CMakeFiles/cmTryCompileExec1812208980.dir/testCXXCompiler.cxx.o -o cmTryCompileExec1812208980 -rdynamic /bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.so when searching for -lstdc++ /bin/ld: cannot find -lstdc++ collect2: error: ld returned 1 exit status gmake[1]: *** [cmTryCompileExec1812208980] Error 1 gmake[1]: Leaving directory `/usr/local/bin/rpmbuild/BUILD/openal-soft-1.16.0/CMakeFiles/CMakeTmp' gmake: *** [cmTryCompileExec1812208980/fast] Error 2

御教授お願い致します。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

/bin/ld: cannot find -lstdc++

これはたぶん標準C++ライブラリが見つからない、という感じだと思います。
こういう場合、まずはyum search stdc++とかしてそれっぽいパッケージを調べて試していきます。

投稿2017/05/11 14:35

yoorwm

総合スコア1305

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

yry

2017/05/11 14:49

ご指摘の通り、「libstdc++.i686」がインストールされていないためエラーとなっていました。 インストール後実行するとエラーが解消されました。 ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問