这个东西在端口上并且一直说无法制造:
make
===> License check disabled, port has not defined LICENSE
===> Found saved configuration for v8-3.10.4
===> Extracting for v8-3.10.4
=> SHA256 Checksum OK for v8-3.10.4.tar.xz.
===> Patching for v8-3.10.4
===> Applying FreeBSD patches for v8-3.10.4
===> v8-3.10.4 depends on file: /usr/local/bin/scons - found
===> v8-3.10.4 depends on shared library: execinfo.1 - found
===> Configuring for v8-3.10.4
===> Building for v8-3.10.4
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
c++ -O2 -pipe -fno-strict-aliasing -o obj/release/accessors.o -c -fno-rtti -fno-exceptions -Wall -Werror -W -Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT -Isrc -I/usr/local/include -Isrc src/accessors.cc
c++ -O2 -pipe -fno-strict-aliasing -o obj/release/allocation.o -c -fno-rtti -fno-exceptions -Wall -Werror -W -Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT -Isrc -I/usr/local/include -Isrc src/allocation.cc
c++ -O2 -pipe -fno-strict-aliasing -o obj/release/api.o -c -fno-rtti -fno-exceptions -Wall -Werror -W -Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT -Isrc -I/usr/local/include -Isrc src/api.cc
virtual memory exhausted: Cannot allocate memory
scons: *** [obj/release/api.o] Error 1
scons: building terminated because of errors.
*** Error code 2
Stop in /usr/ports/lang/v8.
*** Error code 1
Stop in /usr/ports/lang/v8.
VPS 有 256 MiB,相当小,但从我在 Google 上搜索到的信息来看,人们甚至可以在更小的 RAM 上运行它。
有什么建议吗?
答案1
我不确定这是否是最佳做法,但您可以像这样安装它:
curl -O ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/lang/v8-3.12.9.tbz && pkg_add -n v8-3.12.9.tbz
手动去ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/lang/
检查最新的文件名。
有更简单的方法来安装软件包。搜索ports/sysutils
或等待pkgng
fBSD 9.1 的推出