[prev in list] [next in list] [prev in thread] [next in thread]
List: ntop
Subject: RE: [Ntop] Re: Compile Problems - Win32 using MinGW
From: "jacengel" <jacengel () home ! nl>
Date: 2005-10-27 14:45:33
Message-ID: 000a01c5db05$160b5cd0$0534fea9 () uwz3xmx4httahl
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Kevin and Georger,
I forgot to include how I package Ntop.
Regards
Jac
-----Original Message-----
From: ntop-bounces@unipi.it [mailto:ntop-bounces@unipi.it] On Behalf Of
jacengel
Sent: donderdag 27 oktober 2005 16:32
To: ntop@Unipi.IT
Subject: RE: [Ntop] Re: Compile Problems - Win32 using MinGW
Kevin and Georger,
Compiling and running ntop3.2 last version went perfect.
I have the same problem as Kevin but ONLY when I make a package of Ntop
to run it on another PC which
does not have Mingw, Msys and Openssl installed, only installed Winpcap.
regards
Jac
-----Original Message-----
From: ntop-bounces@unipi.it [mailto:ntop-bounces@unipi.it] On Behalf Of
Kevin Greiner
Sent: donderdag 27 oktober 2005 15:21
To: ntop@Unipi.IT
Subject: [Ntop] Re: Compile Problems - Win32 using MinGW
My path looks like this:
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;C:\Program
Files\WatchGuard\wsm8\bin;c:\mingw\bin;c:\msys\1.0\bin
Let me start over, please.
I downloaded the source and followed the detailed instructions. The compile
completed without error. However, when I try to run ntop.exe, I get this
error message: ntop.exe - Unable to locate DLL. The dynamic link library
packet could not be found in the specified path." I think it's quite odd
that ntop is looking for "packet" and not "packet.dll."
So I found packet.dll in c:\winnt\system32 and ran this command: "cd
c:\winnt\system32\ & copy packet.dll packet". Now I can run ntop without any
problems at all. But I still don't know why ntop is looking for "packet" and
not for "packet.dll" as it should.
On 10/27/05, Georger Araujo <georger_br@yahoo.com.br> wrote:
Hmm,
I think I know what's wrong.
Apps running on Windows 2000 look for DLLs in 1) their
working directory, and if it's not there they look in
2) the directories in your PATH environment variable.
I think that, for some strange reason, your PATH does
not contain your Windows folders. For comparison, my
PATH environment variable looks like this:
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin
;C:\Arquivos
de programas\Microsoft SQL
Server\80\Tools\BINN;c:\mingw\bin;c:\msys\1.0\bin
I've had problems with Windows XP boxes in the past
because their PATH environment variable didn't contain
C:\WINDOWS and friends. ntop is looking for
packet.dll, not finding it, and (rightfully so)
complaining. So you make the necessary DLL available,
and presto, it works.
What's your PATH like? Regards,
Georger
--- Kevin Greiner < greinerk@gmail.com <mailto:greinerk@gmail.com> >
escreveu:
> Thanks for your quick response, Georger.
> Unfortunately, I had installed
> WinPcap and OpenSLL already and followed the
> instructions for copying the
> files. Looing at the error message again, I ran the
> following command, after
> which ntop ran successfully. It appears the problem
> is that ntop is looking
> for "packet" when it should be looking for
> "packet.dll".
>
> copy c:\winnt\system32\packet.dll
> c:\mingw\ntop3.2\ntop\packet
>
> Any ideas?
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=125494014-27102005><FONT face=Arial color=#0000ff size=2>Kevin
and Georger,</FONT></SPAN></DIV>
<DIV><SPAN class=125494014-27102005><FONT face=Arial color=#0000ff size=2>I
forgot to include how I package Ntop.</FONT></SPAN></DIV>
<DIV><SPAN class=125494014-27102005><FONT face=Arial color=#0000ff
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=125494014-27102005><FONT face=Arial color=#0000ff
size=2>Jac</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
ntop-bounces@unipi.it [mailto:ntop-bounces@unipi.it] <B>On Behalf Of
</B>jacengel<BR><B>Sent:</B> donderdag 27 oktober 2005 16:32<BR><B>To:</B>
ntop@Unipi.IT<BR><B>Subject:</B> RE: [Ntop] Re: Compile Problems - Win32 using
MinGW<BR><BR></FONT></DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff
size=2>Kevin and Georger,</FONT></SPAN></DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff
size=2>Compiling and running ntop3.2 last version went perfect.
</FONT></SPAN></DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff size=2>I
have the same problem as Kevin but ONLY when I make a package
of Ntop to run it on another PC which</FONT></SPAN></DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff size=2>does
not have Mingw, Msys and Openssl installed, only installed
Winpcap.</FONT></SPAN></DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff
size=2>regards</FONT></SPAN></DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff
size=2>Jac</FONT></SPAN></DIV>
<DIV><SPAN class=000380014-27102005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV></DIV>
<DIV><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
ntop-bounces@unipi.it [mailto:ntop-bounces@unipi.it] <B>On Behalf Of </B>Kevin
Greiner<BR><B>Sent:</B> donderdag 27 oktober 2005 15:21<BR><B>To:</B>
ntop@Unipi.IT<BR><B>Subject:</B> [Ntop] Re: Compile Problems - Win32 using
MinGW<BR><BR></DIV></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">My path looks like this:
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;C:\Program
Files\WatchGuard\wsm8\bin;c:\mingw\bin;c:\msys\1.0\bin<BR><BR>Let me start
over, please. <BR><BR>I downloaded the source and followed the detailed
instructions. The compile completed without error. However, when I try to
run ntop.exe, I get this error message: <FONT color=black size=2><FONT
color=black size=2>ntop.exe - Unable to locate DLL. The dynamic link library
packet could not be found in the specified path." I think it's quite odd
that ntop is looking for "packet" and not "packet.dll."<BR><BR>So I found
packet.dll in c:\winnt\system32 and ran this command: "cd c:\winnt\system32\
& copy packet.dll packet". Now I can run ntop without any problems at
all. But I still don't know why ntop is looking for "packet" and not for
"packet.dll" as it should.</FONT></FONT><BR><BR>
<DIV><SPAN class=gmail_quote>On 10/27/05, <B class=gmail_sendername>Georger
Araujo</B> <<A
href="mailto:georger_br@yahoo.com.br">georger_br@yahoo.com.br</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: \
rgb(204,204,204) 1px solid">Hmm,<BR>I
think I know what's wrong.<BR>Apps running on Windows 2000 look for DLLs
in 1) their<BR>working directory, and if it's not there they look in<BR>2)
the directories in your PATH environment variable.<BR>I think that, for
some strange reason, your PATH does <BR>not contain your Windows folders.
For comparison, my<BR>PATH environment variable looks like
this:<BR><BR>C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\Arquivos<BR>de \
programas\Microsoft SQL
<BR>Server\80\Tools\BINN;c:\mingw\bin;c:\msys\1.0\bin<BR><BR>I've had
problems with Windows XP boxes in the past<BR>because their PATH
environment variable didn't contain<BR>C:\WINDOWS and friends. ntop is
looking for<BR>packet.dll, not finding it, and (rightfully
so)<BR>complaining. So you make the necessary DLL available,<BR>and
presto, it works.<BR>What's your PATH like?
Regards,<BR><BR>Georger<BR><BR>--- Kevin Greiner <<A
href="mailto:greinerk@gmail.com"> greinerk@gmail.com</A>>
escreveu:<BR><BR>> Thanks for your quick response, Georger.<BR>>
Unfortunately, I had installed<BR>> WinPcap and OpenSLL already and
followed the<BR>> instructions for copying the<BR>> files. Looing at
the error message again, I ran the<BR>> following command,
after<BR>> which ntop ran successfully. It appears the problem<BR>>
is that ntop is looking<BR>> for "packet" when it should be looking for
<BR>> "packet.dll".<BR>><BR>> copy
c:\winnt\system32\packet.dll<BR>>
c:\mingw\ntop3.2\ntop\packet<BR>><BR>> Any
ideas?<BR></BLOCKQUOTE></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
["BUILD_MINGW31_jac.TXT" (text/plain)]
This document was written By Georger and reviewed by Jac Engel.
FOREWORD
--------
If you want a high-quality, official, polished, supported binary release
for Windows, please visit http://shop.ntop.org. There you can purchase ntop
for Win32, and several other ntop-related products.
This distribution does NOT include binaries. It includes instructions on
how to compile ntop yourself. If you want a high-quality, official,
polished, supported binary release for Windows, please visit
http://shop.ntop.org. There you can purchase ntop for Win32, and several
other ntop-related products.
Please DO NOT redistribute the binaries you compile. Please DO contribute
your patches back to the project.
INSTRUCTIONS
------------
1) Get the OpenSSL 0.9.8 binary distribution from \
http://www.slproweb.com/products/Win32OpenSSL.html and install it in c:\OpenSSL.
2) Go to http://www.winpcap.org/install/default.htm and download BOTH the
WinPcap 3.1 Installer for Windows 95/98/ME/NT4/2000/XP/2003/Vista AND
the Developer's pack WpdPack_3_1.zip . Install the binaries. If you have a \
previous version installed, it will be uninstalled automatically.
3) Get MSYS-1.0.9.exe and MinGW-3.1.0-1.exe from http://www.mingw.org.
Install first MINGW-3.1.0-1.exe in the default folder.
Install then MSYS-1.0.9.exe in the default folder and answer at postinstall with \
the following:
Do you have MinGW installed? [yn ] y
Please answer the following in the form of c:/foo/bar.
Where is your MinGW installation? c:/mingw
>>>>>>>>>>
Creating /etc/fstab with mingw mount bindings.
Normalizing your MSYS environment.
You have script /bin/awk
You have script /bin/cmd
You have script /bin/echo
You have script /bin/egrep
You have script /bin/ex
You have script /bin/fgrep
You have script /bin/printf
You have script /bin/pwd
You have script /bin/rvi
You have script /bin/rview
You have script /bin/rvim
You have script /bin/vi
You have script /bin/view
Oh joy, you do not have c:/mingw/bin/make.exe. Keep it that way.
C:\msys\1.0\postinstall>pause
Press any key to continue.....
<<<<<<<<<<<<<<<
( this will automatically change C:\msys\1.0\etc\fstab so that c:/mingw is mounted on \
/mingw )
4) Append c:\mingw\bin and c:\msys\1.0\bin a to your PATH
(in Computer properties - Advanced - environment variables),
new PATH will be set after reboot, if you don't want to reboot excute following in \
dos box : set path=%PATH%;C:\Mingw\bin;c:\msys\1.0\bin
5) Get ntop-3.2.zip from
http://savefile.com/projects.php?pid=420840
Unzip ntop-3.2.zip to C:\MinGW\ntop3.2
Your C:\MinGW\ntop3.2 should contain the following subfolders:
gdbm-1.8.3, graphics, winpcap-3.1, ntop and openssl-0.9.8.
6) Get ntoponmingw-libs.zip from
http://savefile.com/projects.php?pid=420840 and unzip it in
C:\MinGW\ntop3.2
7) Unzip WpdPack_3_1.zip in C:\MinGW\ntop3.2 and rename the WpdPack_3_1
folder to winpcap-3.1
8) Create folder C:\MinGW\include\openssl and copy all files in \
C:\MinGW\ntop3.2\openssl-0.9.8\include to it. Create folder openssl-0.9.8 under \
C:\MinGW\ntop3.2 Copy libeay32.a and ssleay32.a from C:\OpenSSL\lib\MinGW to \
C:\MinGW\ntop3.2\openssl-0.9.8.
9) Your folder tree should look like this (only most important folders
shown):
c:\mingw
|
+--include
| |
| +--openssl
|
+--ntop3.2
|
+--gdbm-1.8.3
| |
| +--bin
| |
| +--include
| |
| +--lib
|
+--graphics
| |
| +--gd-1.8.3
| | |
| | +--libpng-1.2.4
| |
| +--zlib-1.2.3
|
+--winpcap-3.1
| |
| +--Include
| |
| +--Lib
|
+--ntop
| |
| +--configureextra
| |
| +--docs
| |
| +--html
| |
| +--installer
| |
| +--myrrd
| |
| +--NetFlow
| |
| +--packages
| |
| +--plugins
| |
| +--utils
| |
| +--www
|
+--openssl-0.9.8
11) Run MSYS (click on desktop icon MSYS) and run the following commands:
cd /mingw/ntop3.2/ntop/
make -f Makefile.MingW depend
make -f Makefile.MingW
It should compile fine.
14) Open a command prompt goto cd /mingw/ntop3.2/ntop/
and try
ntop /h
It should display the help. Then try
ntop /c
and it should run in console mode.
Remark: the default user = admin with pwd = admin
You can change this password goto:
Ntop webpage , select from menu Admin - Configure - Web Users
you see one user admin click on modify and enter new password.
You can also add new users and you can also define the permissions \
(Restricted ntop URLs) for that user in "Show Url's".
CONCLUSION
----------
> From now on you're on your own. If you need help, browse the ntop mailing
list archives at http://www.ntop.org/needHelp.html. Regards,
Georger
Added by Jac
------------
While Georger say :Please DO NOT redistribute the binaries you compile.
I distribute it for my own purpose to put the packaged file on my laptop
so you don't need to install all the development stuff !!
8) Package ntop and the dependent files
- Create directory e.g. C:\ntop , copy ntop.exe from \mingw\ntop3.1\ntop\ and \
the html subdirectory hierarchy.
- Copy from \mingw\ntop3.2\ntop\*.txt files to c:\ntop
(specialMAC.txt,oui.txt,AS-list.txt)
Copy from \mingw\ntop3.2\ntop\ the following files to c:\ntop
services, p2c.opt.table and etter.finger.os,ntop-cert.pem
- Ntop dependent files
- packet.dll,wpcap.dll and for SSL libeay32.dll, ssleay32.dll.
( packet.dll,wpcap.dll, exist in C:\WINNT\system32 after install of \
WinPcap3.1.exe this dir is already in your PATH variable)
- copy from C:\WINNT\system32 OpenSSL dll's libeay32.dll, ssleay32.dll to \
c:\ntop
- In c:\ntop create shortcut to ntop.exe and edit properties of this shortcut \
and change target to :
C:\ntop\ntop.exe /c
Also you can add optional parameters like : C:\ntop\ntop.exe /c -p \
protocol.list Use this shortcut to start NTOP
- If you want to package Ntop for distribution :
Copy libeay32.dll, ssleay32.dll from C:\WIndows\system32 to c:\ntop
Copy the above downloaded file WinPcap_3_1.exe to c:\ntop\winpcap and
ZIP the whole C:\ntop directory in a zip file (include PATH info !)
You can distribute this ZIP file now with instructions to unzip this \
file in C:\
and that they need to install the file c:\ntop\winpcap\WinPcap_3_1.exe
and that ntop can be started with "Shortcut of Ntop.exe"
copy c:\windows\system32\packet.dll to c:\ntontop3.2/ntopp\packet
Why this latest is required I don't know, otherwise error cannot find \
dynamic library packet .....
Regards,
Jac
_______________________________________________
Ntop mailing list
Ntop@unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic