title: Error when opening .tar.gz via Shell to install Apache Maven
body: <p><strong>Machine:</strong></p>
  
  <p>Mac OSX 10.5.8 32-bit.</p>
  
  <hr>
  
  <p><strong>Goal:</strong></p>
  
  <p>To install apache maven per its <a href="http://maven.apache.org/download.html" rel="nofollow">websites instructions</a>, in order to install the JUNG package according to its <a href="http://sourceforge.net/apps/trac/jung/wiki/JUNGManual" rel="nofollow">install instructions</a>, so I can use the JUNG classes in various Java GUIs.</p>
  
  <hr>
  
  <p><strong>What I Did:</strong></p>
  
  <p>Downloaded a .tar.gz file, and using the shell, moved it to a directory (using <em>mv</em>) I created for it (using <em>mkdir</em>), <em>usr/local/apache-maven</em> per the website directions
  I downloaded the file <em>apache-maven-3.0.4-bin.tar.gz</em>. Next I tried extracting the file using <em>tar -zxvf apache-maven-3.0.4-bin.tar.gz</em>. </p>
  
  <hr>
  
  <p><strong>Error:</strong></p>
  
  <p>I get an error message when I try to extract the apache-maven .gz (install?) file in shell.</p>
  
  <pre><code>tar: apache-maven-3.0.4/direcoryandfile: Cannot open: No such file or directory
  ... 
  apache-maven-3.0.4/lib/ext: Cannot mkdir: No such file or directory apache-maven-3.0.4/lib/ext/README.txt 
  tar: apache-maven-3.0.4/lib/ext/README.txt: Cannot open: No such file or directory tar:       
  Error exit delayed from previous errors
  </code></pre>
  
  <hr>
  
  <p><strong>Instructions:</strong></p>
  
  <p>For the maven building</p>
  
  <blockquote>
    <ol>
    <li>Extract the distribution archive, i.e. apache-maven-3.0.4-bin.tar.gz to the directory you wish to install Maven 3.0.4... The subdirectory apache-maven-3.0.4 will be created from the archive. 
    ...</li>
    </ol>
  </blockquote>
  
  <p>for the JUNG installation</p>
  
  <blockquote>
    <p>Appendix: How to Build JUNG</p>
    
    <p>Get Maven</p>
    
    <p>Download and install maven2 from maven.apache.org: <a href="http://maven.apache.org/download.html" rel="nofollow">http://maven.apache.org/download.html</a>. At time of writing (early June 2012), the latest version was maven-3.0.4. Install the downloaded maven2 (there are installation instructions on the Maven website).</p>
    
    <p>Follow the installation instructions and confirm a successful installation by typing 'mvn --version' in a command terminal window.</p>
  </blockquote>
  
  <hr>
  
  <p><strong>Self-Rectification Attempts</strong></p>
  
  <p>From what I can tell the archive file is missing some directories or something. I tried deleting the file, redownloading the .tar.gz file from a different mirror and repeating the process. Same result. Thanks again for the help</p>
  
  <hr>
  
  <p><strong>Background:</strong></p>
  
  <p>I'm trying to install the <a href="http://jung.sourceforge.net/index.html" rel="nofollow">JUNG</a> package to my system's Java, so I can write object-oriented code using various GUIs (Ecliplse, Dr. Java) using the classes in JUNG. I don't understand how the building/installing process works, and how I can get what I build/install to work on various GUIs and the command line. I'm new to shell and the command line, and mostly have experience using a simple IDE (DrJava, Python IDLE, R GUI) to write and compile object-oriented code.</p>