LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-06-2009, 12:27 PM   #1
hocheetiong
Member
 
Registered: Jul 2007
Location: Penang , Malaysia.
Distribution: red hat linux
Posts: 133

Rep: Reputation: 15
Smile 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.
 
Old 03-06-2009, 12:41 PM   #2
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
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.
 
Old 03-06-2009, 01:57 PM   #3
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
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

Last edited by stratotak; 03-06-2009 at 02:01 PM.
 
Old 03-06-2009, 04:21 PM   #4
T74marcell
Member
 
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
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

Last edited by T74marcell; 03-14-2009 at 01:03 AM.
 
Old 03-06-2009, 04:35 PM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by hocheetiong View Post
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.
 
  


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
compile NIC driver on other kernel linux box? hocheetiong Linux - Newbie 2 10-26-2008 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:46 PM.

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
Open Source Consulting | Domain Registration