9
edits
Changes
no edit summary
Answer the Investigation 3 question.
==Investigation 4: How do you build software from source code?==
{{Admon/note|Compiling requires the correct tools to be installed. | 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.}}
#Go to the directory <code>/tmp</code>
#Use the <code>wget</code> command to download the "tar ball" that contains the source code for the NLED text editor.
#*<code>wget http://cdot.senecac.on.ca/software/nled/nled_2_52_src.tgz</code>
#Extract the files. Change to the newly-extracted directory (<code>/tmp/nled-2.52</code>)
#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)
#Check to see if there is a file named <code>Makefile</code> or <code>makefile</code>. If so, type the command:
#*make {{Admon/important |You may need to install <code>gcc</code> (GNU C Compiler) and <code>ncurses-devel</code> (Development Library) in order to complete this step successfully. Use <code>yum</code> to install these packages if you get an error message saying the cc command was not found or the ncurses library is not found.}}
What does make do?
6. Some software distributed as source code can automatically install itself. Try this command:
make install
Most but not all source code archives include the capability of installing themselves this way.
7. If the command in step #7 does not work (how can you tell?), copy the nled program manually:
cp nled /usr/local/bin
8. Test nled to make sure it works.
Answer the Investigation 4 question.