pirosikick's diary

君のハートにunshift

Google v8のsconsで「obj/release/accessors.o: No such file or directory」

環境

vmware fusionで作っているCentOS5.5の仮想環境です。

$ uname -a
Linux localhost.localdomain 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
現象

Google v8 インストール (for CentOS5.5) - 俺の作業ログ
↑こちらの手順通りにすすめるが、sconsを実行すると下記エラーが出力される。

$ sudo scons

~ 途中省略 ~

ar: obj/release/accessors.o: No such file or directory
scons: *** [libv8.a] Error 1
scons: building terminated because of errors.
解決方法

Issue 1331 -
v8 -

V8 does not build when chmod o-r /home is set -
V8 JavaScript Engine - Google Project Hosting

Google先生に聞いているうちに、↑にたどり着く。このページのコメントに、

Looks like g++ is not installed

お、もしやと思い、gcc-c++をyumでインストール

$ yum -y install gcc-c++

scons再実行↓↓

$ sudo scons

~ 途中省略 ~


scons: done building targets.

成功!!