Forum: Ruby Re: pcap library install on windows without c compiler

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
67bb4df2775f6a6b603347dce7119571?d=identicon&s=25 unknown (Guest)
on 2006-05-19 10:07
(Received via mailing list)
unknown wrote:
> Does this help you ?
>
>  _http://en.wikipedia.org/wiki/Pcap_ (http://en.wikipedia.org/wiki/Pcap)
>
> Best regards,
>
> Axel

>Not really I need to  use

>require 'pcaplet'


> but the ruby library for pcap  requires that you make...make install to
>install it.   I don't  have access to a c compiler.

OK. The "./configure make..make install" installation process is
something
coming from Unix/Linux that doesn't have anything comparable to it in
Windows, AFAIK. One convenient way to overcome that difficulty can be
to install Cygwin on your Windows system.  That's an attemp to  bring
Linux/Unix functionality to Windows.
Go to:

_http://www.cygwin.com/_ (http://www.cygwin.com/) .



it should be sufficient that you download the setup.exe file from the
website, which guides you through some Windows-typical setup
process. If you have enough space on your computer, choose
everything there is , if you have a limited amount of space,
be sure to choose the developer tools, including the compiler 'gcc'
and 'make', as well as, of course, Ruby.
Then run the GUI installation. This will give you two icons on your
desktop, named "Cygwin" and "Cygwin XFree86". Click any of these.
This opens a console window.

To install a package from source under Linux/Unix/Cygwin, you  download
the package

package-version1.2.3.tar.gz

to your computer, and best move it (under Windows) to the directory
C:/cygwin/usr/local    .

Then, in the console, go to that directory:

cd /usr/local  <RETURN>    (in Linux, the main  path is named /, and
Cygwin
puts it at C:/cygwin),

unpack and decompress it:


gunzip package-version1.2.3.tar.gz <RETURN>

tar xvf package-version1.2.3.tar  <RETURN>.

This creates a subdirectory for the software,

C:/cygwin/usr/local/package-version1.2.3,

now go there

cd package-version1.2.3 <RETURN>

and type in (notice the dot):

./configure  <RETURN>
make        <RETURN>
make install <RETURN>

The last three command allow it to set up the software on many
different
machines which have their specialties, and therefore, you'll get a  lot
of output and in between the make and the make install, you'll probably
have
time to drink some coffee.
It may also be necessary to set some properties for your particular
software, decorating any of these last three commands with nice
options.
You can find these things in a file INSTALL or README
that is in the C:/cygwin/usr/local/package-version1.2.3 directory.


Best regards,

Axel
31ab75f7ddda241830659630746cdd3a?d=identicon&s=25 Austin Ziegler (Guest)
on 2006-05-19 15:30
(Received via mailing list)
On 5/19/06, Nuralanur@aol.com <Nuralanur@aol.com> wrote:
> OK. The "./configure make..make install" installation process is  something
> coming from Unix/Linux that doesn't have anything comparable to it in
> Windows, AFAIK. One convenient way to overcome that difficulty can be
> to install Cygwin on your Windows system.  That's an attemp to  bring
> Linux/Unix functionality to Windows.
> Go to:
>
> _http://www.cygwin.com/_ (http://www.cygwin.com/) .

Better to use MINGW/MSYS than Cygwin. Cygwin is ... not a good choice
most of the time with Windows.

-austin
This topic is locked and can not be replied to.