LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-23-2010, 12:09 AM   #1
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Rep: Reputation: 30
Install two versions of VIM


Is it possible to install two versions of vim (6.3 and 7.2)?

Currently have 6.3 installed and was wondering if I can install 7.2 on a diff directory...

I have CentOS 4.8

Please advise.
 
Old 06-23-2010, 05:37 AM   #2
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 281

Rep: Reputation: 32
yes, you can have two versions of vim.

download vim source tar for version 1 and while compiling use "./configure --prefix=/home/vim1". So now your first version after being comiled would be in /home/vim1.

Similarly while compiling version 2 use "./configure --prefix=/home/vim2". So after sucessful compilation and build, version 2 would be in /home/vim2.

export your PATH variable to either /home/vim1 or /home/vim2 asper your requirement.

----
But I dont know why you need multiple version of vim at the same time.
 
Old 06-24-2010, 10:20 AM   #3
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by barunparichha View Post
yes, you can have two versions of vim.

download vim source tar for version 1 and while compiling use "./configure --prefix=/home/vim1". So now your first version after being comiled would be in /home/vim1.

Similarly while compiling version 2 use "./configure --prefix=/home/vim2". So after sucessful compilation and build, version 2 would be in /home/vim2.

export your PATH variable to either /home/vim1 or /home/vim2 asper your requirement.

----
But I dont know why you need multiple version of vim at the same time.
Thanks for this post, really appreciate it!
One thing I have a question on is when you said "export your PATH variable to either /home/vim1 or /home/vim2 asper your requirement..."

Let's say I installed vim ver2 under /etc/vim72, do I export like this?
export PATH=$PATH:/etc/vim72
And when I launch:
$ vim
It will bring the vim version I want to launch?
I'd like vim 7.2 to launch everytime I do vim.
Cheers.
DB
 
Old 06-24-2010, 03:53 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 10,255

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
I'd make an alias I think unless I misunderstand your question.
 
0 members found this post helpful.
Old 06-24-2010, 04:03 PM   #5
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jefro View Post
I'd make an alias I think unless I misunderstand your question.
So where do i set the alias to point to which path?
 
Old 06-28-2010, 01:55 PM   #6
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by barunparichha View Post
yes, you can have two versions of vim.

download vim source tar for version 1 and while compiling use "./configure --prefix=/home/vim1". So now your first version after being comiled would be in /home/vim1.

Similarly while compiling version 2 use "./configure --prefix=/home/vim2". So after sucessful compilation and build, version 2 would be in /home/vim2.

export your PATH variable to either /home/vim1 or /home/vim2 asper your requirement.

----
But I dont know why you need multiple version of vim at the same time.
So I got that prefix .configure install in but when I make the package, it gives me this:

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXm.so when searching for -lXm
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXm.a when searching for -lXm
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXm.so when searching for -lXm
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXm.a when searching for -lXm
/usr/bin/ld: cannot find -lXm
collect2: ld returned 1 exit status
make[1]: *** [vim] Error 1
make[1]: Leaving directory `/downloads/vim72/vim72/src'
make: *** [first] Error 2
 
  


Reply

Tags
centos, vim, vim72


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching from vim to vim -g from inside vim iDragoon Linux - Software 4 05-15-2009 11:46 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
LXer: vimdiff - Edit two or Three versions of a file with Vim and show differences LXer Syndicated Linux News 0 04-09-2009 12:21 AM
Install two versions CrashedAgain Debian 0 04-30-2006 11:39 AM
how to install new versions of glib? gobi_dgm Linux - Newbie 2 02-07-2005 11:53 PM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration