User Tools

Site Tools


user:smeas:portfolio:hpc2project2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

user:smeas:portfolio:hpc2project2 [2014/05/06 19:16] – created smeasuser:smeas:portfolio:hpc2project2 [2014/05/06 19:30] (current) smeas
Line 80: Line 80:
 hash -r hash -r
 </cli> </cli>
 +
 +After this, ffmpeg should be all compiled and built, and should be in your ~/bin directory.
 +
 +====Step 5 (Optional)====
 +===Set up a path variable to ~/bin===
 +If you want to run your new version of ffmpeg from anywhere, you may need to add ~/bin to your $PATH system variable. First, check to see if your ~/bin directory is listed in your $PATH.  Do this by typing the following:
 +
 +<cli>
 +echo $PATH
 +</cli>
 +
 +Which will return something like this:
 +
 +<cli>
 +/home/shawn/bin:/usr/local/sbin:/usr/local/bin:/usr.sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
 +</cli>
 +
 +If you don't see "/home/username/bin" listed, we need to add it to our $PATH.  This can be done by editing the ~/.profile file, and adding the following lines to the bottom.
 +
 +<code>
 +if [ -d "$HOME/bin" ] ; then
 +    PATH="$HOME/bin:$PATH"
 +fi
 +</code>
 +
 +This will check the home directory on login, and if it finds a ~/bin folder, it will add it to the path.  After adding this line, save the ~/.profile and restart your shell.  After this, we should be able to call the script from anywhere.  So, let's test it.  Run the following command from any directory.
 +
 +<cli>
 +ffmpeg
 +</cli>
 +
 +The ffmpeg run dialog should show up, and everything should be good to go!
user/smeas/portfolio/hpc2project2.1399403764.txt.gz · Last modified: 2014/05/06 19:16 by smeas