LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-29-2008, 05:42 PM   #1
JRink
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Rep: Reputation: 15
how do i install the software?


I have a CentOS 5.2 box. I downloaded the ntop3.3.8.tar.gz file from sourceforge. I extracted the contents of that package to my desktop. Pardon my ignorance, but how do I install it? I'm assuming since I downloaded the binary version instead of the source version that I don't need to compile it? I still don't know how to install it though. I see a install-sh file in the extracted folder contents... What am I not seeing or doing right?
 
Old 11-29-2008, 05:58 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
I'd being will to bet you downloaded the source code. Most archives in tar.gz or tar.bz2 format are source code. I went to the ntop website, followed the link to sourceforge and didn't see any binary packages. Looks like you'll have to build it from source if ntop isn't in the CentOS repositories. The instructions are included in the tarball, just see the README file.
 
Old 11-29-2008, 05:59 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
tar.gz packages usually include a README or INSTALL files which gives instructions how to install the package.

If the package doesn't contain the files named above, go back to the site from which you downloaded the file to see if you can find install instructions there.

Failing that, open a console and su to root, then cd to the desktop folder in which you unpacked the package, then run the install script with this command: ./install.sh.

The leading ./ tell the bash shell "in this folder, run this script".

Or, in the console, you can run the script from anywhere be giving the full path to the script. So, it you are in your home folder, the command would be: ~/Desktop/folder/install.sh

If the script needs to write to directories not normally open to the logged in users, you would have to run the script as root. If the entire script will be installed and run from your home folder, you can do that as user.
 
Old 11-29-2008, 06:00 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Well first you need to extract the file by using the following
Code:
tar -zxvf ntop3.3.8.tar.gz
then check for the install file. If you see it then type in the following.
Code:
./install.sh
if you don't see the install.sh then you have to manually compile it.
Code:
make && make install
But normally if you downloaded the binary for Cent OS it will come as a .rpm
 
Old 11-29-2008, 06:10 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
No, don't execute install-sh. The install-sh script is provided by Automake and is a replacement for the install program that works on platforms where install is unavailable or unusable. IIRC, it is used to a large extent on BSD systems, but it's not likely that you'll need it on a Linux box. Just read the README file which does exist in the ntop archive.
 
Old 11-29-2008, 06:38 PM   #6
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270

Rep: Reputation: 31
Instead, you should do the following:
<CODE>
./configure
make
su (then enter password)
make install
</CODE>
if configure says something like "Error: importantotherpackagefile.h not found."
then install the necessary package.
sometimes make will exit with an error, though it's uncommon.
Best of luck!
 
Old 11-29-2008, 06:39 PM   #7
JRink
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Ug. This is why I'm confused. Two people here tell me to run the install-sh, two other people say DONT run that, and another person that says do something that I haven't seen anywhere in the documentation.

When looking at the extracted contents of the .tar.gz file, there is a readme. It basically says, "For instructions on how to build ntop from source, see docs/BUILD-NTOP.txt (*nix)." Ok, so I go to the /docs directory and there's a file called RedHat-rpmbuild-howto.txt.

That document did nothing but confuse me.. it talks about 3 options?
1) UML
2) buildmeister
3) VPC

Huh? Am I supposed to pick one of those? Confused...


What's more confusing is, on the http://www.ntop.org/download.html page, it says that after downloading the source, you need to:
"Now you need to compile ntop:

1. cd ntop
2. ./autogen.sh
3. make
4. make install "

That is totally different than what it's saying to do in the redhat-rpmbuild-howto.txt file which talks about uml, buildmeister and vpc. If I TRY doing those four steps, it errors out running "./autogen.sh" with the following, "configure: error: Unable to find RRD at /usr/local/rrdtool: please use --with-rrd-home=DIR"



Can someone clarify what I'm supposed to do? I can't understand why this seems so difficult.

Last edited by JRink; 11-29-2008 at 06:44 PM.
 
Old 11-29-2008, 06:46 PM   #8
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270

Rep: Reputation: 31
ok, I just downloaded the package. Here's what the readme says:

"Briefly, the shell commands `./configure; make; make install' should
configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package."

Just note that you'll have to su to root for the make install if you want to install.
Anyway, you can try pretty much anything you want without hurting things as long as you're not root, and make install can never hurt anything.

my previously listed building instructions always work for me, so why don't you try them?
 
Old 11-29-2008, 06:46 PM   #9
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270

Rep: Reputation: 31
sorry glitch in computer sent stuff twice. :$

Last edited by chickenlinux; 11-29-2008 at 06:50 PM. Reason: computer sent stuff twice... :$
 
Old 11-29-2008, 07:02 PM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Well... installing from source (and eventually building a RPM) is always a good exercise. However, take in mind that a RPM package of ntop is available for Centos 5.2 if you enable the RPMForge repository. Current version is ntop-3.3.8.
 
Old 11-29-2008, 07:07 PM   #11
JRink
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Original Poster
Rep: Reputation: 15
chickenlinux,
your README says that? mine doesn't. are you sure you're looking at the README file? Or am I going crazy here...

colucix,
Can you explain the rpmforge repository more? what is it? how is it enabled?
 
Old 11-29-2008, 07:09 PM   #12
JRink
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Original Poster
Rep: Reputation: 15
oh, and btw, i did try ./configure, but it errors out with:

configure: error: Unable to find RRD at /usr/local/rrdtool: please use --with-rrd-home=DIR
[root@centos1 ntop-3.3.8]#

am i supposed to use ./configure --with-rrd-home=/root ?? or something else?
 
Old 11-29-2008, 07:13 PM   #13
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
RPMForge is a 3rd party repository you can chose to install/enable on your CentOS machine. More details here, on the CentOS wiki. Follow the link to the instructions on how to install the repo. Basically you have to install a RPM which provides the repository configuration file (you will find it in /etc/yum.repos.d) and eventually setup the priorities as explained on the wiki. It is more complicate to tell than to do.

Once you have RPMForge enabled, just do
Code:
yum install ntop
and the trick is done.

Last edited by colucix; 11-29-2008 at 07:14 PM.
 
Old 11-29-2008, 08:02 PM   #14
JRink
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Arg. Can anyone help with this error when I try and run ./configure?

If I run "./configure", then i get this error, "configure: error: Unable to find RRD at /usr/local/rrdtool: please use --with-rrd-home=DIR"

but I have NO /usr/local/rrdtool file, but I did find a /usr/bin/rrdtool file.

So I ran "./configure --with-rrd-home=/usr/bin", then i get this error, "configure: error: Unable to find RRD at /usr/bin: please use --with-rrd-home=DIR"


What am I supposed to do?

(I want to try getting this to work using the source, just for experience I guess...)
 
Old 11-29-2008, 08:23 PM   #15
chickenlinux
Member
 
Registered: Mar 2008
Location: Here - Where else?
Distribution: Fedora 12, Arch Linux (updated daily =D)
Posts: 270

Rep: Reputation: 31
Can't help you there, I have never got this to work right :$
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Software Portals Can Do More Than Install Software LXer Syndicated Linux News 0 12-18-2007 07:42 AM
etch net install hangs on install software knobby67 Debian 1 02-14-2007 12:58 PM
apt-get install dependency problems with hplip software and kde install for Agnula maybi7 Linux - Software 1 02-03-2007 06:16 PM


All times are GMT -5. The time now is 06:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration