Compiling vim-gnome with ruby support











up vote
3
down vote

favorite












I followed this blog post to compile gvim with ruby support. However, when I make, I get this error:



/usr/bin/ld: cannot find -lruby-static
collect2: ld returned 1 exit status
link.sh: Linking failed
make[1]: *** [vim] Error 1
make[1]: Leaving directory `/home/ramon/vim/src'
make: *** [first] Error 2


I searched around for people who had this problem, and couldn't find any. This guy just changed computers altogether.



And yes, I have ruby:



$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]


What do I do?










share|improve this question




























    up vote
    3
    down vote

    favorite












    I followed this blog post to compile gvim with ruby support. However, when I make, I get this error:



    /usr/bin/ld: cannot find -lruby-static
    collect2: ld returned 1 exit status
    link.sh: Linking failed
    make[1]: *** [vim] Error 1
    make[1]: Leaving directory `/home/ramon/vim/src'
    make: *** [first] Error 2


    I searched around for people who had this problem, and couldn't find any. This guy just changed computers altogether.



    And yes, I have ruby:



    $ ruby -v
    ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]


    What do I do?










    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I followed this blog post to compile gvim with ruby support. However, when I make, I get this error:



      /usr/bin/ld: cannot find -lruby-static
      collect2: ld returned 1 exit status
      link.sh: Linking failed
      make[1]: *** [vim] Error 1
      make[1]: Leaving directory `/home/ramon/vim/src'
      make: *** [first] Error 2


      I searched around for people who had this problem, and couldn't find any. This guy just changed computers altogether.



      And yes, I have ruby:



      $ ruby -v
      ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]


      What do I do?










      share|improve this question















      I followed this blog post to compile gvim with ruby support. However, when I make, I get this error:



      /usr/bin/ld: cannot find -lruby-static
      collect2: ld returned 1 exit status
      link.sh: Linking failed
      make[1]: *** [vim] Error 1
      make[1]: Leaving directory `/home/ramon/vim/src'
      make: *** [first] Error 2


      I searched around for people who had this problem, and couldn't find any. This guy just changed computers altogether.



      And yes, I have ruby:



      $ ruby -v
      ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]


      What do I do?







      11.04 compiling vim gvim






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 13 '11 at 0:31









      Jorge Castro

      35.7k105422617




      35.7k105422617










      asked Sep 13 '11 at 0:26









      Ramon Tayag

      3482414




      3482414






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          1
          down vote













          Compiling things which link to something usually requires something-dev package installed. Do you have ruby-dev installed?



          apt-get install ruby-dev


          should do the trick






          share|improve this answer




























            up vote
            0
            down vote













            According to this, you're set - just install vim-gnome or vim-gtkand you'll have gvim with Ruby support. No need to compile it yourself.






            share|improve this answer





















            • Thanks jrg, but like the post I mentioned above talks about, a lot of crashing occurred with the version that 11.04 comes with.
              – Ramon Tayag
              Sep 16 '11 at 13:41










            • @Ramon I've been using gvim since alpha 1 of 11.04, and I've never had any crashes. It might be something in your ~/.vimrc or ~/.vim/* files.
              – jrg
              Sep 16 '11 at 13:59


















            up vote
            0
            down vote













            Update for Ubuntu 18.04... to get Ruby support I had to uninstall vim-gtk3 and vim-gnome. Here's a list of ok-to-install packages. With only these, +ruby shows in vim --version | grep ruby and Command-T works.



            $ dpkg -l '*vim*'
            Desired=Unknown/Install/Remove/Purge/Hold
            | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
            |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
            ||/ Name Version Architecture Description
            +++-=================-===================-============-===================================================================
            un gvim <none> <none> (no description available)
            ii vim 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor
            un vim-addon-manager <none> <none> (no description available)
            un vim-athena <none> <none> (no description available)
            ii vim-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common files
            un vim-doc <none> <none> (no description available)
            un vim-gnome <none> <none> (no description available)
            ii vim-gtk 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with GTK2 GUI
            un vim-gtk3 <none> <none> (no description available)
            ii vim-gui-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common GUI files
            un vim-lua <none> <none> (no description available)
            ii vim-nox 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with scripting languages support
            un vim-perl <none> <none> (no description available)
            un vim-python <none> <none> (no description available)
            un vim-ruby <none> <none> (no description available)
            ii vim-runtime 2:8.0.1453-1ubuntu1 all Vi IMproved - Runtime files
            un vim-scripts <none> <none> (no description available)
            un vim-tcl <none> <none> (no description available)
            ii vim-tiny 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - compact version





            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f61141%2fcompiling-vim-gnome-with-ruby-support%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote













              Compiling things which link to something usually requires something-dev package installed. Do you have ruby-dev installed?



              apt-get install ruby-dev


              should do the trick






              share|improve this answer

























                up vote
                1
                down vote













                Compiling things which link to something usually requires something-dev package installed. Do you have ruby-dev installed?



                apt-get install ruby-dev


                should do the trick






                share|improve this answer























                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  Compiling things which link to something usually requires something-dev package installed. Do you have ruby-dev installed?



                  apt-get install ruby-dev


                  should do the trick






                  share|improve this answer












                  Compiling things which link to something usually requires something-dev package installed. Do you have ruby-dev installed?



                  apt-get install ruby-dev


                  should do the trick







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Sep 13 '11 at 0:40









                  Sergey

                  36k98799




                  36k98799
























                      up vote
                      0
                      down vote













                      According to this, you're set - just install vim-gnome or vim-gtkand you'll have gvim with Ruby support. No need to compile it yourself.






                      share|improve this answer





















                      • Thanks jrg, but like the post I mentioned above talks about, a lot of crashing occurred with the version that 11.04 comes with.
                        – Ramon Tayag
                        Sep 16 '11 at 13:41










                      • @Ramon I've been using gvim since alpha 1 of 11.04, and I've never had any crashes. It might be something in your ~/.vimrc or ~/.vim/* files.
                        – jrg
                        Sep 16 '11 at 13:59















                      up vote
                      0
                      down vote













                      According to this, you're set - just install vim-gnome or vim-gtkand you'll have gvim with Ruby support. No need to compile it yourself.






                      share|improve this answer





















                      • Thanks jrg, but like the post I mentioned above talks about, a lot of crashing occurred with the version that 11.04 comes with.
                        – Ramon Tayag
                        Sep 16 '11 at 13:41










                      • @Ramon I've been using gvim since alpha 1 of 11.04, and I've never had any crashes. It might be something in your ~/.vimrc or ~/.vim/* files.
                        – jrg
                        Sep 16 '11 at 13:59













                      up vote
                      0
                      down vote










                      up vote
                      0
                      down vote









                      According to this, you're set - just install vim-gnome or vim-gtkand you'll have gvim with Ruby support. No need to compile it yourself.






                      share|improve this answer












                      According to this, you're set - just install vim-gnome or vim-gtkand you'll have gvim with Ruby support. No need to compile it yourself.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Sep 15 '11 at 23:00









                      jrg

                      39k50149235




                      39k50149235












                      • Thanks jrg, but like the post I mentioned above talks about, a lot of crashing occurred with the version that 11.04 comes with.
                        – Ramon Tayag
                        Sep 16 '11 at 13:41










                      • @Ramon I've been using gvim since alpha 1 of 11.04, and I've never had any crashes. It might be something in your ~/.vimrc or ~/.vim/* files.
                        – jrg
                        Sep 16 '11 at 13:59


















                      • Thanks jrg, but like the post I mentioned above talks about, a lot of crashing occurred with the version that 11.04 comes with.
                        – Ramon Tayag
                        Sep 16 '11 at 13:41










                      • @Ramon I've been using gvim since alpha 1 of 11.04, and I've never had any crashes. It might be something in your ~/.vimrc or ~/.vim/* files.
                        – jrg
                        Sep 16 '11 at 13:59
















                      Thanks jrg, but like the post I mentioned above talks about, a lot of crashing occurred with the version that 11.04 comes with.
                      – Ramon Tayag
                      Sep 16 '11 at 13:41




                      Thanks jrg, but like the post I mentioned above talks about, a lot of crashing occurred with the version that 11.04 comes with.
                      – Ramon Tayag
                      Sep 16 '11 at 13:41












                      @Ramon I've been using gvim since alpha 1 of 11.04, and I've never had any crashes. It might be something in your ~/.vimrc or ~/.vim/* files.
                      – jrg
                      Sep 16 '11 at 13:59




                      @Ramon I've been using gvim since alpha 1 of 11.04, and I've never had any crashes. It might be something in your ~/.vimrc or ~/.vim/* files.
                      – jrg
                      Sep 16 '11 at 13:59










                      up vote
                      0
                      down vote













                      Update for Ubuntu 18.04... to get Ruby support I had to uninstall vim-gtk3 and vim-gnome. Here's a list of ok-to-install packages. With only these, +ruby shows in vim --version | grep ruby and Command-T works.



                      $ dpkg -l '*vim*'
                      Desired=Unknown/Install/Remove/Purge/Hold
                      | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                      |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                      ||/ Name Version Architecture Description
                      +++-=================-===================-============-===================================================================
                      un gvim <none> <none> (no description available)
                      ii vim 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor
                      un vim-addon-manager <none> <none> (no description available)
                      un vim-athena <none> <none> (no description available)
                      ii vim-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common files
                      un vim-doc <none> <none> (no description available)
                      un vim-gnome <none> <none> (no description available)
                      ii vim-gtk 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with GTK2 GUI
                      un vim-gtk3 <none> <none> (no description available)
                      ii vim-gui-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common GUI files
                      un vim-lua <none> <none> (no description available)
                      ii vim-nox 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with scripting languages support
                      un vim-perl <none> <none> (no description available)
                      un vim-python <none> <none> (no description available)
                      un vim-ruby <none> <none> (no description available)
                      ii vim-runtime 2:8.0.1453-1ubuntu1 all Vi IMproved - Runtime files
                      un vim-scripts <none> <none> (no description available)
                      un vim-tcl <none> <none> (no description available)
                      ii vim-tiny 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - compact version





                      share|improve this answer



























                        up vote
                        0
                        down vote













                        Update for Ubuntu 18.04... to get Ruby support I had to uninstall vim-gtk3 and vim-gnome. Here's a list of ok-to-install packages. With only these, +ruby shows in vim --version | grep ruby and Command-T works.



                        $ dpkg -l '*vim*'
                        Desired=Unknown/Install/Remove/Purge/Hold
                        | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                        |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                        ||/ Name Version Architecture Description
                        +++-=================-===================-============-===================================================================
                        un gvim <none> <none> (no description available)
                        ii vim 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor
                        un vim-addon-manager <none> <none> (no description available)
                        un vim-athena <none> <none> (no description available)
                        ii vim-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common files
                        un vim-doc <none> <none> (no description available)
                        un vim-gnome <none> <none> (no description available)
                        ii vim-gtk 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with GTK2 GUI
                        un vim-gtk3 <none> <none> (no description available)
                        ii vim-gui-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common GUI files
                        un vim-lua <none> <none> (no description available)
                        ii vim-nox 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with scripting languages support
                        un vim-perl <none> <none> (no description available)
                        un vim-python <none> <none> (no description available)
                        un vim-ruby <none> <none> (no description available)
                        ii vim-runtime 2:8.0.1453-1ubuntu1 all Vi IMproved - Runtime files
                        un vim-scripts <none> <none> (no description available)
                        un vim-tcl <none> <none> (no description available)
                        ii vim-tiny 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - compact version





                        share|improve this answer

























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          Update for Ubuntu 18.04... to get Ruby support I had to uninstall vim-gtk3 and vim-gnome. Here's a list of ok-to-install packages. With only these, +ruby shows in vim --version | grep ruby and Command-T works.



                          $ dpkg -l '*vim*'
                          Desired=Unknown/Install/Remove/Purge/Hold
                          | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                          |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                          ||/ Name Version Architecture Description
                          +++-=================-===================-============-===================================================================
                          un gvim <none> <none> (no description available)
                          ii vim 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor
                          un vim-addon-manager <none> <none> (no description available)
                          un vim-athena <none> <none> (no description available)
                          ii vim-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common files
                          un vim-doc <none> <none> (no description available)
                          un vim-gnome <none> <none> (no description available)
                          ii vim-gtk 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with GTK2 GUI
                          un vim-gtk3 <none> <none> (no description available)
                          ii vim-gui-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common GUI files
                          un vim-lua <none> <none> (no description available)
                          ii vim-nox 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with scripting languages support
                          un vim-perl <none> <none> (no description available)
                          un vim-python <none> <none> (no description available)
                          un vim-ruby <none> <none> (no description available)
                          ii vim-runtime 2:8.0.1453-1ubuntu1 all Vi IMproved - Runtime files
                          un vim-scripts <none> <none> (no description available)
                          un vim-tcl <none> <none> (no description available)
                          ii vim-tiny 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - compact version





                          share|improve this answer














                          Update for Ubuntu 18.04... to get Ruby support I had to uninstall vim-gtk3 and vim-gnome. Here's a list of ok-to-install packages. With only these, +ruby shows in vim --version | grep ruby and Command-T works.



                          $ dpkg -l '*vim*'
                          Desired=Unknown/Install/Remove/Purge/Hold
                          | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
                          |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
                          ||/ Name Version Architecture Description
                          +++-=================-===================-============-===================================================================
                          un gvim <none> <none> (no description available)
                          ii vim 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor
                          un vim-addon-manager <none> <none> (no description available)
                          un vim-athena <none> <none> (no description available)
                          ii vim-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common files
                          un vim-doc <none> <none> (no description available)
                          un vim-gnome <none> <none> (no description available)
                          ii vim-gtk 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with GTK2 GUI
                          un vim-gtk3 <none> <none> (no description available)
                          ii vim-gui-common 2:8.0.1453-1ubuntu1 all Vi IMproved - Common GUI files
                          un vim-lua <none> <none> (no description available)
                          ii vim-nox 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - with scripting languages support
                          un vim-perl <none> <none> (no description available)
                          un vim-python <none> <none> (no description available)
                          un vim-ruby <none> <none> (no description available)
                          ii vim-runtime 2:8.0.1453-1ubuntu1 all Vi IMproved - Runtime files
                          un vim-scripts <none> <none> (no description available)
                          un vim-tcl <none> <none> (no description available)
                          ii vim-tiny 2:8.0.1453-1ubuntu1 amd64 Vi IMproved - enhanced vi editor - compact version






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Dec 10 at 3:26

























                          answered Nov 12 at 7:41









                          Adam Monsen

                          1,05621127




                          1,05621127






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f61141%2fcompiling-vim-gnome-with-ruby-support%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How did Captain America manage to do this?

                              迪纳利

                              南乌拉尔铁路局