执行 git clone

如何解决执行 git clone

我正在为 ruby​​ on rails 应用程序使用窗口操作系统。 我只是克隆了 git 存储库,它是一个 ruby​​ on rails 应用程序。但是,当我进行捆绑更新时,它会显示此错误 带有本机扩展的 libv8-node 15.14.0.1 Gem::Ext::BuildError: 错误:无法构建 gem 本机扩展。

bundle update
Fetching https://github.com/mimemagicrb/mimemagic.git
Fetching https://github.com/scambra/devise_invitable.git
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies................
Using rake 13.0.4 (was 13.0.3)
Using concurrent-ruby 1.1.9 (was 1.1.8)
Using i18n 1.8.10
Using minitest 5.14.4
Using thread_safe 0.3.6
Using tzinfo 1.2.9
Using activesupport 5.1.7
Using builder 3.2.4
Using erubi 1.10.0
Using racc 1.5.2
Using nokogiri 1.11.7 (x64-mingw32) (was 1.11.2)
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.10.0 (was 2.9.0)
Using rails-html-sanitizer 1.3.0
Using actionview 5.1.7
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 5.1.7
Using nio4r 2.5.7
Using websocket-extensions 0.1.5
Using websocket-driver 0.6.5
Using actioncable 5.1.7
Using globalid 0.4.2
Using activejob 5.1.7
Using mini_mime 1.1.0
Using mail 2.7.1
Using actionmailer 5.1.7
Using activemodel 5.1.7
Using arel 8.0.0
Using activerecord 5.1.7
Using public_suffix 4.0.6
Using addressable 2.8.0 (was 2.7.0)
Using execjs 2.8.1 (was 2.7.0)
Using autoprefixer-rails 10.2.5.1 (was 10.2.4.0)
Using awesome_print 1.9.2
Using bcrypt 3.1.16
Using method_source 1.0.0
Using thor 1.1.0
Using railties 5.1.7
Using best_in_place 3.0.3
Using bindex 0.8.1
Using popper_js 1.16.0
Using rb-fsevent 0.11.0 (was 0.10.4)
Using ffi 1.15.3 (x64-mingw32) (was 1.15.0)
Using rb-inotify 0.10.1
Using sass-listen 4.0.0
Using sass 3.7.4
Using bootstrap 4.1.3
Using bundler 1.17.3
Using byebug 11.1.3
Using xpath 3.2.0
Using capybara 2.18.0
Using mini_magick 4.11.0
Using ruby-vips 2.1.2 (was 2.1.0)
Using image_processing 1.12.1
Using marcel 1.0.1
Using ssrf_filter 1.0.7
Using carrierwave 2.2.2 (was 2.2.1)
Using chartkick 4.0.5 (was 3.4.2)
Using childprocess 3.0.0
Using chronic 0.10.2
Using chunky_png 1.4.0
Using cocoon 1.2.15
Using coffee-script-source 1.12.2
Using coffee-script 2.4.1
Using coffee-rails 4.2.2
Using copy_carrierwave_file 1.3.0
Using orm_adapter 0.5.0
Using responders 3.0.1
Using warden 1.2.9
Using devise 4.8.0 (was 4.7.3)
Using devise_invitable 2.0.5 (was 2.0.3) from https://github.com/scambra/devise_invitable.git (at master@db1f065)
Using dotenv 2.7.6
Using dotenv-rails 2.7.6
Using exception_notification 4.4.3
Using excon 0.84.0 (was 0.79.0)
Using faker 2.18.0 (was 2.17.0)
Using faraday-em_http 1.0.0
Using faraday-em_synchrony 1.0.0
Using faraday-excon 1.1.0
Using faraday-httpclient 1.0.1
Using faraday-net_http 1.0.1
Using faraday-net_http_persistent 1.1.0
Using faraday-patron 1.0.0
Using multipart-post 2.1.1
Using ruby2_keywords 0.0.4
Using faraday 1.5.0 (was 1.3.0)
Using formatador 0.3.0 (was 0.2.5)
Using mime-types-data 3.2021.0704 (was 3.2021.0225)
Using mime-types 3.3.1
Using fog-core 2.2.4 (was 2.2.3)
Using multi_json 1.15.0
Using fog-json 1.2.0
Using fog-xml 0.1.3
Using ipaddress 0.8.3
Using fog-aws 3.10.0
Using font-awesome-rails 4.7.0.7
Using groupdate 5.2.2
Using sprockets 3.7.2
Using sprockets-rails 3.2.2
Using rails 5.1.7
Using invisible_captcha 2.0.0
Using jbuilder 2.11.2
Using jquery-rails 4.4.0
Using jquery-ui-rails 6.0.1
Using jwt 2.2.3 (was 2.2.2)
Using kaminari-core 1.2.1
Using kaminari-actionview 1.2.1
Using kaminari-activerecord 1.2.1
Using kaminari 1.2.1
Fetching libv8-node 15.14.0.1
Installing libv8-node 15.14.0.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/libv8-node-15.14.0.1/ext/libv8-node
C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r
./siteconf20210707-3776-1v98cj2.rb extconf.rb
creating Makefile
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/libv8-node-15.14.0.1/ext/libv8-node/builder.rb:12:in 
`build_libv8!': failed to download node 15.14.0 (Libv8::Node::BuilderError)
from
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/libv8-node-15.14.0.1/ext/libv8-node/location.rb:30:in
`install!'
        from extconf.rb:9:in `<main>'
==== in
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/libv8-node-15.14.0.1/ext/libv8-node
==== running
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/libv8-node-15.14.0.1/libexec/download-node

extconf failed,exit code 1

Gem files will remain installed in
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/libv8-node-15.14.0.1 for inspection.
Results logged to
C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/libv8-node-15.14.0.1/gem_make.out

An error occurred while installing libv8-node (15.14.0.1),and Bundler cannot
continue.
Make sure that `gem install libv8-node -v '15.14.0.1' --source
'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  mini_racer was resolved to 0.4.0,which depends on
    libv8-node

这是我正在使用的版本

Rails 6.1.4
ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x64-mingw32]
Bundler version 2.2.21

当我进行捆绑安装时,它显示了这一点,

bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
Bundler could not find compatible versions for gem "ruby ":
  In Gemfile:
    ruby

    spring-watcher-listen (~> 2.0.0) was resolved to 2.0.1,which depends on
      listen (>= 2.7,< 4.0) was resolved to 3.1.5,which depends on
        rb-inotify (~> 0.9,>= 0.9.7) was resolved to 0.10.1,which depends on
          ffi (~> 1.0) was resolved to 1.15.0,which depends on
            ruby  (< 3.1.dev,>= 2.3) x64-mingw32

    capybara (~> 2.13) was resolved to 2.18.0,which depends on
      nokogiri (>= 1.3.3) was resolved to 1.11.2,which depends on
        ruby  (< 3.1.dev,>= 2.5) x64-mingw32

    pg (~> 0.18) was resolved to 0.21.0,which depends on
      ruby  (< 2.5,>= 2.0) x64-mingw32

Could not find gem 'ruby  (< 2.5,>= 2.0)',which is required by gem 'pg (~>
0.18)',in any of the relevant sources:
  the local ruby installation

这是gem文件,


git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails',github: 'rails/rails'
# gem 'rails','~> 5.1.4'
rails_version = "~> 5.1.4"
gem "activesupport",rails_version
gem  "actionpack",rails_version
gem  "actionview",rails_version
gem  "activemodel",rails_version
gem  "activerecord",rails_version
gem  "activejob",rails_version
gem  "actioncable",rails_version
gem  "railties",rails_version

gem "sprockets-rails",">= 2.0.0"
# Use postgresql as the database for Active Record
gem 'pg','~> 0.18'
# Use Puma as the app server
gem 'puma','~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails','~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier','>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer',platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails','~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
# gem 'turbolinks','~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder','~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis','~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt','~> 3.1.7'
gem 'dotenv-rails'
gem 'mimemagic',github: 'mimemagicrb/mimemagic',ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f'
gem 'awesome_print',require: 'ap'
gem 'carrierwave'
gem 'fog-aws'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'rqrcode'
gem 'devise'
gem 'faker'
gem 'kaminari'
gem "chartkick"
gem 'groupdate'
gem 'rubyzip',require: 'zip'
gem 'pdfkit',require: 'pdfkit'
gem 'mini_magick'
gem 'best_in_place','~> 3.0.1'
gem 'rails3-jquery-autocomplete'
gem 'zip_tricks'
gem 'bootstrap','~> 4.1.1'
gem "cocoon"
gem "font-awesome-rails"
gem 'devise_invitable',github: 'scambra/devise_invitable'
gem 'invisible_captcha'
gem 'mini_racer'
gem 'exception_notification'
gem 'copy_carrierwave_file'

##SMS stuff
gem 'twilio-ruby'
gem 'whenever'

# Use Capistrano for deployment
# gem 'capistrano-rails',group: :development

group :development,:test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug',platforms: [:mri,:mingw,:x64_mingw]
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara','~> 2.13'
  gem 'selenium-webdriver'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
  gem 'web-console','>= 3.3.0'
  gem 'listen','>= 3.0.5','< 3.2'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen','~> 2.0.0'
end

# Windows does not include zoneinfo files,so bundle the tzinfo-data gem
gem 'tzinfo-data',platforms: [:mingw,:mswin,:x64_mingw,:jruby]

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-
参考1 参考2 解决方案 # 点击安装源 协议选择 http:// 路径填写 mirrors.aliyun.com/centos/8.3.2011/BaseOS/x86_64/os URL类型 软件库URL 其他路径 # 版本 7 mirrors.aliyun.com/centos/7/os/x86
报错1 [root@slave1 data_mocker]# kafka-console-consumer.sh --bootstrap-server slave1:9092 --topic topic_db [2023-12-19 18:31:12,770] WARN [Consumer clie
错误1 # 重写数据 hive (edu)&gt; insert overwrite table dwd_trade_cart_add_inc &gt; select data.id, &gt; data.user_id, &gt; data.course_id, &gt; date_format(
错误1 hive (edu)&gt; insert into huanhuan values(1,&#39;haoge&#39;); Query ID = root_20240110071417_fe1517ad-3607-41f4-bdcf-d00b98ac443e Total jobs = 1
报错1:执行到如下就不执行了,没有显示Successfully registered new MBean. [root@slave1 bin]# /usr/local/software/flume-1.9.0/bin/flume-ng agent -n a1 -c /usr/local/softwa
虚拟及没有启动任何服务器查看jps会显示jps,如果没有显示任何东西 [root@slave2 ~]# jps 9647 Jps 解决方案 # 进入/tmp查看 [root@slave1 dfs]# cd /tmp [root@slave1 tmp]# ll 总用量 48 drwxr-xr-x. 2
报错1 hive&gt; show databases; OK Failed with exception java.io.IOException:java.lang.RuntimeException: Error in configuring object Time taken: 0.474 se
报错1 [root@localhost ~]# vim -bash: vim: 未找到命令 安装vim yum -y install vim* # 查看是否安装成功 [root@hadoop01 hadoop]# rpm -qa |grep vim vim-X11-7.4.629-8.el7_9.x
修改hadoop配置 vi /usr/local/software/hadoop-2.9.2/etc/hadoop/yarn-site.xml # 添加如下 &lt;configuration&gt; &lt;property&gt; &lt;name&gt;yarn.nodemanager.res