Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - Fedora17

289 bytes added, 09:33, 10 February 2012
no edit summary
In order to build software from source code, you must have the appropriate software development tools (such as make and gcc) and libraries (such as GTK) installed. The required tools will vary depending on the computer languages used in the software being built.
#Boot up your '''fecora2''' VM.
# Issue the following command to install a basic set of development tools and libraries:<br /><code>yum groupinstall "Development Tools" "Development Libraries"</code>.
{{Admon/note|Installing Development Libraries|In the future, remember the above procedure whenever installing software from source. Sometimes, you need to install additional tools or libraries in order to compile a particular software package}}
#<ol> <li value=3">Go to the directory <code>/tmp</code></li># <li>Use the <code>wget</code> command to download the "tar ball" that contains the source code for the NLED text editor. <code>wget</code> is a command-line tool to download files from the web using the http or ftp protocols.#* <ul> <li><code>wget http://cdot.senecac.on.ca/software/nled/nled_2_52_src.tgz</code></li># </ul> </li> <li>Extract the files. Change to the newly-extracted directory (<code>/tmp/nled-2.52</code>)</li># <li>Check to see if there is a file named <code>configure</code>. If so, run it; if not, skip this step. (Most but not all source code archives contain this file)</li># <li>Check to see if there is a file named <code>Makefile</code> or <code>makefile</code>. If so, type the command:#* <ul> <li><code>make</code></li># </ul> <li>What does <code>make</code> do?</li># <li>Some software distributed as source code can automatically install itself. Try this command:#* <ul> <li><code>make install</code></li># </ul> </li> <li>Most but not all source code archives include the capability of installing themselves this way.</li># <li>If the command <code>make install</code> does not work (how can you tell?), copy the <code>nled</code> program manually:#* <ul> <li><code>cp nled /usr/local/bin</code></li> </ul> </li># <li>Test <code>nled</code> to make sure it works.</li></ol>
===Investigation 4: Using git===
13,420
edits