在Ubuntu 12.04上安装libuv

时间:2015-09-07 12:07:56

标签: ubuntu-12.04 libuv

我正在尝试从Datastax网站构建cpp-driver。我在ubuntu 12.04。在说明书中,编写了将ppa:linuxjedi / ppa添加到存储库以便可以安装libuv。但是我得到了

Package libuv-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libuv-dev' has no installation candidate

当我在添加ppa后尝试进行更新时。有替代方法在ubuntu 12.04上安装libuv吗?

2 个答案:

答案 0 :(得分:3)

尝试使用-E选项添加PPA:

sudo -E apt-add-repository -y ppa:linuxjedi/ppa sudo apt-get update

然后运行

sudo apt-get install g++ make cmake libuv-dev libssl-dev

答案 1 :(得分:3)

尝试从源代码构建:

sudo apt-get install make automake libtool curl
curl -sSL https://github.com/libuv/libuv/archive/v1.8.0.tar.gz | sudo tar zxfv - -C /usr/local/src
cd /usr/local/src/libuv-1.8.0
sudo sh autogen.sh
sudo ./configure
sudo make
sudo make install
sudo rm -rf /usr/local/src/libuv-1.8.0 && cd ~/
sudo ldconfig