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.
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
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
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.
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 05:18 PM.|