LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-30-2008, 04:31 PM   #1
cornsnap
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
Compiling and moving a program


I recently compiled the program "curl" on a RH Ent 4 server. Is there a way of moving that program to another Linux server without compiling?

Thanks.
 
Old 09-30-2008, 05:34 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Provided that they other boxes have all the needed libraries, then just copying the program to the relevant directory should work ok. The problem with curl is that it links against a number of different libraries, optionally. So, you might need to have kerberos, ssl, com_err and a number of other libraries (if you compiled your binary with support for that libs).

Another problems might be the architecture and the versions. If they do not match then you can't take your binary to the other machines easily. The easy way would be to install curl using the red hat repositories. I find it hard to believe that rhel doesn't count with a package for curl on it's official repository...
 
Old 09-30-2008, 07:03 PM   #3
cornsnap
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks

RHE does come with the rpm but we are getting an error when running it. Our developer suggested getting a new version of the program. We are currently at 7.12 which is RH latest version. I compiled it on our test box but wanted to move it in prod without recompiling fearing it may cause problems.
 
Old 09-30-2008, 07:08 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
If both machines are running the same version of Red Hat then you should be able to copy the program over and have it work OK.

-------------------
Steve Stites
 
Old 10-01-2008, 07:08 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by jailbait View Post
If both machines are running the same version of Red Hat then you should be able to copy the program over and have it work OK.

-------------------
Steve Stites
Yes. If all the installations are the same hrel version you will not have problems (again, provided that the architecture of all of them is the same, i.e. all x86 machines).

You could also make an rpm package from your compiled version to make it the clean way. I never was an rpm guy so I can't help you with that.
 
Old 10-02-2008, 02:00 AM   #6
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by cornsnap View Post
I recently compiled the program "curl" on a RH Ent 4 server. Is there a way of moving that program to another Linux server without compiling?

Thanks.
If "another Linux server" has same libraries needed by curl as your build box, then you can move it. If not, or if in doubt you can download curl from here:

http://www.magicermine.com/demos/curl/curl/curl.html

This is self-contained executable packed with Ermine (http://magicErmine.com)
It's supposed to run on nearly any x86 or x86_64 Linux box.
 
  


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
Problem compiling after moving to Linux sgriffiths Linux - Software 4 12-01-2006 11:07 AM
Moving a program to a different category SLED 10 alehel SUSE / openSUSE 2 10-28-2006 01:10 PM
Compiling a program lintho Linux - Software 2 08-24-2004 07:41 AM
Trouble moving characters with C in a simple CLI program WindowsBurner Programming 4 12-11-2003 08:00 AM
Moving Program PionexUser Linux - Newbie 4 07-24-2003 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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