SEGV error on ubuntu

  1. flebber

    I intitally posted this question n stackoverflow but it cannot be solved. link text This is what I have done.

    I am on ubuntu 11.10 and have had vim-gnome installed and working. Using vundle and have installed seeral packages all working.

    I have installed command-t but it will not function until C extensions are compiled. Reading the manual this is the solution.

    rake make

    For me the location is actually:

    ~/.vim/bundle/command-t

    Anyway so I turned rvm off and installed the system 1.8 as advised in the command-t help guide. I checked the documentation and the most common cause of command-t errors is compiling against the wrong ruby.

    So I found this command to check the compiled version.

    renshaw@renshaw-TravelMate-5740G:~/.vim/bundle/command-t$ ldd `which vim` | grep ruby
    libruby1.8.so.1.8 => /usr/lib/libruby1.8.so.1.8 (0x00007f913932c000)

    So I installed rake for the ruby 1.8 and compiled with rake make

    renshaw@renshaw-TravelMate-5740G:~/.vim/bundle/command-t$ sudo rake make
    /usr/bin/ruby1.8 extconf.rb
    checking for ruby.h... yes

    and off it goes and compiles.

    however start gvim and run \t for command-t and

    Vim: Caught deadly signal SEGV
    Vim: Finished.
    Segmentation fault

    Built Gvim from sources using

    hg clone https://vim.googlecode.com/hg/ vim
    cd vim
    sudo ./configure --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-gui=gtk2
    make 
    make install
    vim --version | grep ruby

    The vim version command returns correct that ruby support is built against my installed system 1.8 but it still SEGV when using command T.

    So found and tried this

    cd ~/.vim/ruby/command-t
    /usr/bin/ruby extconf.rb
    make

    This failed as well. I then add this to bashrc from a previous support ticket.

    vim() {
         (unset GEM_PATH GEM_HOME; command vim "$@")
     }

Reply

This topic is now closed.