Compile in Linux?

How do I compile a program in Linux? Perferably instructions relevent to Ubuntu.

  • 433 views
Share Send to a friend Watch Report
 
 

Posted Answers

Order by
 
339 thumbs up

By default, Ubuntu doesn't come with compilers, you should install them yourself (sudo apt-get install build-essential). Sometimes additional packages will be needed.

After you install build-essential you can compile the source code. I didn't do it recently so I don't really remember how it's done, but I'm pretty sure the command for compiling is make. It creates a binary file that you can run. Anyway, whenever I needed to compile something on Ubuntu the website where I found the source code also had a very detailed description of how to compile it.

What exactly do you want to compile? 


Posted 1 year ago ( permalink )
In reply to rockyrowks's question
OrenB was invited by Yedda to answer this question.

Rated as
#2 out of 2
0
1

Helpful?

line
line
line



 

Looks like this excellent guide by Simon Gray is made just for you.

How to compile packages in Ubuntu: 

http://monkeyblog.org/ubuntu/installing/#source

How to install ANYTHING in Ubuntu:

http://monkeyblog.org/ubuntu/installing/

 

 


Posted 1 year ago ( permalink )
In reply to rockyrowks's question
Yigal was invited by Yedda to answer this question.

Rated as
Best Answer
0
4

Helpful?

line
line
line



Sign in to participate

Got an answer for rockyrowks? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Please help me to find Modem drives for ZTE ZXDSL ...

Please help me to find Modem drives for ZTE ZXDSL 852 for Ubuntu
Submitted by Tahan 6 months ago
  • viewed 483 times

Last answer posted 6 months ago by Eran


Triple boot: xp, Ubuntu and Debian

I got my new computer yesterday, which came with Windows XP pre-installed. I'd like to install a few Linux distributions on it ...
Submitted by OrenB 1 year ago
  • viewed 845 times

Last answer posted 1 year ago by OrenB


Fedora 7 vs. Ubuntu 7.04

Which is better for a first-time Linux user?
Submitted by fpl 1 year ago
  • viewed 2882 times

Last answer posted 7 months ago by Mr. Barber



» More...

Feed - Subscribe to changes to this Q&A Blog
Copyright © 2006-2008, Yedda Inc. and respective copyright owners · CC License