LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-26-2010, 05:15 AM   #1
vijay_babu1981
Member
 
Registered: Nov 2004
Location: india
Distribution: fedora 10
Posts: 82

Rep: Reputation: 19
Updating a software - compile from source


Hi

I have recently installed fedora 13 which comes with vim 7.2.14. It does not have gui enabled (i.e. gvim is not present and gvimdiff is absent).

I downloaded vim 7.3 source files from vim.org and compiled it using 'make'. Now can I simply do 'make install' or do I need to first remove the older version? Will 'make install' overwrite the existing installation?

Alteast the binaries in /usr/bin should be overwritten... Also package manager will think it has vim 7.2 but actually vim 7.3 is installed.

I am asking this here because this is my general problem not particularly related to one software.

(Note: my pc is not connected to internet so I cannot do 'yum install gvim')

Thanks,
 
Old 08-26-2010, 07:13 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Unless you changed it, the compiled version will install to /usr/local and the two will not interact.
 
Old 08-26-2010, 07:53 AM   #3
vijay_babu1981
Member
 
Registered: Nov 2004
Location: india
Distribution: fedora 10
Posts: 82

Original Poster
Rep: Reputation: 19
Thanks Alucardzero for reply

i think 'make install' will put some link to the vim 7.3 of /usr/local in probably /usr/bin or /usr/local/bin.

But in /usr/bin there is a 'vim' already present. How is the conflict resolved?

Regards
 
Old 08-26-2010, 07:55 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Maybe Fedora has a "gvim" package?
 
Old 08-26-2010, 08:12 AM   #5
vijay_babu1981
Member
 
Registered: Nov 2004
Location: india
Distribution: fedora 10
Posts: 82

Original Poster
Rep: Reputation: 19
In my install of Fedora13, the gvim did not get installed, only vim got installed. Probably I did not chose it explicitly during the install...

Anyway as I said earlier my question is more general not just about vim. What happens to any software if I install another copy after compiling from source?
 
Old 08-26-2010, 09:26 AM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
Unless you changed it, the compiled version will install to /usr/local and the two will not interact.
 
Old 08-26-2010, 10:05 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by vijay_babu1981 View Post
i think 'make install' will put some link to the vim 7.3 of /usr/local in probably /usr/bin or /usr/local/bin.
It will (should) not touch /usr/bin/; the binary should end up in /usr/local/bin/

Quote:
But in /usr/bin there is a 'vim' already present. How is the conflict resolved?
The default prefix is /usr/local so /usr/bin should not be touched.

One way to ensure this is to make /usr/local writable by your user normal and then run "make install" as your normal user instead of as root.

In this situation both versions of vim will happily coexist on your machine. Which version you get when you run "vim" will depend on the order of /usr/bin relative to /usr/local/bin in your $PATH. In general /usr/local/bin should be before /usr/bin

Cheers,

Evo2.

Last edited by evo2; 08-26-2010 at 10:05 AM. Reason: typo
 
  


Reply


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
Don't know how to configure & compile software from source Rissy Red Hat 2 05-17-2008 03:22 PM
Is it possible to use a GUI to compile new software (Source code)? narayanaras Linux - Newbie 10 12-18-2006 10:02 PM
when compile software from source... sirpelidor Linux - Software 3 10-05-2005 02:22 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration