Gizmos Freeware Reviews  

Go Back   Gizmo's Freeware Forum > Freeware Forum > Linux

Reply
 
Thread Tools Display Modes
Old 31. May 2009, 10:08 PM   #11 (permalink)
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 128
Default compile and install from source

OK, how about we install a 3rd party application from source.

First of all, you should always install software from packages (.rpm, .deb, etc...),
Packages automatically take care of dependencies.
Packages are usually available for most mainstream applications, but not all.

If a package isn't available for download, or your distro package doesn't match
what's available, then installing from source is always an option.

Source is almost always available, can be compiled on most systems
and is usually always in a zipped file tar.gz or tar.bz2
It's actually zipped (gzip) tar (tape archive) file, typically referred to as a tarball.

So lets get started...
I've chosen a third party application called conky (evolved from torsmo).
Here is the download link:
http://conky.sourceforge.net/index.html



Clicking the Latest Release "Get Conky" takes you to the page below.
We want the conky-1.7.0.tar.gz file.



save the file to your home directory.



No lets look at the downloaded package with ls -l



see next post
debtboy is offline   Reply With Quote
Old 31. May 2009, 10:26 PM   #12 (permalink)
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 128
Default

Now it's time to unarchive these files.
Use the following command
tar -xvf conky.1.7.0.tar.gz



It should start unpacking...
many directory and file names will scroll by.



Now so you can see,
clear which will clear the screen and do a
ls -ld conky* I've added the d so it would list the directory
and not the contents of the directory and the conky* will list
starting with conky.
We see the original tarball and a new directory
conky-1.7.0



Now we'll enter that directory cd conky-1.7.0
We expect a README and INSTALL file for additional instructions
from the author.



see next post
debtboy is offline   Reply With Quote
Old 31. May 2009, 10:37 PM   #13 (permalink)
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 128
Default

Now we do a listing of the new directory ls,
I'm not using the -l long format, because I want to see all the files.



Now we do a more README, the person who created the files
might leave special instructions for configuring or compiling the files.



Here I've scrolled down to a more important part of the file.



I don't see anything special, so lets move on.
It's time to run the configure file.
try ./configure the ./ just say the directory your currently in.



see next post
debtboy is offline   Reply With Quote
Old 31. May 2009, 10:49 PM   #14 (permalink)
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 128
Default

When running the config file, any dependency or other problems
will be displayed. It checks your system for everything it needs.
If it needs something like a compiler, it will tell you now.

Running the config didn't turn up any problems for me (see image).



Here I've just scrolled down to the bottom



Now I need to become root, only root can install software.
su root
then I ran clear to clear the screen.

It's time to compile the source code.
make that's all it takes to compile.



You will see all kinds of text scroll by.



see next post
debtboy is offline   Reply With Quote
Old 31. May 2009, 10:56 PM   #15 (permalink)
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 128
Default

Now I normally clear the screen and run:
make install that's all it takes to install the program.



Again lots of text scrolling by.



Now I again clear the screen, and run:
make clean which cleans up all the temporary files and such.



Guess what... more text scrolling by (Ha! Ha! Ha!)



see next post
debtboy is offline   Reply With Quote
Old 31. May 2009, 11:26 PM   #16 (permalink)
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 128
Default

Now lets see if it works,
exit root, making your the regular user.
Type conky and hit enter to see if it works.

A display of PC information should appear on your desktop.



To end the program I just enter <ctrl> c in the shell.



The conky program can be configured to run many different ways,
(I think, this is the first I've used it)
but this post was about installing from source not how to use conky.

It's not difficult to install from source, here is a summary:

1.) download tarball (*.tar.gz)
2.) unarchive using tar -xvf filename
3.) Enter directory and read README (possible special instructions)
4.) run ./configure
5.) switch to root
6.) run make
7.) run make install
8.) run make clean optional

No big deal, it's easy.

make uninstall to remove it, provided you kept your makefile
For info on make, check the man pages.

I've left out minor details and such as this was only
an introduction. Hope it was easy to understand.

This thread went over some of the basics to get you started,
now it's fun time!!
debtboy is offline   Reply With Quote
Old 02. Jun 2009, 01:37 AM   #17 (permalink)
Senior Member
 
wdhpr's Avatar
 
Join Date: Sep 2008
Location: The north Coast
Posts: 1,513
Default Great tutorial

This was going really great until the ./configure part. I then got this error

Quote:
checking for X... no
configure: error: Can't locate your X11 installation
Jac@mepis1:~/Desktop/conky-1.7.0$
I am using mepis and only have the basic x11 package installed. Looked for the x installation pkg. thinking it might be a x package i could install. No joy
I will try to install another source package

PS again.........great tutorial
Cheers
Wdhpr
wdhpr is offline   Reply With Quote
Old 02. Jun 2009, 02:17 AM   #18 (permalink)
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 128
Default

Quote:
Originally Posted by wdhpr View Post
This was going really great until the ./configure part. I then got this error



I am using mepis and only have the basic x11 package installed. Looked for the x installation pkg. thinking it might be a x package i could install. No joy
I will try to install another source package

PS again.........great tutorial
Cheers
Wdhpr
Wow, sorry to hear that.
You are right about the x package, but it is a development library you need.
I'm not familiar with Mepis, but you should be able to install the needed library through synaptic.
It will have (x or x11 or xorg or libx) and (devel or develop or dev) in the name.

NOTE:
When things break or don't work is when we learn the most!
debtboy is offline   Reply With Quote
Old 02. Jun 2009, 11:25 PM   #19 (permalink)
Senior Member
 
wdhpr's Avatar
 
Join Date: Sep 2008
Location: The north Coast
Posts: 1,513
Default

Hey guy

Its hard trying encompass all the variables when writing things like this. Its like trying to make something human proof and knowing its impossible. I understand the library part of your response. Again not too different from Amiga's library requirements. I sometimes wonder if any of Amiga's scripting was used in the development of the Linux kernel.


Cheers
Wdhpr

Last edited by wdhpr; 02. Jun 2009 at 11:28 PM.
wdhpr is offline   Reply With Quote
Old 03. Jun 2009, 01:00 AM   #20 (permalink)
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 128
Default

Well, packages do simplify installs and if you get a large full blown distro
most everything you'll need will already be included.
Just install as needed via package manger.

This was only a How-To with screenshots,
showing that you can install apps directly from source code.

There doesn't seen to be much activity here in the
Linux portion of the forum.

Twenty years from now people will laugh, saying...
These were the horrible years of,
Windows Operating Systems and Rap music
debtboy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 10:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.