LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 04: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, 06:13 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Unless you changed it, the compiled version will install to /usr/local and the two will not interact.
 
Old 08-26-2010, 06: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, 06:55 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Maybe Fedora has a "gvim" package?
 
Old 08-26-2010, 07: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, 08:26 AM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Unless you changed it, the compiled version will install to /usr/local and the two will not interact.
 
Old 08-26-2010, 09:05 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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 09:05 AM. Reason: typo
 
  


Reply



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 02:22 PM
Is it possible to use a GUI to compile new software (Source code)? narayanaras Linux - Newbie 10 12-18-2006 09:02 PM
when compile software from source... sirpelidor Linux - Software 3 10-05-2005 01:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 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
Open Source Consulting | Domain Registration