2016-08-13 12 views
9

私は公式のcpythonコードlink hereの指示に従っていました。私はしたUbuntuでcpythonコードをコンパイルする16.04

hg update 3.5 

を実行し、次に行った。

sudo apt-get build-dep python3.5 

しかし、下記の文を示すエラーを投げている:

Reading package lists... Done 
Picking 'python3-defaults' as source package instead of 'python3' 
E: Unable to find a source package for python3 

私はバージョンを削減し、また、次のような理由conked上記のコードセットを、しようと読んました。

$ hg update 2.7 
0 files updated, 0 files merged, 0 files removed, 0 files unresolved 
$ sudo apt-get build-dep python2.7 
Reading package lists... Done 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. 
The following information may help to resolve the situation: 

The following packages have unmet dependencies: 
builddeps:python2.7 : Depends: libdb5.1-dev but it is not installable 
E: Unable to correct problems, you have held broken packages 

上記のエラーを解決するために、私もエラーを投げました。

$ sudo apt-get install libdb5.1-dev 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Package libdb5.1-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 'libdb5.1-dev' has no installation candidate 

このエラーを解決するため、次の操作を試みました。

$ sudo apt-get install libdb5.1++-dev 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Package libdb5.1++-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 'libdb5.1++-dev' has no installation candidate 

最後にこれを行いました。

sudo apt-get install libdb++-dev 

これは既にインストールされていますが、build-depはそれを指し示さず、エラーをスローします。

何がうまくいかないのですか?助けてもらえますか?

ありがとうございます!

答えて

4

あなたはあなたが持っているlibdbのバージョンを言っていませんでした。 Libdb ++は、C++インタフェースを使用するプログラムのためのもので、私はあなたが必要と思わないものです。私はlibdbバージョン5.3.21とlibdb4バージョン4.8.30を見ています。既にバージョン5.3.21を使用している場合、動的ライブラリはlibdb-5.3.soというユーザー/ usr/lib64とそのライブラリlibdb-5.soへのリンクでなければなりません。 (私はCentOSで作業しているので、Ubuntuでは若干異なるかもしれません)libdb-5.1.soからライブラリに別のリンクを作成し、python3.5を再インストールして、apt-getに--no -depsオプション。