如何在ubuntu上安装libuv?

时间:2017-02-11 12:02:56

标签: linux ubuntu install apt-get libuv

sudo apt-get install libuv

$ sudo apt-get install libuv
[sudo] username ...
It fails to find package and install.

libuv是否包含在其他一些软件包中?

2 个答案:

答案 0 :(得分:6)

您可以使用apt-cache search查找包裹。例如,在Ubuntu Yakkety上,命令apt-cache search libuv当前返回以下内容:

libuv0.10 - asynchronous event notification library - runtime library
libuv0.10-dbg - asynchronous event notification library - debugging symbols
libuv0.10-dev - asynchronous event notification library - development files
libuv1 - asynchronous event notification library - runtime library
libuv1-dbg - asynchronous event notification library - debugging symbols
libuv1-dev - asynchronous event notification library - development files
lua-luv - libuv bindings for lua
lua-luv-dev - libuv bindings for lua

首先运行apt-get update

,确保您的包缓存是最新的

答案 1 :(得分:2)

在ubuntu 14.04上安装libuv。

sudo add-apt-repository ppa:acooks/libwebsockets6
sudo apt-get update
sudo apt-get install libuv1.dev