title: Bash: cannot execute binary file (followed directions from online)
body: <p>I am having difficulty installing something, and wanted to write a detailed list of what I did (including all paths, because I am new to Linux, and have problems reading things unless the full path is listed)</p>
  
  <p>1) I am trying to run a program called "<strong>pslToBed</strong>". I downloaded it from here (<a href="http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/" rel="nofollow">http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/</a>).</p>
  
  <p>2) It downloaded a single file called "pslToBed". It looks like a binary file (all jibberish at least), and I saved to the directory <code>/Users/MacOwner/Desktop/rnaseq/pslToBed</code></p>
  
  <p>3) I did <code>echo $PATH</code>, and got the following</p>
  
  <pre><code>/usr/local/bin:/Users/MacOwner/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin:/opt/local/bin:~/bin:/Users/MacOwner/Desktop/bedtools2-2.19.1
  </code></pre>
  
  <p>4) I selected one path from step (3), namely <code>/usr/local/bin</code></p>
  
  <p>5) I did: <code>cp /Users/MacOwner/Desktop/rnaseq/pslToBed /usr/local/bin/</code></p>
  
  <p>6) I added the same line to the bottom of both <strong>~/.bashrc</strong> and <strong>~./bash_profile</strong>:
  <code>export PATH=$PATH:/usr/local/bin/pslToBed</code></p>
  
  <p>Then, I returned to <code>/Users/MacOwner/Desktop/rnaseq/</code> and tried to run <code>pslToBed</code> but got an error <code>-bash: /usr/local/bin/pslToBed: cannot execute binary file</code></p>
  
  <p>I know this may be straightforward to experienced users, but I am stuck, even after searching the internet for several hours now. Do my paths and ideas look correct? And if not, what should I do to get this program running?</p>