2016-08-13 16 views
9

Resmi cpython kodu link here'daki yönergeleri takip ediyordum. BirUbuntu'da cpython kodunu derleme 16.04

hg update 3.5 

'u yaptım ve sonra yaptım.

sudo apt-get build-dep python3.5 

Ama aşağıda listelenen ifadeleri belirten bir hata yukarı atıyor: Ben de şu nedenle conked kod yukarıdaki seti, sürüm azaltılması ve çalışan hakkında okudum

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

.

$ 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 

Yukarıdaki hatayı gidermek için aşağıdakileri de yaptım ve bu da bir hata oluşturdu.

$ 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 

Bu hatayı gidermek için, aşağıdakileri yapmayı denedim.

$ 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 

Sonunda bunu yaptım.

sudo apt-get install libdb++-dev 

Zaten yüklenmiş ve derleme deposu bunu göstermiyor ve yine de bir hata veriyor.

Neyin yanlış gittiğinden emin değilim? Birisi yardım edebilir mi?

Şimdiden teşekkürler!

cevap

4

Ne tür bir libdb dosyanız olduğunu söylemediniz. Libdb ++ sadece ihtiyacınız olduğunu düşünmüyorum C++ arayüzünü kullanacak olan programlar içindir. Ben libdb sürüm 5.3.21 ve libdb4 sürüm 4.8.30 görüyorum. Zaten 5.3.21 sürümünüz varsa, dinamik kitaplıklar libdb-5.3.so olarak kullanıcı/usr/lib64 ve libdb-5.so kütüphanesine bir bağlantı olmalıdır. (Ben CentOS üzerinde çalışıyorum, bu yüzden Ubuntu için biraz farklı olabilir.) Libdb-5.1.so'dan sahip olduğunuz kütüphaneye başka bir link oluşturabilir, python3.5'i yeniden kurabilir ve apt-get ile bağımlılıkları görmezden geleceğinizi söyleyebilirsiniz. -deps seçeneği.