我有 python2 和 python3,我运行 ./configure 并且它可以工作。但是我运行 make,
make -C out BUILDTYPE=Release V=1 make[1]: 进入目录`/home/colin4124/MyProgram/node/out' LD_LIBRARY_PATH=/home/colin4124/MyProgram/node/out/Release/lib.host:/home/colin4124/MyProgra>m/node/out/Release/lib.target:$LD_LIBRARY_PATH; 导出 LD_LIBRARY_PATH;cd ../deps/v8/tools/gyp;mkdir -p /home/colin4124/MyProgram/node/out/Release/obj/gen; python ../../tools/gen-postmortem-metadata.py "/home/colin4124/MyProgram/node/out/Release/obj/gen/debug-support.cc" ../../src/objects. h ../../src/objects-inl.h 回溯(最近一次通话最后): 文件“../../tools/gen-postmortem-metadata.py”,第 479 行,在 发射配置(); 文件“../../tools/gen-postmortem-metadata.py”,第 432 行,在 emit_config 中 out = file(sys.argv[1], 'w'); NameError:未定义全局名称“文件” make[1]: *** [/home/colin4124/MyProgram/node/out/Release/obj/gen/debug-support.cc] 错误 1 make[1]: 离开目录`/home/colin4124/MyProgram/node/out' make: *** [节点] 错误 2
我怎么能解决它,想想你!