Go Back   nV News Forums > Linux Support Forums > General Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-05-03, 06:18 AM   #1
Tommi
Registered User
 
Join Date: Mar 2003
Posts: 72
Default How to recompile programs for new Linux?

Yo!

Newbie questions...

I have been told that in order to make a program run smoothly in Redhat 9 which is actually made for Red Hat Linux 7.2 you need to recompile that program. How to make this?

Is there a true need to recompile program if it is made for redhat 7.2 to make it run smoothly in redhat 7.3 for example. I there so big diffrence between these two releases?

And if I upgrade my X server to latest release will my programs run after that...or is there once again need for recompiling?

-Tommi
Tommi is offline   Reply With Quote
Old 04-05-03, 06:42 AM   #2
suexec
Registered User
 
Join Date: Apr 2003
Posts: 54
Default

What you are describing about the RedHat 9/7.2 programs would appear to be their binary RPMs. RPMs compiled for one version would not (for the most part) not work in a different version because binaries would be linked against different libaries. Sometimes (more often than not) when you try to run something using different libraries, it may not even run. If it does run, sometimes it would seg fault.

RPMs for 7.2 may work in 7.3. It really depends on what that RPM is linked against. 7.2 and 7.3 aren't too different, so sometimes you may be able to get away, but like I mentioned earlier, it depends on the libraries linked against.

When you update your X server, you are probably updating your X libraries. Some programs may run, but some may break. Usually X doesn't change too much (more like additions), so you probably don't need to recompile those apps (stuff like Mozilla, Gimp, etc).
suexec is offline   Reply With Quote
Old 04-05-03, 01:27 PM   #3
Tommi
Registered User
 
Join Date: Mar 2003
Posts: 72
Default

So...if I have a source and I recompile that redhat 7.2 program to run in redhat 9 I will be successful...right?

Please tell if you know any good tutorials for this operation for true newbies...:-)

-Tommi
Tommi is offline   Reply With Quote
Old 04-05-03, 01:56 PM   #4
suexec
Registered User
 
Join Date: Apr 2003
Posts: 54
Default

Right, but only if you can successfully compile it under RedHat 9.

Sorry, I don't know of any tutorial site. You may try googling for compiling SRPM. In RedHat 9, I think they changed the way RPMs are built. You should man rpmbuild
suexec is offline   Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
295.59 (long-lived branch release) for Linux x86/x86_64 released artem NVIDIA Linux 0 06-11-12 12:25 PM
nVidia Linux drivers with Linux on Mac, help? Thetargos NVIDIA Linux 0 05-13-12 01:52 PM
302.07 (beta) for Linux x86/x86_64 released AaronP NVIDIA Linux 0 05-02-12 10:55 AM
Mandrake Linux 9.0 (Dolphin) now available | comments? volt General Linux 10 10-19-02 11:13 PM
Linux VS. Windows XP! XP wins! dostler NVIDIA Linux 20 09-15-02 04:47 PM

All times are GMT -5. The time now is 09:25 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.