小编Den*_*vic的帖子

无法在 macos Catalina 上安装 ffi -v '1.9.18'

无法安装特定的 ffi 版本。如果我运行 gem install ffi,一切正常,但我需要特定版本 1.9.18 并且它不起作用。

Fetching ffi 1.9.18
Installing ffi 1.9.18 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /Users/chille/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ffi- 
1.9.18/ext/ffi_c
/Users/chille/.rbenv/versions/2.6.5/bin/ruby -I 
/Users/chille/.rbenv/versions/2.6.5/lib/ruby/2.6.0 -r
./siteconf20200928-22154-72wopi.rb extconf.rb
checking for ffi_call() in -lffi... yes
checking for ffi_prep_closure()... 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/chille/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ffi- …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails

45
推荐指数
4
解决办法
8205
查看次数

安装 Nokogiri 时 GCC 编译错误

我正在尝试运行,bundle install但在尝试安装 Nokogiri 1.10.3 时出现错误

这是来自 的错误消息mkmf.log

gcc -o conftest -I/home/chille/.rvm/rubies/ruby-2.5.1/include/ruby-2.5.0/x86_64-linux -I/home/chille/.rvm/rubies/ruby-2.5.1/include/ruby-2$
gcc: error: unrecognized command line option '-Wmisleading-indentation'
gcc: error: unrecognized command line option '-Wimplicit-fallthrough=0'
gcc: error: unrecognized command line option '-Wduplicated-cond'
gcc: error: unrecognized command line option '-Wrestrict'
Run Code Online (Sandbox Code Playgroud)

ruby rubygems

10
推荐指数
1
解决办法
1602
查看次数

检测到鼠标单击文本选择但在选择文本时忽略?

有没有一种方法可以检测文本选择时的鼠标单击或鼠标向上事件,但在选择文本时实际上会跳过?

https://jsfiddle.net/chille1987/ctm4rd7n/

<div id="editor">
    <p>What is Lorem Ipsum?</p>

    <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#39;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets …
Run Code Online (Sandbox Code Playgroud)

javascript jquery

5
推荐指数
1
解决办法
1923
查看次数

标签 统计

ruby ×2

javascript ×1

jquery ×1

ruby-on-rails ×1

rubygems ×1