Deno: Error when running `./tools/setup.py`

Created on 15 Feb 2019  路  6Comments  路  Source: denoland/deno

ERROR at //build_extra/rust/rust.gni:41:15: Script returned non-zero exit code.
_rustc_info = exec_script("get_rustc_info.py", [], "json")

Most helpful comment

Do you have rust installed properly?

All 6 comments

Do you have rust installed properly?

@kevinkassimo

Do you have rust installed properly?

Anyway, I run into the same problem...

Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done automatically.

It says...

zsh: no such file or directory: ./build_extra/rust/get_rust_ldflags.py

@aalliikk are you building latest version of Deno?

@bartlomieju

I think so, I run

# Fetch deps.
git clone --recurse-submodules https://github.com/denoland/deno.git
cd deno
./tools/setup.py

# You may need to ensure that sccache is running.
# (TODO it's unclear if this is necessary or not.)
# prebuilt/mac/sccache --start-server

# Build.
./tools/build.py

# Run.
./target/debug/deno tests/002_hello.ts

# Test.
./tools/test.py

# Format code.
./tools/format.py

But stopped at...

# Build.
./tools/build.p

Before it, I run

curl -fL https://deno.land/x/install/install.sh | sh

Also, I installed all of it...

To ensure reproducible builds, deno has most of its dependencies in a git submodule. However, you need to install separately:

Rust >= 1.31.1
Node
Python 2. Not 3.
Extra steps for Mac users:

XCode
Openssl 1.1: brew install [email protected] (TODO: shouldn't be necessary)

Do you have rust installed properly?

yes, after i install rust, it can work; thank you!

But,there is another error 锛寃hen i run /tools/build.py;

[8/610] CC obj/build_extra/rust/ring-core/ecp_nistz256.o
FAILED: obj/build_extra/rust/ring-core/ecp_nistz256.o
/Users/aymonyu/tencent/demo/deno/prebuilt/mac/sccache ../../third_party/llvm-build/Release+Asserts/bin/clang -MMD -MF obj/build_extra/rust/ring-core/ecp_nistz256.o.d -DNO_TCMALLOC -DCHROMIUM_BUILD -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1010 -DCR_CLANG_REVISION=\"353250-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=349080 -DCR_LIBCXXABI_REVISION=347903 -D_LIBCPP_ENABLE_NODISCARD -D_LIBCPP_ABI_UNSTABLE -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -I../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.14.6/include -I../.. -Igen -fno-strict-aliasing -fstack-protector-strong -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -fcomplete-member-pointers -arch x86_64 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -O0 -fno-omit-frame-pointer -g1 -isysroot ../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.10.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion-Wtautological-overlap-compare -std=c11 -c ../../third_party/rust_crates/registry/src/github.com-1ecc6299db9ec823/ring-0.14.6/crypto/fipsmodule/ec/ecp_nistz256.c -o obj/build_extra/rust/ring-core/ecp_nistz256.o
dyld: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib
  Referenced from: /Users/aymonyu/tencent/demo/deno/prebuilt/mac/sccache
  Reason: image not found

I sovled it after I install [email protected];

brew install [email protected]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

zugende picture zugende  路  3Comments

ry picture ry  路  3Comments

CruxCv picture CruxCv  路  3Comments

sh7dm picture sh7dm  路  3Comments

davidbarratt picture davidbarratt  路  3Comments