LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Updating a software - compile from source (https://www.linuxquestions.org/questions/linux-newbie-8/updating-a-software-compile-from-source-828559/)

vijay_babu1981 08-26-2010 04:15 AM

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,

AlucardZero 08-26-2010 06:13 AM

Unless you changed it, the compiled version will install to /usr/local and the two will not interact.

vijay_babu1981 08-26-2010 06:53 AM

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

MTK358 08-26-2010 06:55 AM

Maybe Fedora has a "gvim" package?

vijay_babu1981 08-26-2010 07:12 AM

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?

AlucardZero 08-26-2010 08:26 AM

Unless you changed it, the compiled version will install to /usr/local and the two will not interact.

evo2 08-26-2010 09:05 AM

Quote:

Originally Posted by vijay_babu1981 (Post 4078316)
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.


All times are GMT -5. The time now is 08:28 PM.