Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install perforce on my Ubuntu machine, after I untar the .tgz file, I get two folders lib and bin. Where would be the executable or how do I install it correctly?

share|improve this question

migrated from Jul 6 '11 at 22:23

This question came from our site for professional and enthusiast programmers.

It's actually pretty easy, you just copy (or move) everything in the bin directory to /usr/bin and everything in the lib directory to /usr/lib (recursively):

tar xvfz p4v.tgz
cd p4v-2010.2.317255
sudo cp bin/* /usr/bin/
sudo cp -r lib/* /usr/lib/
share|improve this answer
If you don't have superuser or sudo rights, you can do a similar thing, but copy to /home/yourname/bin/ and /home/yourname/lib, or whatever is in your path. – Chance Jul 25 '11 at 22:26

'Bin' is usually short for 'Binary', which is where most executables are stored. Do an 'ls' in the unzipped parent directory to see if there are files titled similar to "INSTALL.txt" or "README.txt."

If it is a precompiled standalone executable (you might check the site where you downloaded it from for instructions), you should just be able to run it by 'cd'ing to the 'bin' directory and then running ./<EXECUTABLENAME>

share|improve this answer

After unpacking set up with

cp -r <package>/bin/* /usr/bin
cp -r <package>/lib/* /usr/lib
chmod +x /usr/bin/p4v 
chmod +x /usr/bin/p4v.bin
chmod +x /usr/bin/p4admin 
chmod +x /usr/bin/p4admin.bin 
chmod +x /usr/bin/p4merge
chmod +x /usr/bin/p4merge.bin
chmod +x /usr/bin/p4vc 

Then run with

share|improve this answer

You must log in to answer this question.