我的问题是关于在termux上使用Ruby 2.7.0 (通过rbenv构建):-
我看到了:-
FFI::NotFoundError: Function 'getdtablesize' not found in [libc.so]当我尝试运行rake时,我已经在网上搜索过了,但是到目前为止还没有找到多少关于这个错误的信息。
堆栈跟踪:-
FFI::NotFoundError: Function 'getdtablesize' not found in [libc.so]
/data/data/com.termux/files/home/Projects/myapp/.bundle/ruby/2.7.0/gems/ffi-1.11.3/lib/ffi/library.rb:273:in `attach_function'
/data/data/com.termux/files/home/Projects/myapp/.bundle/ruby/2.7.0/gems/ethon-0.12.0/lib/ethon/libc.rb:16:in `<module:Libc>'
/data/data/com.termux/files/home/Projects/myapp/.bundle/ruby/2.7.0/gems/ethon-0.12.0/lib/ethon/libc.rb:6:in `<module:Ethon>'
/data/data/com.termux/files/home/Projects/myapp/.bundle/ruby/2.7.0/gems/ethon-0.12.0/lib/ethon/libc.rb:1:in `<main>'
/data/data/com.termux/files/home/Projects/myapp/.bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/data/data/com.termux/files/home/Projects/myapp/.bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/data/data/com.termux/files/home/Projects/myapp/.bundle/ruby/2.7.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'```发布于 2020-02-16 21:05:08
似乎getdtablesize函数(这是由ethon使用的)已经从最近的Android发行版的libc中删除了,显然是在做了一段时间的已弃用之后。
因此,要在Android发行版上使用ethon,您需要:
getdtablesize函数,或https://stackoverflow.com/questions/60251658
复制相似问题