Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Tutorial Request.
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Justin_




PostPosted: Sun Jan 22, 2006 11:23 pm   Post subject: Tutorial Request.

Hi, I'm new to linux and I think the ability to compile sources would be a good skill to have. Can anyone write a tutorial on the strategies they use to compile sources? I find I download a source of something and it has over 15 header files and a few .cpp files and I have no idea how to compile it. And could this tutorial be written specifically for GCC in terms of how to do all the linking and so forth? I couldn't thank you enough if you decided to write a tutorial on this. Thanks.
Sponsor
Sponsor
Sponsor
sponsor
rizzix




PostPosted: Sun Jan 22, 2006 11:35 pm   Post subject: (No subject)

it's pretty much standardized really


code:
cd to_dir
./configure --various-options
make
sudo make install
Justin_




PostPosted: Sun Jan 22, 2006 11:56 pm   Post subject: (No subject)

How would you know what the "various options" are?
Hikaru79




PostPosted: Mon Jan 23, 2006 7:29 am   Post subject: (No subject)

Justin_ wrote:
How would you know what the "various options" are?


They'd have to be mentioned in the INSTALL or README file, since each program will have different compile-time options. However, most of the time you don't need any of those fancy options, the defaults are just fine.
rizzix




PostPosted: Mon Jan 23, 2006 10:06 am   Post subject: (No subject)

Justin_ wrote:
How would you know what the "various options" are?


usually you just need to type:
code:
./configure --help
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: