2015-09-07 150 views
2

我正在嘗試從Datastax網站構建cpp-driver。我在Ubuntu 12.04上。在說明書中寫入將ppa:linuxjedi/ppa添加到存儲庫,以便安裝libuv。但我越來越在Ubuntu 12.04上安裝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

嘗試從源代碼構建:

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 
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