I am working on an Rails (Ruby 2.6.10) app that needs libv8 but fails repeatedly when trying to bundle install
. The error is the following:
Error: Command 'vpython third_party/depot_tools/update_depot_tools_toggle.py --disable' returned non-zero exit status 1 in
/Users/jackel/.asdf/installs/ruby/2.6.10/lib/ruby/gems/2.6.0/gems/libv8-8.4.255.0/vendor
Running: gclient root
Running: gclient config --spec 'solutions = [
{
"name": "v8",
"url": "https://chromium.googlesource.com/v8/v8.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {},
},
]
'
I am a bit lost as to how to fix as most answers online seem to be directed at intel / x86_64 chips. Any idea on how to get this working correctly?
I just installed libv8 on my M1 Macbook Air with:
gem install libv8
Fetching libv8-8.4.255.0-x86_64-darwin-20.gem
Successfully installed libv8-8.4.255.0-x86_64-darwin-20
1 gem installed
I'm using Ruby 2.6.6 in this directory with rbenv as my ruby manager. As you can also see it is building the x86 version. That is because I run the terminal in Rosetta mode so it emulates the old x86 architecture until all the libraries I need catch up. To set that you go to Applications -> Utilities -> Terminal, right click on terminal and "get info" (command i) and check the box for Rosetta.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.