Sunday, 25 December 2011

WHAT AFTER DOWNLOADING TAR.GZ FILE

Ok, so for those who don't know what to do when you download a program for linux and the file extension is tar.gz, you've come to the right place.

So when you download it, it should be in your downloads directory(default is downloads in home folder). So open up a terminal.

Change your directory to where the file is located. (Downloads)

Code:
cd Downloads

Then, tar the file so it becomes a folder...

Code:
tar -zxf FILENAME.tar.gz

After that, change the directory to the new folder...

Code:
cd FOLDER

There should be an INSTALL file inside of the folder but most files install like so... MAKE SURE COMMANDS GO IN ORDER!!!

Code:
./configure

Code:
make

Code:
make install

Finally, there should be a program in the name of the program in that folder that is executable and you can run it by simply typing it in.
If it says something like, permission denied, or somthing like that, do the following.

Log in as root. Follow the on-screen instructions.

Code:
sudo -s

Then, go to the folder with the program in it.

Code:
cd /Downloads/FOLDERNAME

Then, make the file executable by anyone...

Code:
chmod 755 FILENAME

Then log out of root by typing,

Code:
exit

Finally, you can execute in the command line.



No comments:

Post a Comment