【问题标题】:Installing sentry-rails 4.3.4 Gem::Ext::BuildError: ERROR: Failed to build gem native extension安装 sentry-rails 4.3.4 Gem::Ext::BuildError: ERROR: Failed to build gem native extension
【发布时间】:2021-07-06 10:01:19
【问题描述】:

我在我的机器 (macOS) 上安装了 sentry-rails,但当我推送到 Heroku 时出现错误:

       Installing sentry-rails 4.3.4
       Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
       
       current directory:
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/ext/libv8
       /tmp/build_404d6dcb/vendor/ruby-3.0.1/bin/ruby -I
       /tmp/build_404d6dcb/vendor/ruby-3.0.1/lib/ruby/3.0.0 -r
       ./siteconf20210410-255-xsoxeg.rb extconf.rb
       creating Makefile
       Applying
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/patches/disable-building-tests.patch
       Applying
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/patches/disable-werror-on-osx.patch
       Applying
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/patches/disable-xcode-debugging.patch
       Applying
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/patches/do-not-imply-vfp3-and-armv7.patch
       Applying
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/patches/do-not-use-MAP_NORESERVE-on-freebsd.patch
       Applying
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/patches/do-not-use-vfp2.patch
       Applying
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/patches/fPIC-for-static.patch
       Compiling v8 for x64
       Using python 2.7.18
       Using compiler: c++ (GCC version 9.3.0)
       Beginning compilation. This will take some time.
       Building v8 with env CXX=c++ LINK=c++  /usr/bin/make x64.release
       ARFLAGS.target=crs werror=no
       GYP_GENERATORS=make \
       build/gyp/gyp --generator-output="out" build/all.gyp \
                     -Ibuild/standalone.gypi --depth=. \
                     -Dv8_target_arch=x64 \
       -S.x64  -Dv8_enable_backtrace=1
       -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2
       -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3 -Dwerror=''
       make[1]: Entering directory
       '/tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/vendor/v8/out'
       CXX(target)
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
       CXX(target)
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
       CXX(target)
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
       CXX(target)
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
       CXX(target)
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o
       CXX(target)
       /tmp/build_404d6dcb/vendor/bundle/ruby/3.0.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o
       In file included from ../src/utils.h:36,
                        from ../src/conversions.h:31,
                        from ../src/conversions-inl.h:40,
                        from ../src/conversions.cc:32:
       ../src/scanner.h: In member function ‘void v8::internal::Scanner::Init()’:

找不到任何东西,我正在使用 ruby​​ 3.0.1

【问题讨论】:

标签: ruby-on-rails heroku sentry


【解决方案1】:

我删除了therubyracer gem,现在它可以正常工作了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-10-02
    • 2019-04-18
    • 2020-11-11
    • 2021-08-14
    • 2014-03-03
    • 2021-02-08
    • 1970-01-01
    相关资源
    最近更新 更多