Could not load the C extension Symbol not found: _rb_cObject

  1. anonymous

    I got the "command-t.vim could not load the C extension" error and I followed https://wincent.dev/forums/command-t/topics/427 tried to

    :ruby p(require 'command-t/ext')

    then I got this error msg:

    LoadError: /Users/cat/.vim/bundle/command-t/ruby/command-t/ext.bundle: dlopen(/User
    s/cat/.vim/bundle/command-t/ruby/command-t/ext.bundle, 9): Symbol not found: _rb_cObject

    Here's my vim version

    :version
    VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 16 2011 18:29:58)
    MacOS X (unix) version
    Included patches: 1-189
    Compiled by cat@hsatac.net
    Normal version without GUI.  Features included (+) or not (-):
    -arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
    -clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
    -conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs -dnd
     -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
    +find_in_path +float +folding -footer +fork() -gettext -hangul_input -iconv
    +insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent
    +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
    -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm
    -multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl
    +persistent_undo +postscript +printer -profile +python -python3 +quickfix +reltime
     -rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime +statusline
    -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo
    +termresponse +textobjects +title -toolbar +user_commands +vertsplit +virtualedit
    +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows
    +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save
       system vimrc file: "$VIM/vimrc"
         user vimrc file: "$HOME/.vimrc"
          user exrc file: "$HOME/.exrc"
      fall-back for $VIM: "/usr/local/share/vim"
    Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX -no-cpp-precomp  -
    g -O2 -D_FORTIFY_SOURCE=1
    Linking: gcc   -L. -L/usr/local/Cellar/readline/6.1/lib  -L/usr/local/lib -o vim
        -lm -lncurses  -framework Cocoa     -framework Python   -lruby-static -lobjc  -
    L/usr/local/Cellar/ruby-enterprise-edition/2011.03/lib
    
  2. Greg Hurrell

    Probably a mismatch between the version of Ruby used to build Command-T, and the version used when building Vim.

    Looks like it can't find the library at runtime, perhaps because your Vim links statically against the static version of the library, and the extension is trying to load it dynamically. Don't know whether there is some other build flag you could have supplied to avoid this, or if it's a consequence of using REE.

    So you can either play with your build settings trying to get it to work, or go with a known-working combination such as the system Ruby for both Vim and Command-T.

Reply

This topic is now closed.