LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-31-2011, 12:20 AM   #1
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Rep: Reputation: Disabled
Make Linux Programs On Windows


I have been told that normal console apps would run fine so as long as I stuck to the standard librarys. I am making a ^+*Command Line*+^ program for it but my Linux compiler is not setup... Is there an easy way to do this on windows? Installing stuff is not a problem. I WANT BINARIES I hate compileing something just to use it and with a compiler that is just stupid (if they give me the source to a compiler so that it's more portable or whatever, what if I dont have a compiler to make it with). I honestly thought that I could just run it on any system I choose as long as I stuck to no GUI and the standard libs. Sorry about ranting, I'm just mad at my computer (Dell dimention 4550 255ram CPU speed doesn't matter as ram is too slow to catch up, IBM's memory wall has finally hit me)
 
Old 10-31-2011, 07:59 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by Zssfssz View Post
I have been told that normal console apps would run fine so as long as I stuck to the standard librarys.
I'm not sure what you mean. Any kind of program will run fine on Linux.

The problem is that to compile a program that depends on libraries, you need the headers for that library, and many distros (including Ubuntu) provide these in separate packages, that need to be installed from the Internet.

Quote:
Originally Posted by Zssfssz View Post
I WANT BINARIES
http://packages.ubuntu.com/

Go there, search for the pacakges you want, and on the bottom of each pacakge's page there will be links to .deb pacakges (the same ones that apt-get automatically downloads) for each architecture.

Note that it would be best to install the "build-essential" package and all of its dependencies. The dependencies are listed on the pacakge's page, along with links to their pages.

Once you have gotten them onto your Kubuntu system, install them with:

Code:
sudo dpkg -i path/to/pacakge.deb
Quote:
Originally Posted by Zssfssz View Post
with a compiler that is just stupid (if they give me the source to a compiler so that it's more portable or whatever, what if I dont have a compiler to make it with).
Considering all the work that went into it and the fact that it's "the" standard compiler for all Linux (and many other) systems, I think it's safe to assume that it's not stupid. Also, it's the distro's job to provide you a compiler, and I have shown you a way to do this without having an internet connection on the computer you want to install the compiler on.

Last edited by MTK358; 10-31-2011 at 08:02 AM.
 
Old 10-31-2011, 08:49 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
What Linux distribution do you have? Have you learned how to use the package manager for that distribution?

It appears you have discovered that the web site for each individual open source project (including the gcc compiler) tends to offer source code and build instructions rather than binaries.

But in almost all cases, that (project specific development site) is not where you are supposed to get open source programs. You are supposed to get almost all open source programs (as binaries with easy automatic install) from your distribution's package manager.

Quote:
Originally Posted by Zssfssz View Post
I have been told that normal console apps would run fine so as long as I stuck to the standard librarys. I am making a ^+*Command Line*+^ program for it but my Linux compiler is not setup... Is there an easy way to do this on windows?
An expert could use Cygwin on Windows to cross compile Linux source code into binaries that can run on Linux. But that method is not recommended nor easy.

Quote:
I WANT BINARIES I hate compileing something just to use it and with a compiler that is just stupid (if they give me the source to a compiler so that it's more portable or whatever, what if I dont have a compiler to make it with).
That source code is there for people working on that project and people creating or maintaining Linux distributions, and people porting or maintaining Unix like systems on other hardware. The source code is available to whoever wants it, but as you already figured out, ordinary users don't want the source code.

Use the package manager.
 
Old 10-31-2011, 09:02 AM   #4
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Original Poster
Rep: Reputation: Disabled
All I could find on the site was the code... I found a way to get stuff from the live cd it's SUDO apt-cdrom. And the cygin site made it sound more like getting Linux programs to work on windows.
 
Old 10-31-2011, 09:50 AM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by Zssfssz View Post
I found a way to get stuff from the live cd it's SUDO apt-cdrom.
What distribution?

I'm pretty sure you have a GUI package manager (much easier to use than apt). It might be called synaptic (depending on the distribution and version of distribution).

Use the GUI package manager and you get easy access to a wide range of software (already compiled correctly for your system) from online repositories.

A small fraction of that software is available, as you've already discovered, from the CDROM. But unless you have a terrible internet connection even what is available on the CDROM is easier to install from online repositories.
 
Old 10-31-2011, 09:51 AM   #6
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Original Poster
Rep: Reputation: Disabled
I'm using Kubuntu and no I'm doing everything from command line. I don't have a terrible Internet connection, I don't have any at all! I have a different computer with internet but my mother is always on that so she can do dictation. I usually download everything to my iPod and move it to windows via iTunes then put it on a FAT partition and then use it on Linux. This makes it so FTP HTTP and Torrents arnt a good choice. Unless all thats there is a tarball.
I found the offline repository. I noticed that if you type SUDO apt-get and nothing after it the whole help thing that comes up on the bottom line is says "This APT has Super Cow powers." That is the funniest thing I have ever seen in a very good os! I'm never going to another distro again!

Last edited by Zssfssz; 10-31-2011 at 09:58 AM.
 
Old 10-31-2011, 10:05 AM   #7
cascade9
Senior Member
 
Registered: Mar 2011
Location: Brisneyland
Distribution: Debian, aptosid
Posts: 3,753

Rep: Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935Reputation: 935
Quote:
Originally Posted by Zssfssz View Post
Sorry about ranting, I'm just mad at my computer (Dell dimention 4550 255ram CPU speed doesn't matter as ram is too slow to catch up, IBM's memory wall has finally hit me)
Sorry, off topic..but why blame IBM for the 'slow' memory in a dell? IBM had virtually nothing to do with it, blame intel.

Intel designed the P4 series to use RRAM, but that was too expensive and in _very_ short supply so they made most P4s with SD/DDR RAM chipsets.....and the system was never designed to run with that sort of RAM, so it runs slower than the RDRAM models (though by the time that DDR-400 came out, the difference in RAM was much less, its the early SD RAM or DDR 266/333 RAM models that were much slower)

BTW, getting a video card can help with the 'slow memory' problem. If you use 'onboard' video, the main system RAM has to service not only the OS requrements, but also the video RAM as well. It just slows the whole system down.
 
Old 10-31-2011, 11:18 AM   #8
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by Zssfssz View Post
I don't have a terrible Internet connection, I don't have any at all! I have a different computer with internet
MTK358 somehow gave you the answer before you provided the relevant info. I guess he somehow knew the two key facts that I couldn't find in your posts until later:

1) Kubuntu
2) Using a different computer for internet access.

So what he said about using packages.ubuntu.com should be almost all the answer you need.

You don't actually need build-essential unless you want to get other software from source tar files and/or you want to develop your own software.

You should be able to find everything you need at packages.ubuntu.com.
 
Old 10-31-2011, 12:10 PM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by johnsfine View Post
MTK358 somehow gave you the answer before you provided the relevant info.
https://www.linuxquestions.org/quest...mpiler-910992/
 
1 members found this post helpful.
Old 10-31-2011, 06:15 PM   #10
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Original Poster
Rep: Reputation: Disabled
Ok just here to answer the IBM question: IBM gave a rather long report about how CPU speeds wher increasing faster than memory speeds now ram was much faster than the CPUs a long time ago. The "Memory Wall" (As IBM called it) is when CPU speeds are faster than memory speed. It seems as if computers have hit IBM's "Memory Wall".
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MacOsX, Darwin, *Nix BSD: Can we make linux and Mac compatible for programs ? frenchn00b Linux - General 1 02-17-2008 01:00 PM
How to make Linux acknowledge new versions of programs s0n|k Linux - Newbie 6 01-24-2007 05:11 PM
How do you make programs in linux? radar5000 Programming 8 10-18-2006 11:39 PM
C++ and OpenGL- how to make programs/games compatible with both windows and linux uveraser Programming 9 06-16-2004 02:38 PM
using windows programs in linux paulv Linux - Newbie 7 03-20-2004 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:34 AM.

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