Jump to content

Η πρόσβαση σε όλες τις κατηγορίες του forum είναι ελεύθερη πλέον, και χωρίς περιορισμούς.

 

AplexTM

Pcaprub Windows Installation

Recommended Posts

AplexTM

Step 1:

Created dir c:\dev\utils\
dropped in 32bit console2

Step 2:

Downloaded 32bit Ruby 2.0.0-p481 from Ruby installer.org
http://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-2.0.0-p481.exe?direct
 

Quote

DoubleClicked Installer
Options:
Install local
C:\Ruby200
 


Add Ruby to Path (check)

Associate .rb and .rbw with Ruby (check)
 

Step 3:

Open Console, ensure ruby runs.

Quote

C:\dev\utils>irb
DL is deprecated, please use Fiddle
irb(main):001:0> exit


Ensure Ruby is the version you wanted

Quote

C:\dev\utils>ruby --version
ruby 2.0.0p481 (2014-05-08) [i386-mingw32]

Step 4:

Inspect installed Gems

Quote

 

C:\dev\utils>gem list --local

*** LOCAL GEMS ***

bigdecimal (1.2.0)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
test-unit (2.0.0.0)

 

Step 5:

Download WinPcap

Version 4.1.3 Installer for Windows & Driver +DLLs

Quote

Supported platforms:
Windows NT4/2000
Windows XP/2003/Vista/2008/Win7/2008R2/Win8 (x86 and x64)
MD5 Checksum: a11a2f0cfe6d0b4c50945989db6360cd



http://www.winpcap.org/install/bin/WinPcap_4_1_3.exe

Run the Installer

Start the driver at boottime (checked)

 

Step 6:

Note: you must have build tools installed

Quote

>>> ERROR:  Error installing pcaprub:
>>>        The 'pcaprub' native gem requires installed build tools.

Download Ruby 2.0 32bit Dev Kit

http://cdn.rubyinstaller.org/archives/devkits/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe

 

Run file && Extract to:

Quote

c:\dev\kit\


Note: The other Dev kits
For use with Ruby 1.8.7 and 1.9.3: DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe

For use with Ruby 2.0 and 2.1 (32bits version only):http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe

For use with Ruby 2.0 and 2.1 (x64 - 64bits only) http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe


 

Step 7:

Open a console windows && Initialize the DevKit

Quote

 

C:\dev\kit>ruby dk.rb init
[INFO] found RubyInstaller v2.0.0 at C:/Ruby200

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

 

Step 8:

Open a console windows && Validate the DevKit Ruby binding, and Modify Rubies via dk.rb install

Quote

 

C:\dev\kit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/Ruby200

 


Run the Modification installer

Quote

 

C:\dev\kit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby200'
[INFO] Installing 'C:/Ruby200/lib/ruby/site_ruby/devkit.rb


 

Step 9:
Get the WinPcap Developer's Pack (http://www.winpcap.org/devel.htm)

Download and Install 'WpdPack' from winPcap.

http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip

Quote

 

Download WinPcap 4.1.2 Developer's Pack

MD5 Checksum: bae2236af062b0900ad1416b2c4878b9
SHA1 Checksum: f5c80885bd48f07f41833d0f65bf85da1ef1727a

 


Run file && Extract to:

Quote

c:\WpdPack\

Step 10:

Install the Gem

Quote

C:\dev\kit>gem install pcaprub
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed pcaprub-0.12.0
Parsing documentation for pcaprub-0.12.0
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/pcaprub_c.so, skipping
Installing ri documentation for pcaprub-0.12.0
1 gem installed


Note: If you place WpdPack somewhere else you need to modify the compile flags.

Quote

C:\dev\kit>gem install pcaprub --no-ri --no-rdoc -- --with-pcap-dir="c:/dev/src/WpdPack"
Fetching: pcaprub-0.12.0.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-pcap-dir=c:/dev/src/WpdPack'
This could take a while...
Successfully installed pcaprub-0.12.0
1 gem installed

LINK

  • Ευχαριστώ 1

Share this post


Link to post
Share on other sites

Δημιουργήστε ένα λογαριασμό ή συνδεθείτε προκειμένου να το δείτε

Πρέπει να είστε μέλος για να μπορέσετε να αφήσετε κάποιο σχόλιο

Δημιουργία λογαριασμού

Κάντε μια δωρεάν εγγραφή στην κοινότητά μας. Η εγγραφές μας είναι εύκολες.!

Εγγραφή τώρα

Σύνδεση

Εάν έχετε ήδη λογαριασμό σε αυτό το Forum; Συνδεθείτε εδώ.

Συνδεθείτε τώρα

  • Μηνύματα

    Thank you
    thank you
    Nice
    Thanks
    Thanks
×