In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
How to solve the failure of libevent installation? This problem may be often seen in our daily study or work. Through this question, I hope you can gain more. Let's take a look at the solution with the editor today.
Error installing libevent: event.c error: 'CLOCK_MONOTONIC' undeclared
Checking build system type... Configure: error: cannot guess build type; you must specify one
-- build=arm-linux
Make encountered an error while compiling the libevent-1.2 source code:
Event.c:157:20: error: 'CLOCK_MONOTONIC' undeclared (first use in this function)
If (clock_gettime (CLOCK_MONOTONIC, & ts) =-1)
^
The reason for the error is that CLOCK_MONOTONIC is not defined in the event.c file.
Solution: searched on the Internet, the header file is missing, CLOCK_MONOTONIC is defined in the time.h header file. So you can modify the source code directly:
Reference the header file in event.c: # include:
What is described above is the reason for the failure of libevent installation and the details of the solution, and the specific use needs to be used by everyone in order to understand it. If you want to know more about it, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.