Install SIPp in Ubuntu
by Hui Wang
The common problem we are meeting in installing sipp 3.1 in ubuntu is a declaration problem.
Probably this error will prevent you from completing the compile.
‘INT_MAX’ was not declared in this scope
Please add #include <limits.h> in the file header where it is missed.
If you like an all-in-one solution to install sipp, a deb package is available by default, but it’s not the newest version.
Type the following command to install sip with both openssl and pcap supported.
sudo apt-get install sip-tester
Comments
Dear Wang,
I found this article useful and could trouble shoot my issue, but I could not understand the following thing which you wanted to say: “Please add #include in the file header where it is missed.”
While compiling sipp v3.1 in Ubuntu 9.04, I am getting the following error:
‘INT_MAX’ was not declared in this scope
I tried add the line [include "scenario.hpp"] in the file scenario.cpp under sipp directory and still i got the same error. I installed the openssl 0.9.8 version and then ran the following install commands:
sudo apt-get install build-essential
sudo apt-get install ncurses-dev
sudo apt-get install libssl-dev
sudo apt-get install libnet6-1.3-dev
sudo apt-get install libpcap-dev
sudo apt-get install sip-tester
Everything was successfully executed, but still when I run “sudo make”, I get the same error as you have mentioned. Kindly help me out to solve this issue. Thanks.
–s.suresh
Hi Suresh, thanks for your feedback.
In fact, what the code is missing is not the file scenario.php but limits.h in which the value of INT_MAX is defined.
I’m sorry about the confusion. To get rid of this error you should add #include <limits.h> in the files where it is missed.
Good luck.
Specifically, add #include to the scenario.hpp file
Good Luck