Changes

Jump to: navigation, search

OPS235 Lab 3 - CentOS7 - VMware

661 bytes removed, 09:06, 7 June 2016
no edit summary
|}
Sometimes, some software may <u>not</u> be available on repositories to install with the '''yum''' command. They may be available from web-pages to download, and compile. Now that you know how to create and decompress "zipped tarball archives", we will demonstrate how to install applications from websites containing these types of archives. Although this method is not as "user-friendly" as using the yum or rpm command, this method is useful if the application is NOT contained in regular software repositories...
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.
# Part is to be performed Remain in your '''centos3centos1''' VM, but make certain that you are logged in as a regular user (i.e. NOT root!).# Issue Perform a Netsearch for the following command to install a basic set of development tools and librariespattern:<br /><b><code><span style="color:#3366CC;font-size:1.2em;">yum groupinstall "Development Tools" "Development Libraries"lbreakout2 tar.gz</span></code></b><br><br<ol> <li value=# Go to aan appropriate webpage and download a "3zipped tarball">Go to (compressed source code) for the directory '''/tmplbreakout2''' game (filename should be something like: '''lbreakout2.tar.gz'''</li>) <li>Use the <b><code><span style="color:#3366CC;font-size:1.2em;">wget</span></code></b> command Change to download the "tar ball" directory where you downloaded that contains file (most likely ~/Downloads).# Use the source code for the NLED text editor. <code>wget</code> is a tar command-line tool to download files from compress the web using the http or ftp protocols. <ul> <li><b><code><span style="pointer-events: none;cursor: default;color:#3366CC;font-size:1.2em;zipped tarball">wget http://cdotcalled lbreakout2.senecactar.ongz.ca/software/nled/nled_2_52_src.tgz</span></code></b></li> </ul> </li> <li>Extract the files. # Change to the newly-extracted directory (<b><code><span style="color:#3366CC;font-size:1.2em;">/tmp/nled-2.52</span></code></b>)</li> <li>Check to see if there is a file named <b><code><span style="color:#3366CC;font-size:1.2em;">configure</span></that contains that lbreakout2 source code></b>. If so, run it; if not, skip this step. (Most but not all source code archives contain this file)</li></ol>
{| width="40%" align="right" cellpadding="10"
|- valign="top"
|colspan="2"|{{Admon/note|Using '''&amp;&amp;''' and '''&#124;&#124;''' Conditional Statements|A very useful trick when running several commands in sequence is to use conditional statments. The '''&amp;&amp;''' conditional will run the subsequent command only if the previous command returns a true (0) exit status, for example:<br>'''./configure && make'''. The '''&#124;&#124;''' conditional will run the subsequent command only if the previous command returns a false (non-zero) exit status, for example:<br>'''./configure &#124;&#124; echo "Houston, we have a problem"'''. These conditional can be combined, for example:<br>'''./configure && make &#124;&#124; echo "Houston, we have a problem"'''}}
 
|}
<ol>
<li value="7">Make certain you are logged in as a regular user (not root). Issue the following command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">./configure && make</span></code></b><br><br>Most likely, you will get an error. What do you think the error is telling you></li>
<li>You can use the yum command to install some missing dependencies.</li>
<li>Reissue the <b><code><span style="color:#3366CC;font-size:1.2em;">./configure && make</span></code></b> command. Where you successful? If not, what do you think is missing?</li>
13,420
edits

Navigation menu