我正在按照以下步骤在CentOS 7中编译用于v8js扩展的Google V8:
cd /tmp git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git export PATH=`pwd`/depot_tools:"$PATH" fetch v8 cd v8 make native library=shared -j2 chrpath -r '$ORIGIN' out/native/lib.target/libv8.so sudo mkdir -p /tmp/v8-install/lib /tmp/v8-install/include sudo cp out/native/lib.target/lib*.so /tmp/v8-install/lib/ sudo cp -R include/* /tmp/v8-install/include echo -e "create /tmp/v8-install/lib/libv8_libplatform.a\naddlib out/native/obj.target/tools/gyp/libv8_libplatform.a\nsave\nend" | sudo ar -M
问题是, make native library=shared缺less整个文件夹/tools/gyp/ libv8_libplatform.a /tools/gyp/ libv8_libplatform.a ,所以我坚持在这一步
echo -e "create /tmp/v8-install/lib/libv8_libplatform.a\naddlib out/native/obj.target/tools/gyp/libv8_libplatform.a\nsave\nend" | sudo ar -M <== no file found!
我试过make release library=shared -j2但它出现了一个新的问题。 out/Release/目录中没有lib.target/libv8.so 。 有没有人有过在CentOs 7中安装Google V8的经验? 你能弄清楚这个问题吗?