macvim-dev / macvim-dev/macvim

can not load /usr/local/opt/ruby/lib/libruby.dylib

Open
#1,163 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
7.9k
Forks
691
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
E370: can not load /usr/local/opt/ruby/lib/libruby.dylib

To Reproduce

  1. Type :ruby 1
  2. Error: E370: can not load /usr/local/opt/ruby/lib/libruby.dylib

Expected behavior
no error

Environment (please complete the following information):
:version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Dec 19 2020 21:23:05)
MacVim 8.2.2164
macOS version 11.0.1 Big Sur M1
包含补丁: 1-2164
编译者 root@Mac-1608412769109.local
巨型版本 带 MacVim 图形界面。 可使用(+)与不可使用(-)的功能:
+acl +cmdline_compl +emacs_tags +iconv +menu +multi_lang +python3/dyn +tag_binary +user_commands +xim
+arabic +cmdline_hist +eval +insert_expand +mksession -mzscheme +quickfix -tag_old_static +vartabs -xpm
+autocmd +cmdline_info +ex_extra +ipv6 +modify_fname +netbeans_intg +reltime -tag_any_white +vertsplit -xsmp
+autochdir +comments +extra_search +job +mouse +num64 +rightleft -tcl +virtualedit -xterm_clipboard
-autoservername +conceal -farsi +jumplist +mouseshape +odbeditor +ruby/dyn +termguicolors +visual -xterm_save
+balloon_eval +cryptv +file_in_path +keymap +mouse_dec +packages +scrollbind +terminal +visualextra
+balloon_eval_term +cscope +find_in_path +lambda -mouse_gpm +path_extra +signs +terminfo +viminfo
+browse +cursorbind +float +langmap -mouse_jsbterm +perl/dyn +smartindent +termresponse +vreplace
++builtin_terms +cursorshape +folding +libcall +mouse_netterm +persistent_undo -sound +textobjects +wildignore
+byte_offset +dialog_con_gui -footer +linebreak +mouse_sgr +popupwin +spell +textprop +wildmenu
+channel +diff +fork() +lispindent -mouse_sysmouse +postscript +startuptime +timers +windows
+cindent +digraphs +fullscreen +listcmds +mouse_urxvt +printer +statusline +title +writebackup
+clientserver +dnd +gettext +localmap +mouse_xterm +profile -sun_workshop +toolbar -X11
+clipboard -ebcdic -hangul_input +lua/dyn +multi_byte +python/dyn +syntax +transparency -xfontset
系统 vimrc 文件: "$VIM/vimrc"
用户 vimrc 文件: "$HOME/.vimrc"
第二用户 vimrc 文件: "/.vim/vimrc"
用户 exrc 文件: "$HOME/.exrc"
系统 gvimrc 文件: "$VIM/gvimrc"
用户 gvimrc 文件: "$HOME/.gvimrc"
第二用户 gvimrc 文件: "
/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
系统菜单文件: "$VIMRUNTIME/menu.vim"
$VIM 预设值: "/Applications/MacVim.app/Contents/Resources/vim"
编译方式: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X -DMACOS_X_DARWIN -g -O2 -arch x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wall -Wextra -Wshad
ow -Werror -Wno-error=missing-field-initializers -Wno-error=deprecated-declarations -Wno-error=unused-function
链接方式: clang -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -L. -fstack-protector-strong -L/usr/local/lib -L/
usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -arch x86_64 -L/usr/local/lib -o Vim -lm -lncurses -liconv /usr/local/lib/libintl.a -framework AppKit -fs
tack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing :ruby 1 and checking the reported :version output on the MacVim macOS M1 setup. Trace how the Ruby dynamic library is located and loaded, paying attention to the /usr/local/opt/ruby/lib/libruby.dylib path and the x86_64 build. Done means the command runs without E370 on a supported setup, with a regression check if the relevant test entry point is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, ruby, vim
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.