Linux - GeneralThis 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
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.
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339
Rep:
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)
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.
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
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.
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
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.
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339
Original Poster
Rep:
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.
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.
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339
Original Poster
Rep:
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!
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.
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.
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339
Original Poster
Rep:
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".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.