How-To: Compile Programs From Source in Linux

20

Comments

+ Add a Comment
avatar

Greethn

I want to know what you're running for the terminal in the screenshots. Contest Programming

avatar

Lykopis

Yeah: I fail to see why M$-Windows users complain about Linux.

You made your decision to use M$-Windows, just as us Linux users made the decision to use Linux.

Most of us know how to find the codecs to play encrypted dvd's and music codecs not packaged in the distro.

They are missing for legal reasons, but can be found and used if legal in your country.

Linux is not good at windows gaming, but has lots of opensource games you can use.( I am not gamer anyway)

If something isn't there or don't work right I can build a package for it, but in M$-Windows forget it.

Modern Linux systems I find just as easy to use as a M$-Windows system, as far as point and click goes.

Last but not least ----Linux is not Windows----

avatar

verilitas

The only thing that I would ever want to write a program for is DVD playing.  I'm a nube at Linux.  When I found out that I could not run a DVD on ubuntu linux, I started using microsoft much more.  I even tried using a DVD player designed for windows in wine, and I had no luck.  Puppy Linux was a good dog, and it played DVD's.  However, it always seemed to have a poor digital quality to it as though I were watching an abridged video file. 

 

And my old video card would not work with ubuntu linux at all.  Needless to say that was a problem that I couldn't fix from inside the OS. 

avatar

EccentricEgg

while compiling may seem simple to the Linux crowd, it serves as another insignificant (thanks to package managers) but daunting task completely foreign to the Windows (and to a lesser extent Mac) group. i like the idea and power of Linux but find that i need volumes of information to do in Linux what is a matter of a few clicks under Windows. i don't program (other than the occassional automation script) and GIMP, Firefox, Opera, OpenOffice, and Notepad++ are available for Windows so for me other than OS price, there is not a Linux-only app or must-have feature that is worth the hours of reading and countless headaches i would endure to get to the same level of comfort with Linux as i have with Windows.

now this may seem like i'm bashing Linux but really i'm just trying to help the Linux folks get the elusive handle on what keeps people from leaving the overpriced, buggy, bloatware that is Windows. Out-of-the-box idiot-proof Usability. i must say i agree with December 2008 THE LIST "Seven Things That Can Help Linux Overtake Windows" item #2 "Configure the OS without a text editor. Requiring manual configuration of the Xorg.conf file is inexcusable in 2008." BUT  i think that ALL cofiguration should always and forever be possible from the console even as graphical controls with ample idiot-proof help become ever more available. in Linux the console and text files are KING get used to it.

and for anyone wondering, i've installed Linux in various forms and flavors dozens of times over the past 10 years but have yet to keep it more than a week or two before losing interest due to the problems noted above. alas, i will sometime in the next few months (i hope) have time to once again try to make the jump to Linux (probably LinuxMint) since i refuse to buy another MicroSoft OS. My beloved XP Pro is getting a bit long in the tooth and i won't be buying a new rig for a few more years so i think, headaches aside, Linux will be the way to go.

sometimes i really miss MaximumLinux 

Just my long-winded 2 cents :) 

 

 

"My deep regret is some people are so deeply entrenched in their own world views that they will simply not countenance alternatives."-Alister E. McGrath 

"America didn't become the great nation it is by suppressing ideas it progressed by allowing freedom of speech and freedom of inquiry."-Ben Stein 

"It is my belief that unless we afford others in our friendships the possibility to disagree with our views no real learning and thereby no growth can take place. Whether or not I agree, if I do not at least truly consider the opposing view I have no basis to contrast or question my own suppositions. To blindly choose a position without comparing the merits and faults of that and other positions honestly is utter hubris and ultimate folly."-EccentricEgg

avatar

dankers

./configure

make

it's not that hard you pussies

avatar

rayatwork05

unixfool, i see how that would be useful if you use programs that crash alot...however none of my windows programs have problems...and i cant imagine any more benefit that could come out of them...IE, Steam & games, Photoshop, etc....they are already fast, powerful, error free, and easy to install/use.

 for developers, yes linux is the way to go.

avatar

unixfool

I don't understand why Windows nazis always attempt to dictate how Linux should be...

Compiling source is only complicated when you don't do your homework.  Sure, Windows guys don't have to compile, but I certainly love the option of being able to optimize a piece of software if I want...Windows users don't have that option, but then again, why are they complaining about it?

Linux users have the option of submitting bug reports or even delving into the code itself and either fixing it or pointing out errors to the dev teams of a software package.  Empowering yourself with knowledge serves everyone much better than whining, though.

 

 

avatar

rayatwork05

im computer savvy and went for linux recently (openSUSE), the first thing i wanted to do was play my games via steam.

 it was harder then it should have been, and havnt been back to linux since.  if i cant do something that simple, neither can a laymen.  its much easier to double click a file i download and click next,next,next, finish.

 therefore linux needs to get over itself, get past that, before it can be widely adopted by the masses.

avatar

botticelli

After reading the above article, compiling seems easy; at least the steps are, if one does not run into problems. I would like to have a go at it.

Can anyone please suggest a relatively easy program that can be used with the above instructions as "my first compiling exercise" sort of thing?

avatar

redilyn

You would try to compile The Mana World.

It is pretty easy but you will likely have to resolve some depedencies which should be good pratice.

http://themanaworld.org/downloads.php

*hint* If you have trouble with dependencies and are using ubuntu or a derivative of ubuntu try the following command in the terminal (may also work for other distros).

sudo apt-get build-dep tmw

---------------------------------------

"In a world with no walls or fences, who needs Windows or Gates?"

"Linux is evolution, not intelligent design." - Linus Torvalds

avatar

amacieli

don't forget to tell them about the option in make to use all of your cores to do compilation so much faster.  -i5 i think it was.  perfect for larger builds.

avatar

MeTo

This is what keeps people away from linux.

"Also, keep in mind that many programs are notoriously hard to compile,
even for experts. (OpenOffice.org is a prime example) This experience
can be very frustrating, but persistence is the only way to get through
it."

I hate to say it but i guess i will stay with Microcrap.

avatar

compro01

Compiling from source is rarely required.

 

If anything, application management on a modern linux distro is nicer than it is on windows due to having a central package manager.

avatar

redilyn

"This is what keeps people away from linux."

This is only true
if you have not done any research. You are assuming that all linux
distros would require you to compile from source to get the newest
version of an app.

When using a distro which includes advanced
package manaqment tools such as ubuntu, compiling from source is almost
never required. For example, the newest version of open office can be
install from debs (using apt-get) simply by adding a new repo to your
sources list.

Personally I don't care what OS anyone uses but it
is annoying when people lump all linux distros together because
they are based on the linux kernel. That is just foolish.

 

avatar

MeTo

"This is what keeps people away from linux."

"This is only true
if you have not done any research. You are assuming that all linux
distros would require you to compile from source to get the newest
version of an app.

When using a distro which includes advanced
package manaqment tools such as ubuntu, compiling from source is almost
never required. For example, the newest version of open office can be
install from debs (using apt-get) simply by adding a new repo to your
sources list.

Personally I don't care what OS anyone uses but it
is annoying when people lump all linux distros together because
they are based on the linux kernel. That is just foolish."

Well when all those fancy distroes don't work right where do you have to go down to the kernal it's worse than the old DOS day's. That is why Linux is dying breed. IMHO

avatar

redilyn

"Well when all those fancy distroes don't work right where do you have
to go down to the kernal it's worse than the old DOS day's. That is why
Linux is dying breed. IMHO"

When your fancy windows doesn't work where do you go? To your windows cd. 

When your fancy linux distro doesn't work where do you go? To your distro's livecd.

Nuff said.

 

"In a world with no walls or fences, who needs Windows or Gates?"

"Linux is evolution, not intelligent design." - Linus Torvalds

avatar

Hg Dragon

I want to know what you're running for the terminal in the screenshots.

 

avatar

redilyn

Looks like the default ubuntu terminal with the background and text color changed.

avatar

Hg Dragon

By default the Ubuntu terminal window is black text on a white background. There is no emphasis on different files or directories. They've either loaded a replacement terminal or tweaked it to color-code different objects/commands in the window.

avatar

Will_kraft

Actually, all I did was change the text color and background on the standard GNOME terminal. (I like green-on-black better than the standard black-on-white) I've also aliased my ls to 'ls --color=always'.

 

 

Log in to MaximumPC directly or log in using Facebook

Forgot your username or password?
Click here for help.

Login with Facebook
Log in using Facebook to share comments and articles easily with your Facebook feed.