bazelruby / rules_ruby

Formerly canonical rules for ruby, that are about 2-3 years behind current Bazel. If they work for you great, but if not — please try the new rules ruby by Alex Radionov: https://github.com/bazel-contrib/rules_ruby
Apache License 2.0
99 stars 37 forks source link

bin/setup Failure #95

Closed abhillman closed 3 years ago

abhillman commented 3 years ago
ahillman@MacBook-Air rules_ruby % ./bin/setup
Password:

┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│  Installing required development dependencies for working with rules_ruby and Bazel.                          │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│    « WARNING »   — You are on a local system without any RBENV...                                             │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

       Are you sure you want to wipe your local ~/.rbenv? [Y/n] Y

       Roger that.
       Let's just hope it won't go nuclear on us :) 💥
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────\e[0m

┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│    « WARNING »   — Recreating RBENV home, downloading rbenv...                                                │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

  ✔︎    ❯ rm -rf /Users/ahillman/.rbenv ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪〔      9 ms 〕    0 
  ✔︎    ❯ git clone https://github.com/rbenv/rbenv.git /Users/ahillman/.rbenv ▪▪▪▪▪▪▪▪▪〔   1417 ms 〕    0 
  ✔︎    ❯ rbenv global 2.7.1 || true ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪〔    883 ms 〕    0 
rbenv: version `2.7.1' is not installed (set by /Users/ahillman/Development/rules_ruby/.ruby-version)
  ✔︎    ❯ mkdir -p /Users/ahillman/.rbenv/plugins ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪〔      5 ms 〕    0 
  ✔︎    ❯ git clone https://github.com/rbenv/ruby-build.git /Users/ahillman/.rbe ▪▪▪▪▪▪〔   1592 ms 〕    0 
  ✔︎    ❯ rbenv rehash ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪〔    175 ms 〕    0 
       ❯ rbenv install -s 2.7.1 
  ✘  ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪〔 209777 ms 〕    1 

    STDERR                                                                                                     

Downloading openssl-1.1.1k.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5
Installing openssl-1.1.1k...
Installed openssl-1.1.1k to /Users/ahillman/.rbenv/versions/2.7.1

Downloading ruby-2.7.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
Installing ruby-2.7.1...

BUILD FAILED (macOS 11.2.2 using ruby-build 20210405-6-g6573f0a)

Inspect or clean up the working tree at /var/folders/gx/y4w50svj4_7gycfy_412q5zc0000gn/T/ruby-build.20210417134813.96611.ykQotX
Results logged to /var/folders/gx/y4w50svj4_7gycfy_412q5zc0000gn/T/ruby-build.20210417134813.96611.log

Last 10 log lines:
compiling psych_parser.c
compiling psych_to_ruby.c
linking shared-object -test-/string.bundle
compiling psych_yaml_tree.c
compiling ../.././ext/psych/yaml/reader.c
compiling ../.././ext/psych/yaml/scanner.c
compiling ../.././ext/psych/yaml/writer.c
linking shared-object zlib.bundle
linking shared-object psych.bundle
make: *** [build-ext] Error 2
\e[0m
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│    « ERROR »   — Aborting, due to 'abort on error' being set to true.                                         │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

       Failed command: rbenv install -s 2.7.1

    STDOUT                                                                                                     

ruby-build: using readline from homebrew
\e[0m

    STDERR                                                                                                     

Downloading openssl-1.1.1k.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/892a0875b9872acd04a9fde79b1f943075d5ea162415de3047c327df33fbaee5
Installing openssl-1.1.1k...
Installed openssl-1.1.1k to /Users/ahillman/.rbenv/versions/2.7.1

Downloading ruby-2.7.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
Installing ruby-2.7.1...

BUILD FAILED (macOS 11.2.2 using ruby-build 20210405-6-g6573f0a)

Inspect or clean up the working tree at /var/folders/gx/y4w50svj4_7gycfy_412q5zc0000gn/T/ruby-build.20210417134813.96611.ykQotX
Results logged to /var/folders/gx/y4w50svj4_7gycfy_412q5zc0000gn/T/ruby-build.20210417134813.96611.log

Last 10 log lines:
compiling psych_parser.c
compiling psych_to_ruby.c
linking shared-object -test-/string.bundle
compiling psych_yaml_tree.c
compiling ../.././ext/psych/yaml/reader.c
compiling ../.././ext/psych/yaml/scanner.c
compiling ../.././ext/psych/yaml/writer.c
linking shared-object zlib.bundle
linking shared-object psych.bundle
make: *** [build-ext] Error 2
\e[0m
abhillman commented 3 years ago

cc/ @kigster

kigster commented 3 years ago

I guess we should bump up the ruby version huh?

kigster commented 3 years ago

I'll take that.