lemontree55 / packetgen

Ruby library to easily generate and capture network packets
MIT License
98 stars 13 forks source link

Force install on Ruby 3 #110

Closed kylekyle closed 3 years ago

kylekyle commented 3 years ago

PacketGen 3.1.5 doesn't work on Ruby 3.0.0. I get kwarg errors. I went to file an issue, and saw that this has been fixed in PacketGen 3.1.7. For some reason, I have to force install 3.1.7 on Ruby 3.0.

Any idea why I have to force the install? 3.1.5 works great on Ruby 3.0!

sdaubert commented 3 years ago

@kylekyle Thanks for using Packetgen.

I'm sorry for the late reply.

For some reason, I have to force install 3.1.7 on Ruby 3.0.

What do you mean by 'force install'? What is the command you used?

kylekyle commented 3 years ago

If I run

$ gem install packetgen

It installs 3.1.5. If I run

$ gem install packetgen:3.1.7

I get an error because that version lists ruby versions it is comptible with, but excludes ruby 3. If I run

$ gem install --force packetgen:3.1.7

It installs (and runs) great.

sdaubert commented 3 years ago

@kylekyle I have the same issu here.

This is due to pcaprub dependency:

So pcaprub 0.13 cannot install on ruby 3, and so packetgen 3.1.7 (see pcaprub/pcaprub#57).

I will release packetgen 3.1.8 with dependency on pcaprub 0.12 ASAP.