asio作为跨平台的通信库,原先继承与boost库中,C++11后可以独立于boost使用,但是由于其example还依赖于boost,因此即使安装独立版asio,也最好先安装boost库。
asio的官网位于:Asio C++ Library
1.可以通过源码进行安装:
通过其中连接先下载asio的源码包,解压缩后,进入asio目录,通过如下步骤安装:
(1) ./configure --with-boost=path_to_boost
其中--with-boost=path_to_boost用于指定boost库的所在目录,比如我的boost所在目录为/usr/include/boost,则指定参数为./configur