Click to See Complete Forum and Search --> : how to compile


damae_inc
11-07-2002, 10:59 AM
how do you compile in lindows

i dont even know how to compile in linux but...

i have the source code of alien

and i want to make it work as an program how do i do that???


pleese tell my i am just an noob starded with lindows and linux 1 day ago so:$ :confused:

mrBen
11-07-2002, 11:19 AM
First, read the compiling NHF which is here (http://www.linuxnewbie.org/nhf/Compiling_Kernels/Compiling_Software.html)

Basically there are usually a few simple steps:

1. Unpack the tarball - the file is usually in a compressed archive, with the extension .tar.gz so type tar -zxvf mynewprog.tar.gz

2. Go to the new directory - cd mynewprog

3. Configure the software - it needs to know what type of machine you're running, so type ./configure

4. Compile it - by typing make

5. Install the binaries so that you can run it - becoming root by typing su and then entering your root password (although not sure if Lindows has root) and then type make install

This works for 95% of software.

HTH

sarah31
11-07-2002, 02:10 PM
and down the road when you are having problems with source configuration, want to have it install in a non standard place (most makefiles and such will default to /usr/local), or you need to enable/disable features of the application and so forth you can do:

./configure --help

which gives you lots of arguement you can privide to do all sorts of things. most install difficulties can be fixed with such arguements provided in ./configure --help

bwkaz
11-07-2002, 03:03 PM
And if there are INSTALL, README, or similarly-named files in the new source directory, read them first! Most of the time, they'll tell you how to install the package, and they may even go into common problems when compiling.

Choozo
11-07-2002, 04:18 PM
If Lindows resembles what they aim at, a replacement for Windows, you probably won't find a compiler there ....... ?

mdwatts
11-07-2002, 07:47 PM
Originally posted by damae_inc

pleese tell my i am just an noob starded with lindows and linux 1 day ago so:$ :confused:

If you purchased Lindows, you should be entitled to support.

Check their online documentation and included packages to see if they do indeed have a c compiler.

lindowsOS
11-08-2002, 12:53 AM
You paid for it, then come to the insider's forum. You get a lot of people to support there (and sometimes, Lindows Engineers comes to help if the problem is techinical).

damae_inc
11-08-2002, 07:28 AM
i didnt pay for it

i got it from a friend.

lindowsOS
11-08-2002, 11:10 AM
Then you have to do it the hard way...
apt-get install all the things you need (like apt-get install gcc)

mdwatts
11-08-2002, 02:15 PM
Originally posted by damae_inc
i didnt pay for it

i got it from a friend.

I'm telling... :p

damae_inc
11-09-2002, 07:03 AM
well i think any distro of linux and anything that looks like that should be free so i will take it for free:)

:D

mdwatts
11-09-2002, 10:35 AM
Originally posted by damae_inc
well i think any distro of linux and anything that looks like that should be free so i will take it for free:)

:D

Who will pay the salaries for all the Redhat, Mandrake, Lindows etc. employees plus the development and the commercial applications that some of the distros include?

If all operating systems were free, wouldn't MS be included?

Free as in opensource, BUT someone has to pay for the development and packaging of the distros.

:rolleyes: :rolleyes: :rolleyes:

damae_inc
11-09-2002, 10:51 AM
well i know a lot of people who are bying linux in shops here
so i guess its them :P

adn people who make investments in linux there are a lot of people who do that kind of thing

mdwatts
11-09-2002, 12:52 PM
Originally posted by damae_inc
well i know a lot of people who are bying linux in shops here
so i guess its them :P

adn people who make investments in linux there are a lot of people who do that kind of thing

So you prefer free distros and free support?

Cheap... :)

bwkaz
11-09-2002, 01:30 PM
Originally posted by damae_inc
adn people who make investments in linux there are a lot of people who do that kind of thing Why would people invest in something unless they believed they were going to make money off it?

You can't "invest" in Linux itself, because there will never be a profit from the main development effort. Ever. You can donate to it, but donations != investment because there's no monetary return. You can invest in companies like RedHat or Lindows or whatever, but again, nobody would do that unless they were going to get money back from it. At the first iteration, the only people that will buy stock will be expecting dividends back, and those dividends have to come from company profits. So if the company makes no money, they pay out no dividends (because they can't afford to), and their stock values fall. If the companies don't make money, the "investors" will pull right out.

Of course other things can influence stock values (expectation of future dividends is one thing -- that caused a lot of the ".com bubble", as these companies actually did pay nothing out in dividends, because they weren't making any money, but for a while, some people did buy their stock anyway because they thought it would pay off later).