如何在Ubuntu上安装libuv?

9

请使用sudo apt-get命令安装libuv库。

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

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


4
Stack Overflow 是一个用于编程和开发问题的网站。这个问题似乎不是关于编程或开发的,因此被认为与主题无关。请在帮助中心查看我可以在这里问什么样的话题。也许在Ask UbuntuUnix & Linux Stack Exchange上提问会更合适。 - jww
2个回答

12

您可以使用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命令以确保您的软件包缓存是最新的!


5
在Ubuntu 14.04上安装libuv。
sudo add-apt-repository ppa:acooks/libwebsockets6
sudo apt-get update
sudo apt-get install libuv1.dev

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接