LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to compile software for any other Linux box which is do not have compile? (https://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 12: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 12: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 01: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 04: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 04: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 10:33 PM.