• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling configure: error: 'boost:: asio header not found.

Status
Not open for further replies.

Tiranow

Scripter
Joined
Feb 27, 2008
Messages
36
Reaction score
0
When I type the command to compile ./configure - enable-mysql

Return this error:

checking asio.hpp usability ... no
checking asio.hpp presence ... no
checking for asio.hpp ... no
configure: error: 'boost:: asio header not found. "

What I have to do to "boost:: asio" work?

@up

I have a better solution.

Code:
$ apt-get install libasio-dev
Then replace these strings in all CPP and H files:

boost::asio:: => asio::
boost::system:: => asio::
boost/asio.hpp => asio.hpp

Then open configure.ac. Delete these lines:

Code:
Code:
AC_CHECK_LIB(boost_system-gcc-mt, main, , [
       AC_CHECK_LIB(boost_system-mt, main, , [
               AC_CHECK_LIB(boost_system, main, , [
                       AC_MSG_ERROR("Linking against boost::system library failed.")])
       ])
])
Find this line:

Code:

Code:
AC_CHECK_HEADERS([boost/asio.hpp], ,[AC_MSG_ERROR("boost::asio header not found.")])
and turn it into:

Code:

Code:
AC_CHECK_HEADERS([asio.hpp], ,[AC_MSG_ERROR("boost::asio header not found.")])
;)
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top