-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No PCAP installed for 3.6.1 on CentOS 7 #540
Comments
I'm sorry. This is not sufficient info for me to solve. Please reopen when you have something that doesn't require me to install CentOS7 to test. |
Here's some observation from my test. I installed both 7 and 8, and I found 3.6.0 on 7, and 3.6.1 on 8 both worked normally. The reason might be the version of libpcap, which is 1.5.3 on 7 and 1.9.1 on 8 by default yum install. Anyway at least I got the workaround in my environment. |
👍 Glad you got it sorted. |
... this is probably related to the CMake conversion though. Possibly things start to work if one adds: --- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,18 +107,30 @@ if(USE_SSL)
endif()
if(USE_PCAP)
- add_definitions("-DPCAPPLAY")
+ find_library(PCAP_LIBRARY pcap)
+ if(PCAP_LIBRARY)
+ add_definitions("-DPCAPPLAY")
+ else()
+ message(FATAL_ERROR "libpcap not found")
+ endif()
endif(USE_PCAP)
if(USE_GSL)
find_library(GSL_LIBRARY gsl)
if(GSL_LIBRARY)
add_definitions("-DHAVE_GSL")
- endif(GSL_LIBRARY)
+ else()
+ message(FATAL_ERROR "libgsl not found")
+ endif()
endif(USE_GSL)
if(USE_SCTP)
- add_definitions("-DUSE_SCTP")
+ find_library(SCTP_LIBRARY sctp)
+ if(SCTP_LIBRARY)
+ add_definitions("-DUSE_SCTP")
+ else()
+ message(FATAL_ERROR "libsctp not found")
+ endif()
endif(USE_SCTP)
# add the executable I'm not that intimate with cmake yet. (Make sure you |
@wdoekes I tried in your way and make again. It worked without problem. Now |
Hello,
I installed 3.6.1 on CentOS7 using following commands:
The same problem in #485 happened so I reused the commands in this issue.
But my problem was that PCAP was not build into it as the output of "sipp -v" was like:
SIPp v3.6.1-RTPSTREAM.
There was no error msg during my building so I don't know what was wrong.
BTW I tried 3.6.0 with ./configure --with-pcap --with-openssl and "sipp -v" showed
SIPp v3.6.0-TLS-PCAP-RTPSTREAM
.Any comments would be appreciated.
The text was updated successfully, but these errors were encountered: