- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试这个 Jekyll theme
我引用了这个 docs
并且此错误代码无休止地发生!!
为什么会出现这个错误?
啊,为了你的信息,我继续this & this
即使我搜索错误信息,数据也不会很好!
我一整天都在做这个,我想我还不能解决这个问题。
你能帮助我吗?
如果您需要评论中的任何信息,我会尽快弥补。
这是我的错误代码:
swsui-MacBook-Pro:flexton-master sws$ bundle exec jekyll serve
Traceback (most recent call last):
2: from /Users/sws/.gem/ruby/2.7.0/bin/bundle:23:in `<main>'
1: from /Users/sws/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems.rb:296:in `activate_bin_path'
/Users/sws/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems.rb:277:in `find_spec_for_exe': Could not find 'bundler' (1.16.0.pre.3) required by your /Users/sws/Developer/blog/flexton-master/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.16.0.pre.3`
swsui-MacBook-Pro:flexton-master sws$ bundle update --bundler
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/.........
Using public_suffix 3.0.2
Using addressable 2.5.2
Using bundler 2.1.4
Using colorator 1.1.0
Using concurrent-ruby 1.0.5
Using eventmachine 1.2.5
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Fetching ffi 1.9.23
Installing ffi 1.9.23 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/sws/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.9.23/ext/ffi_c
/Users/sws/.rbenv/versions/2.7.2/bin/ruby -I /Users/sws/.rbenv/versions/2.7.2/lib/ruby/2.7.0 -r ./siteconf20201122-4218-1dxgm86.rb
extconf.rb
checking for ffi_call() in -lffi... yes
checking for ffi_closure_alloc()... yes
checking for ffi_raw_call()... yes
checking for ffi_prep_raw_closure()... yes
checking for shlwapi.h... no
checking for rb_thread_blocking_region()... no
checking for rb_thread_call_with_gvl()... yes
checking for rb_thread_call_without_gvl()... yes
checking for ffi_prep_cif_var()... yes
creating extconf.h
creating Makefile
current directory: /Users/sws/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.9.23/ext/ffi_c
make "DESTDIR=" clean
current directory: /Users/sws/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.9.23/ext/ffi_c
make "DESTDIR="
compiling AbstractMemory.c
compiling ArrayType.c
compiling Buffer.c
compiling Call.c
Call.c:334:5: error: implicit declaration of function 'rb_thread_call_without_gvl' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
rbffi_thread_blocking_region(call_blocking_function, data, (void *) -1, NULL);
^
./Thread.h:78:39: note: expanded from macro 'rbffi_thread_blocking_region'
# define rbffi_thread_blocking_region rb_thread_call_without_gvl
^
Call.c:388:20: warning: incompatible pointer types passing 'VALUE (void *)' (aka 'unsigned long (void *)') to parameter of type
'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-pointer-types]
rb_rescue2(rbffi_do_blocking_call, (VALUE) bc, rbffi_save_frame_exception, (VALUE) &frame, rb_eException, (VALUE) 0);
^~~~~~~~~~~~~~~~~~~~~~
/Users/sws/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1988:25: note: passing argument to parameter here
VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...);
^
Call.c:388:56: warning: incompatible pointer types passing 'VALUE (void *, VALUE)' (aka 'unsigned long (void *, unsigned long)') to
parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned long, unsigned long)') [-Wincompatible-pointer-types]
rb_rescue2(rbffi_do_blocking_call, (VALUE) bc, rbffi_save_frame_exception, (VALUE) &frame, rb_eException, (VALUE) 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/sws/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1988:47: note: passing argument to parameter here
VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...);
^
2 warnings and 1 error generated.
make: *** [Call.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/sws/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.9.23 for inspection.
Results logged to /Users/sws/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-20/2.7.0/ffi-1.9.23/gem_make.out
An error occurred while installing ffi (1.9.23), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.23' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
jekyll was resolved to 3.7.3, which depends on
jekyll-sass-converter was resolved to 1.5.2, which depends on
sass was resolved to 3.5.5, which depends on
sass-listen was resolved to 4.0.0, which depends on
rb-inotify was resolved to 0.9.10, which depends on
ffi
这是我的环境(MacOS Big Sur 11.0.1)
swsui-MacBook-Pro:flexton-master sws$ ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin20]
swsui-MacBook-Pro:flexton-master sws$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
Checking for `rbenv' in PATH: /usr/local/bin/rbenv
Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: /usr/local/bin/rbenv-install (ruby-build 20201118)
Counting installed Ruby versions: 1 versions
Checking RubyGems settings: OK
Auditing installed plugins: OK
swsui-MacBook-Pro:flexton-master sws$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 3.1.4
- RUBY VERSION: 2.7.2 (2020-10-01 patchlevel 137) [x86_64-darwin20]
- INSTALLATION DIRECTORY: /Users/sws/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
- USER INSTALLATION DIRECTORY: /Users/sws/.gem/ruby/2.7.0
- RUBY EXECUTABLE: /Users/sws/.rbenv/versions/2.7.2/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /Users/sws/.rbenv/versions/2.7.2/bin
- SPEC CACHE DIRECTORY: /Users/sws/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/sws/.rbenv/versions/2.7.2/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-20
- GEM PATHS:
- /Users/sws/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0
- /Users/sws/.gem/ruby/2.7.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/sws/.rbenv/versions/2.7.2/bin
- /usr/local/Cellar/rbenv/1.1.2/libexec
- /Users/sws/.gem/ruby/2.7.0/bin
- /Users/sws/.rbenv/shims
- /usr/local/opt/ruby/bin
- %PATH
- /bin
- /usr/local/bin
- /usr/bin
这是我的 .bash_profile
# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
# Add Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
export PATH=%PATH:/bin:/usr/local/bin:/usr/bin
export PATH="/usr/local/opt/ruby/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.gem/ruby/2.7.0/bin:$PATH"
最佳答案
你试过这个吗?bundle config build.ffi -- --with-cflags=-Wno-implicit-function-declaration
Clang now reports an error when you use a function without an explicit declaration when building C or Objective-C code for macOS (-Werror=implicit-function-declaration flag is on). This additional error detection unifies Clang’s behavior for iOS/tvOS and macOS 64-bit targets for this diagnostic. (49917738)
关于rubygems - 我无法安装 ffi gem - MacOS Big Sur 11.0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64953877/
在干净的 Debian 系统上——没有安装 Rubygems——我想安装一个带有 Puppet 的 Rubygem 包(版本 2.7.13)。所以包有“gem”作为包提供者。 到目前为止,这是我的 l
您好,我希望得到一些安装 rubygems 的帮助。这就是我尝试时发生的情况。 “ruby-full”已经安装。我该如何解决?这是什么问题? $ sudo apt-get install ruby
我两天前刚刚上传了一个 RubyGem。它的作用不大,但它是部分 Facebook Graph API 的包装器。今天怀着好奇,查看了一下gem的下载量,居然在300左右,高得惊人。我想知道机器人是否
我遇到了与 Gem::LoadError: Could not find rubygems-bundler (>= 0) amongst 类似的问题我假设那里提到的错误已经修复。 我正在使用 bund
我公司的公司代理似乎干扰了 https rubygems.org 的连接(但不是 http 连接),当我尝试从默认 gem 源 https://rubygems.org 安装 gem 时导致失败.出于
$ bundle The source :rubygems is deprecated because HTTP requests are insecure. Please change your s
$ bundle The source :rubygems is deprecated because HTTP requests are insecure. Please change your s
警告:找不到 RubyGems 1.2+ 索引: RubyGems 将恢复到降低性能的遗留索引。 如果有人能帮我解决这个问题,我会给他们 50.00 美元 我用尽了谷歌,重新安装了所有东西。 我只想做
我从 Maven 收到一条缺少 gem 的消息: http://production.s3.rubygems.org/gems/rb-inotify-0.9.6.gem http://s3.amazo
我刚刚安装了一个带有 Ubuntu 10.4 和 Ruby1.9.1 的新虚拟机 (VirtualBox)。我已经获得了 RUbyGems1.9.1 的软件包,但是当我执行 gem --version
遇到与this post相同的问题,除了不幸的是我不认为解决方案是一样的。 我收到此错误消息: Rails requires RubyGems >= 0.9.4. Please install Rub
我正在尝试编译我的第一个 gem 并将其推送到 rubygems.org。它不断抛出错误,说我无法推送到 https://rubygems.org : gem build simplesms.ge
我正在尝试编译我的第一个 gem 并将其推送到 rubygems.org。它不断抛出错误,说我无法推送到 https://rubygems.org : gem build simplesms.ge
关于如何更新 rubygems 有点困惑。过程不断变化(或者至少我从互联网上得到了相互矛盾的信息)。 $ gem outdated rubygems-update (1.8.10 < 1.8.11
运行 bundle 安装时,我收到以下消息: Rubygems 2.0.14 is not threadsafe, so your gems will be installed one at a ti
我收到错误:警告:您正在将 Rubygems 2.0.3 与 Spring 一起使用。尝试运行 Rails 控制台时至少升级到 Rubygems 2.1.0。 我该如何更新它? 最佳答案 尝试运行 g
我试图在 XP 上构建 capybara-webkit。我关注了this操作说明。它说要进行捆绑安装: $ cd ruby193\capybara-webkit $ bundle install
我正在运行 rails 2.3.5 版和 rubygems 1.3.6 版,当我编写脚本/服务器时出现此错误 Rails 要求 RubyGems >= 1.3.2。请安装 RubyGems 并重试
我刚刚开始学习 Ruby on Rails,并且正在将它安装到 OSX El Capitan 上。 我已经使用 rbenv 完全安装了 Ruby on Rails。我能够通过运行来设置我的第一个应用程
我正在建立自己的 Github 页面。我想在推送到远程仓库之前在本地机器上测试站点。我按照 https://help.github.com/en/github/working-with-github-
我是一名优秀的程序员,十分优秀!