LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
Search this Thread
Old 05-20-2010, 10:20 AM   #1
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Rep: Reputation: 30
Easiest way to upgrade to vim 7.2 in RedHat


I have vim ver. 6.3.82 and want to upgrade vim to 7.2 to support certain dev tasks needed done within. Our RedHat doesnt have a yum repo and not subscribed to the RH network so I cant do it through their sw distribution support.
Linux version 2.6.9-42.ELsmp (bhcompile@ls20-bc1-13.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:32:02 EDT 2006 64bit

Can some one point me to the right direction on how an easy way to upgrade vim?

I'd greatly appreciate it. Cheers!
DB
 
Old 05-20-2010, 10:36 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Grab the vim sources and build yourself?
 
Old 05-20-2010, 01:05 PM   #3
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
Grab the vim sources and build yourself?
Yes that's an easy thought of doing in which I have initiated, but unfortunately I ran into some dependency issues such as GLIBC_2.xx is required to run vim...

I've also ran a direct rpm using the --nodpes switch but this did not do the trick either.

Any other ideas?
Thanks mate!
DB
 
Old 05-20-2010, 01:21 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Don't know what you mean. I just successfully compiled and ran vim 7.2 on RHEL 4.8 without any dependency issues.

Code:
vim72]$ ./src/vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled May 20 2010 14:19:11)
vim72]$ uname -a
Linux server.example.com 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:34:33 EDT 2009 i686 i686 i386 GNU/Linux
 
Old 05-20-2010, 05:36 PM   #5
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
Don't know what you mean. I just successfully compiled and ran vim 7.2 on RHEL 4.8 without any dependency issues.

Code:
vim72]$ ./src/vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled May 20 2010 14:19:11)
vim72]$ uname -a
Linux server.example.com 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:34:33 EDT 2009 i686 i686 i386 GNU/Linux
Can you please tell me which package did you use and where to get this?
Also if you can post the install process you've done that would surely be appreciated.
I've just tried and it complained about GLIBC_2.xxx is needed to run vim.
 
Old 05-20-2010, 08:05 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
I downloaded and compiled from source. http://www.vim.org/download.php#unix . Unpack, cd, ./configure, make, make install; vim 7.2 in /usr/local/bin.
 
Old 05-20-2010, 09:34 PM   #7
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
I downloaded and compiled from source. http://www.vim.org/download.php#unix . Unpack, cd, ./configure, make, make install; vim 7.2 in /usr/local/bin.
Thought I'm hitting the home run till I came into a road block, mate :-(

gui_at_fs.c:2607: warning: cast to pointer from integer of different size
gui_at_fs.c:2609: warning: cast to pointer from integer of different size
gui_at_fs.c:2631: warning: cast to pointer from integer of different size
gui_at_fs.c:2633: warning: cast to pointer from integer of different size
gui_at_fs.c:2683: warning: cast to pointer from integer of different size
gui_at_fs.c:2685: warning: cast to pointer from integer of different size
gui_at_fs.c:2687: warning: cast to pointer from integer of different size
gui_at_fs.c:2689: warning: cast to pointer from integer of different size
gui_at_fs.c:2691: warning: cast to pointer from integer of different size
gui_at_fs.c:2693: warning: cast to pointer from integer of different size
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_ATHENA -DFUNCPROTO=15 -DNARROWPROTO -g -O2 -I/usr/X11R6/include -o objects/netbeans.o netbeans.c
gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_ATHENA -DFUNCPROTO=15 -DNARROWPROTO -g -O2 -I/usr/X11R6/include version.c -o objects/version.o
gcc -L/usr/X11R6/lib -L/usr/local/lib -o vim objects/buffer.o objects/charset.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o objects/if_cscope.o objects/if_xcmdsrv.o objects/main.o objects/mark.o objects/memfile.o objects/memline.o objects/menu.o objects/message.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/spell.o objects/syntax.o objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/window.o objects/gui.o objects/gui_athena.o objects/gui_x11.o objects/pty.o objects/gui_beval.o objects/gui_at_sb.o objects/gui_at_fs.o objects/netbeans.o objects/version.o -lXaw -lXt -lXt -lX11 -lm -lncurses -lnsl -lselinux -lacl -lattr -lgpm -ldl
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXaw.so when searching for -lXaw
/usr/bin/ld: cannot find -lXaw
collect2: ld returned 1 exit status
make: *** [vim] Error 1

It seems stuck on that as Im unable to do "make" and proceed with the compile...Please help. Cheers, DB
 
Old 05-20-2010, 09:39 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Install whatever the Xaw library is.. From Google it seems to be in the Xorg development packages.. so install the xorg-x11-devel package and try again.
 
Old 05-21-2010, 02:20 AM   #9
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
Install whatever the Xaw library is.. From Google it seems to be in the Xorg development packages.. so install the xorg-x11-devel package and try again.
Looks like I gawt it! :-) After searching for tons and the right xorg-devel package, this was the one that I need: xorg-x11-6.8.2-1.EL.63.src.rpm

It compiled and installed alright, however I still see vim ver. 6.3.82.
But when I go to /usr/local/bin/vim, I see ver. 7.2

How can I correct this?

DB
 
Old 05-21-2010, 09:05 AM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,647

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Either put /usr/local/bin on your PATH before /usr/bin, or uninstall your vim RPM which will not touch your /usr/local installation.
 
1 members found this post helpful.
Old 05-23-2010, 01:11 AM   #11
deibertine
Member
 
Registered: Mar 2009
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
Either put /usr/local/bin on your PATH before /usr/bin, or uninstall your vim RPM which will not touch your /usr/local installation.
Great thanks for your assistance mate! :-)
 
  


Reply

Tags
vim


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easiest way to upgrade KDE 3.5?? mysticpain Linux - Software 1 02-13-2006 07:46 AM
What is the easiest way to upgrade IP tables? abefroman Linux - Security 1 06-14-2005 05:42 PM
which distro is the easiest to upgrade? JustinHoMi Linux - Distributions 15 04-26-2005 04:26 PM
easiest dsitro to upgrade sh4d0w13 Linux - Newbie 4 03-01-2005 01:15 PM
Easiest upgrade? hmspe Linux - Software 1 05-23-2003 06:01 PM


All times are GMT -5. The time now is 04:07 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