how to compile software for any other Linux box which is do not have compile?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731
Rep:
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.