【问题标题】:How to install libuv on ubuntu?如何在 ubuntu 上安装 libuv?
【发布时间】:2017-06-29 18:15:21
【问题描述】:
sudo apt-get install libuv
$ sudo apt-get install libuv
[sudo] username ...
It fails to find package and install.
libuv 是否包含在其他一些包中?
【问题讨论】:
标签:
linux
ubuntu
installation
apt-get
libuv
【解决方案1】:
您可以使用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,确保你的包缓存是最新的!
【解决方案2】:
在 ubuntu 14.04 上安装 libuv。
sudo add-apt-repository ppa:acooks/libwebsockets6
sudo apt-get update
sudo apt-get install libuv1.dev