LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-03-2015, 12:07 PM   #1
trackstar2000
Member
 
Registered: Apr 2013
Posts: 47

Rep: Reputation: Disabled
Moving a compiled app to another machine


Hello,

I downloaded source code for Sage math application and compiled (make command) it on a test Centos 6.4. Did some testing and all. Can I move the directory to another machine with the same Centos version?

http://www.sagemath.org/doc/installa...er-environment


Thanks,
TT
 
Old 02-03-2015, 12:32 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,428

Rep: Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039
Yes, most likely, as long as the library versions, etc. are all the same between the two systems.

With most applications you do a full installation, which splits up config files, startup scripts, etc. In that case you can't, since the main directory doesn't contain everything. With Sage it looks like it's all self-contained though, so you should be fine.
 
Old 02-03-2015, 12:40 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,546

Rep: Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240
Quote:
Can I move the directory to another machine with the same Centos version ?
Depends on the location used for the build.

Say /home/trackstar/sage-*/, which probably don't exist on a second computer :
You may have to do a new build as e.g. /usr/local/sage-*/,
.. and make the recommended link :
ln -s /path/to/sage-x.y.z/sage /usr/local/bin/sage
. http://www.sagemath.org/doc/installa...er-environment


-
 
Old 02-03-2015, 01:08 PM   #4
trackstar2000
Member
 
Registered: Apr 2013
Posts: 47

Original Poster
Rep: Reputation: Disabled
When i "make" the application from the first machine (machine1), it was on /usr/tmp/sage/sage-6.4.1. After the built and testing, I moved it to /usr/local/sage.

If I move to the new machine (machine2), do I have to initiate a command (general question, doesn't have to pertain to Sage)? The other things like to create the ln -s , I know I have to do.

I think I have to "make" again to it recognize the change.

Thanks,
TT

Last edited by trackstar2000; 02-03-2015 at 01:25 PM.
 
Old 02-03-2015, 01:31 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,546

Rep: Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240Reputation: 3240
← ref. post #4 .

The same : If you prefer /usr/local/sage-*,
then you will probably have to use /usr/local/sage-*/ as the build location.
 
Old 02-03-2015, 01:34 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,428

Rep: Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039Reputation: 2039
Just move it to /usr/local/sage like it is on the other machine. Since it's the same OS with the same libraries, you don't have to rebuild it unless you want to.

As I said before, with most installers files get split up. Some get put in /usr/bin or similar, some go into /etc/, configs get written out with the final installation location, etc. With those, you need to do the make install on each system separately. Self-contained programs, which it appears Sage is, can just be copied over since everything you need is inside the directory.
 
Old 02-03-2015, 08:05 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,157

Rep: Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347
Can also peek at the make file for clues as to how it is built and what was used and put what not where sometimes.

Compiled as static would be most easy to expect to work usually.

Usually isn't hard to start moving and watch permissions and locations. Look at files that may have info about locations maybe.
 
Old 02-04-2015, 12:47 PM   #8
multiplex22
Member
 
Registered: Dec 2014
Location: ny, us
Distribution: most
Posts: 56
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by trackstar2000 View Post
Hello,

I downloaded source code for Sage math application and compiled (make command) it on a test Centos 6.4. Did some testing and all. Can I move the directory to another machine with the same Centos version?

http://www.sagemath.org/doc/installa...er-environment


Thanks,
TT
This depends on 2 things. The computer architecture and the operating system version. If you compiled for x86_64 computers and the other is 32 bits, then no regardless of the system. Best answer is to rebuild on the other system though you may have to dig for proper system packages.

on the other hand it may work. Just try and if it does not run, you have your answer. It is possible to prebuild for other systems, even windows. Try gcc --help or man gcc to find this info.
 
  


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
Moving Kmail structure from one machine to another machine. jimonlinux SUSE / openSUSE 2 06-06-2013 01:26 PM
Compiled one more app for Slackware Alexvader Slackware 6 02-11-2010 03:33 PM
Moving compiled kdevelop programs? garymayor Programming 1 06-28-2005 04:03 AM
moving a compiled kernel? e1000 Linux - General 5 12-23-2003 03:57 PM
missing icons in a just compiled KDE app schatoor Linux - General 1 01-06-2003 08:20 AM


All times are GMT -5. The time now is 08:17 AM.

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