LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Precompiled VIM (https://www.linuxquestions.org/questions/linux-software-2/precompiled-vim-492705/)

anupamsr 10-15-2006 07:22 PM

Precompiled VIM
 
Hi!

I am working on a system which has a very stripped version of VIM installed. It is not for compilation stuff, and even ncurses is not installed, which means I cannot compile VIM.

Is it possible to get binaries for VIM. Even old version will do, I all I want is to run it from my home directory.

lleb 10-15-2006 07:50 PM

well as you are running SuSe 9.3 then YaST should have VIM for you, or just do a rpm search for suse 9.3 vim and you should find that too.

anupamsr 10-15-2006 07:51 PM

Yeah but I don't have root privileges.

lleb 10-15-2006 11:18 PM

without root you will not be able to install it anyways.

erklaerbaer 10-16-2006 05:50 AM

that is wrong. as he said, he will have to install under home though. if you get an rpm you could extract its contents( ~/apps/vim ?) and see if it runs. if not try to emulate the steps the attached scripts would have done. you may also want to add e.g. ~/apps/vim/bin to your $PATH. good luck

psisquare 10-16-2006 06:01 AM

You could try grabbing a Slackware package like
http://packages.slackware.it/package...7.0.109-i486-1
or, thinking about dependencies, maybe better
http://packages.slackware.it/package...vim-6.1-i386-5.
These are simple tar.gz files, so you should be able to decompress them into your home directory. I haven't tried this though, so no guarantees as to whether it will work.

And you don't need root privileges in order to install stuff into your home directory - it's just that if you run into many missing dependancies, it might be easier to prod your admin about updating/adding them using YaST.

anupamsr 10-16-2006 06:01 AM

Here is a nice link for precompiled binaries. Wonder why they are so unupdated though. http://www.nirvani.net/software/vim/

Downloading rpm from this site and then using http://slackware.osuosl.org/slackwar.../bin/rpm2targz to convert it to a tar ball, and then extracting it and adding it to the PATH did the thing.

Though it complains of not finding some libraries, it is more or less, working.

Thanks erklaerbaer & lleb for your help.

anupamsr 10-16-2006 06:28 AM

Quote:

Originally Posted by psisquare
You could try grabbing a Slackware package like
http://packages.slackware.it/package...7.0.109-i486-1
or, thinking about dependencies, maybe better
http://packages.slackware.it/package...vim-6.1-i386-5.
These are simple tar.gz files, so you should be able to decompress them into your home directory. I haven't tried this though, so no guarantees as to whether it will work.

And you don't need root privileges in order to install stuff into your home directory - it's just that if you run into many missing dependancies, it might be easier to prod your admin about updating/adding them using YaST.

Hey! Hi! Thanks! That did the work. Now I am working on Vim 7.0. There is yet another problem though :) gvim is not working :) I will post any solution if I find 'em.

lleb 10-16-2006 01:07 PM

Quote:

Originally Posted by anupamsr
Here is a nice link for precompiled binaries. Wonder why they are so unupdated though. http://www.nirvani.net/software/vim/

Downloading rpm from this site and then using http://slackware.osuosl.org/slackwar.../bin/rpm2targz to convert it to a tar ball, and then extracting it and adding it to the PATH did the thing.

Though it complains of not finding some libraries, it is more or less, working.

Thanks erklaerbaer & lleb for your help.

that is awesome that there is a convert from rpm to tar. very useful. sorry when i stated that you could not install the rpm you have to be root to install rpm -ivh IIRC, but i have not used an rpm based distro in a long time where i did not have root access and install everything via YUM.

as for gVIM, didnt that get depreciated a while back? i thought it did in CentOS at least, i know you are using SuSe so not sure if gVIM still works in that or not.

ltordsen 10-16-2006 09:16 PM

Maybe you could try try vim -g.

If it says
E25: GUI cannot be used: Not enabled at compile time,

it might be in /usr/X11R6/bin. If its there and not in your PATH, then add it to your path.

anupamsr 10-17-2006 04:20 AM

Gvim is not deprecated, as rpms are available for gvim-7.0 on internet. Vim is not compiled with GUI and that is the main problem why I want to compile my own/use some binary.

anupamsr 10-17-2006 07:57 AM

There, there, I arrived on a totally new solution.

1. Download ncurses and untar it.
3. mkdir /usr/stud/srivasta/downloads/usr
2. ./configure --prefix=/usr/stud/srivasta/downloads/usr/
3. make && make install
4. Download latest vim and untar it
5. export CPPFLAGS=-I/usr/stud/srivasta/downloads/usr/include/ncurses
6. export LDFLAGS=-L/usr/stud/srivasta/downloads/usr/lib
7. ./configure --prefix=/usr/stud/srivasta/downloads/usr --with-tlib=ncurses
8. make && make install

And lo, you have your own local installation of VIM 7.0 with GUI :)


All times are GMT -5. The time now is 10:30 PM.