PortalHomeCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in

Display results as :
Rechercher Advanced Search
Ubuntu 10.04 Countdown
Top posters
Latest topics
» clamav-0.98.tar.gz how to install ubuntu 13.04
by smileboom Thu Oct 10, 2013 10:21 am

» မဂ္လာပါ အဖြဲ့၀င္အေပါင္းတို့
by smileboom Thu Oct 10, 2013 10:13 am

» အသံမထြက္လို႔
by channyein Sat Jun 01, 2013 3:05 pm

» Ubuntu 10.4 Countdown ဆို​တာ​
by kyawmyatthu.ows Mon Apr 22, 2013 5:57 am

» အားလုံး​မင်္ဂလာ​ပါ။
by kyawmyatthu.ows Mon Apr 22, 2013 5:47 am

» Gucci Belt For Sale
by cangliang Tue Jan 22, 2013 1:15 pm

» Armani Belt on sal
by cangliang Tue Jan 22, 2013 1:14 pm

» Gucci Belt For Sale
by cangliang Tue Jan 22, 2013 1:13 pm

» Hermes Picotin MM
by cangliang Fri Jan 18, 2013 7:29 am

» hermes mens bag Replik billige Hermes Taschen zum Verkauf
by cangliang Fri Jan 18, 2013 7:27 am

Share | 

 How to Compile tar.gz downloads in Ubuntu 9.04

View previous topic View next topic Go down 

Posts : 147
Join date : 2009-07-23
Age : 32
Location : ရန္ကုန္

PostSubject: How to Compile tar.gz downloads in Ubuntu 9.04   Tue Nov 24, 2009 7:18 pm

Prep your system for building packages By default, Ubuntu does not come with the tools required. You need to install the package build-essential for making the package and checkinstall for putting it into your package manager. These can be found on the install CD or in the repositories, searching in Synaptic Package Manager or the command-line apt-get:

sudo apt-get install build-essential checkinstall

You should then build a common directory for yourself where you'll be building these packages. We recommend creating /usr/local/src, but really you can put it anywhere you want. Make sure this directory is writable by your primary user account, by running

sudo chown yourusername /usr/local/src
sudo chmod u+rwx /usr/local/src

After you've done this, you're set up to start getting the programs you need.
1.Download your file to the Desktop
2.Open a terminal and type the following:

cd Desktop/ [hit enter]

3.Take a look at what's in the folder by typing:

ls [hit enter]

Here you will see a list of everything on your desktop I should mention if you havent been using it when typing long file names hitting the tab key auto completes based on which folder you are currently in. So if your now type the begining of your file name and it tab it would auto complete it.

4.Type the following to move the downloaded tar.gz to a better location. I will be moving my file to the folder we created to place out unpacked tarballs /usr/local/src

sudo mv filename.tar.gz /usr/local/src [hit enter]
[enter your password] [hit enter]

5.Now that we have moved our target location its time to navigate to that folder and unpack. If you have a bz2 compressed folder use alternate command to unpack. Type the following:

cd /usr/local/src [hit enter]
sudo tar -xzvf filename.tar.gz [hit enter]
tar xjvf filename.tar.bz2

6.This will unpack the zip right next to the tar.gz so you better clean up by typing the following:

sudo rm filename.tar.gz [hit enter]

7.Time to go into this newly unpacked folder and compile.

cd foldername [hit enter]

By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. We are going to let it install to the default which is /usr/local/bin

8.To compile type the following:

sudo -s [hit enter]
./configure [hit enter]
make [hit enter]
make install [hit enter]
make clean [hit enter]

Now if this application you have installed is ment to be run in a terminal then you can run it by typing the exported file name in a terminal these apps will also have help installed to show you available commands for your new tool. If the app has a GUI then you should find an exicutible in the /usr/local/bin run it and your app will run.
Hope this helps in the process, it's really quick compaired to how this looks.

credit - http://jesse.im/
Back to top Go down
View user profile http://ubuntu4mm.org

How to Compile tar.gz downloads in Ubuntu 9.04

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
 :: Basic :: Command Line-