Title: Message
Kevin and Georger,
I forgot to include how I package Ntop.
Regards
Jac
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jacengel
Sent: donderdag 27 oktober 2005 16:32
To: [email protected]
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Greiner
Sent: donderdag 27 oktober 2005 15:21
To: [email protected]
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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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?
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
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to