LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to compile software for any other Linux box which is do not have compile? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-compile-software-for-any-other-linux-box-which-is-do-not-have-compile-709672/)

hocheetiong 03-06-2009 01:27 PM

how to compile software for any other Linux box which is do not have compile?
 
Hi, I have download a putty software "putty-0.60.tar.gz", then i install to Redhat 9.

1. # tar -zxvf putty-0.60.tar.gz

2. # ./configure

3. # make

4. # make install

Success install putty on redhat 9.
But some "small" linux like DSL linux, i try to install there have errors:
checking for gcc... no
checking for cc... no
checking for cl.exe... no

Then i fail install putty on DSL. The DSL kernel version is Linux box 2.4.31.

what is the correct way or method to solve this kind of problem, how to using other Linux Box to compile software like "putty" to any other Linux box like DSL, any "small" linux box which is do not have compile.

mesiol 03-06-2009 01:41 PM

Hi,

to be sure to not have any kind of dependency on any other possible Linux distribution you have to build a static linked version of the executable. This will bring up all dependent libraries into the executable, and prevents you from unresolved dependencies on other distro.

Take a look at
Code:

./configure --help
, this will bring up list of possible options.

stratotak 03-06-2009 02:57 PM

Quote:

Success install putty on redhat 9.
But some "small" linux like DSL linux, i try to install there have errors:
checking for gcc... no
checking for cc... no
checking for cl.exe... no
You dont have gcc installed..thats the compiler..You need things like gcc,make,etc..never used DSL..it has a package manger I believe..that would be my first stop..

Ok I reread your post..Your asking how to compile software on Distro A and install it on Distro B..I thought you ment you were having problems building on DSL

T74marcell 03-06-2009 05:21 PM

You have to copy the compiled binary application to the DSL system (the one that hasn't been there before, but not named Makefile and also not ending in .o). If the architecture is the same on both (for example Intel 32-bit), then this will work fine.

It seems that were about to compile the sources again on DSL, without having the compiler tools. The feedback looks like ./configure checking for the environment.

Arch Linux

i92guboj 03-06-2009 05:35 PM

Quote:

Originally Posted by hocheetiong (Post 3467113)
Hi, I have download a putty software "putty-0.60.tar.gz", then i install to Redhat 9.

1. # tar -zxvf putty-0.60.tar.gz

2. # ./configure

3. # make

4. # make install

Success install putty on redhat 9.
But some "small" linux like DSL linux, i try to install there have errors:
checking for gcc... no
checking for cc... no
checking for cl.exe... no

Then i fail install putty on DSL. The DSL kernel version is Linux box 2.4.31.

what is the correct way or method to solve this kind of problem, how to using other Linux Box to compile software like "putty" to any other Linux box like DSL, any "small" linux box which is do not have compile.

As someone said, you need to install gcc and all the basic stuff to be able to compile anything. You can't compile if you haven't got a compiler, that's for sure.

Besides that, I refuse to believe that redhat doesn't have a precompiled package for putty, being it a fairly common package. Why do you need to compile it from scratch? The chance is that, even if you build this in dsl, I think that you will have problems to run it in redhat. Compiling statically can help sometimes, but not always.


All times are GMT -5. The time now is 03:18 PM.