简体   繁体   English

更新库:Debian 7上的增强

[英]Update library: Boost on Debian 7

I am a newbie on unix systems and I've currently a problem with libs updates. 我是UNIX系统上的新手,我目前遇到库更新问题。 I don't know really how to update the library Boost to the version 1.55 我真的不知道如何将Boost Boost库更新到版本1.55

I tried this way but the boost system version returns 1.48. 我尝试过这种方式,但Boost系统版本返回1.48。

$ wget
http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.gz
$ gunzip boost_1_55_0.tar.gz
$ tar xvf boost_1_55_0.tar

I also tried apt-get update && apt-get upgrade Then i got some errors: 我也尝试过apt-get update && apt-get upgrade然后出现一些错误:

Get:1 http://http.debian.net wheezy-backports Release.gpg [1,554 B] Hit http://ftp.debian.org wheezy/main i386 Packages Hit http://ftp.debian.org wheezy/main Translation-en Get:2 http://http.debian.net wheezy-backports Release [161 kB] Get:3 http://http.debian.net wheezy-backports/main amd64 Packages [606 kB] Get:4 http://http.debian.net wheezy-backports/main i386 Packages [607 kB] Err http://ppa.launchpad.net wheezy/main Sources 404 Not Found Err http://ppa.launchpad.net wheezy/main amd64 Packages 404 Not Found Get:5 http://http.debian.net wheezy-backports/main Translation-en [376 kB] Err http://ppa.launchpad.net wheezy/main i386 Packages 404 Not Found Ign http://ppa.launchpad.net wheezy/main Translation-en_GB Ign http://ppa.launchpad.net wheezy/main Translation-en Fetched 1,752 kB in 1s (896 kB/s) W: Failed to fetch http://ppa.launchpad.net/boost-latest/ppa/ubuntu/dists/wheezy/main/source/Sources 404 Not Found 获取:1 http://http.debian.net wheezy-backports Release.gpg [1,554 B]点击http://ftp.debian.org wheezy / main i386软件包,点击http://ftp.debian.org wheezy / main Translation-zh-cn Get:2 http://http.debian.net wheezy-backports发行版[161 kB] Get:3 http://http.debian.net wheezy-backports / main amd64软件包[606 kB] Get:4 http ://http.debian.net wheezy-backports / main i386软件包[607 kB]错误http://ppa.launchpad.net wheezy / main来源404未找到错误http://ppa.launchpad.net wheezy / main amd64找不到404软件包Get:5 http://http.debian.net wheezy-backports / main Translation-zh-CN [376 kB] Err http://ppa.launchpad.net wheezy / main i386找不到404软件包Ign http:/ /ppa.launchpad.net wheezy / main Translation-zh_CN Ign http://ppa.launchpad.net wheezy / main Translation-en 1s(896 kB / s)中获取1,752 kB W:无法获取http:// ppa。 launchpad.net/boost-latest/ppa/ubuntu/dists/wheezy/main/source/Sources 404找不到

W: Failed to fetch http://ppa.launchpad.net/boost-latest/ppa/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found W:无法获取http://ppa.launchpad.net/boost-latest/ppa/ubuntu/dists/wheezy/main/binary-amd64/Packages 404找不到

W: Failed to fetch http://ppa.launchpad.net/boost-latest/ppa/ubuntu/dists/wheezy/main/binary-i386/Packages 404 Not Found W:无法获取http://ppa.launchpad.net/boost-latest/ppa/ubuntu/dists/wheezy/main/binary-i386/Packages 404找不到

E: Some index files failed to download. E:某些索引文件下载失败。 They have been ignored, or old ones used instead. 它们已被忽略,或改用旧的。 root@vps299256:~# apt-get update && apt-get upgrade E: Type ' https://packages.debian.org/fr/wheezy/libboost-dev ' is not known on line 3 in source list /etc/apt/sources.list E: The list of sources could not be read. root @ vps299256:〜#apt-get更新&& apt-get升级E:在源列表/ etc / apt的第3行上不知道键入' https://packages.debian.org/fr/wheezy/libboost-dev ' /sources.list E:无法读取源列表。

Debian 7.11 Wheezy - amd64. Debian 7.11 Wheezy-amd64。 Building the 55 libboost1.55 packages : 构建55个libboost1.55软件包:

/etc/apt/sources.lists ... added two lines : /etc/apt/sources.lists ...添加了两行:

deb-src http://ftp.dk.debian.org/debian/ jessie main
deb-src http://ftp.dk.debian.org/debian/ jessie/updates main

The build-deps ( Summary of 'apt-get build-dep', and then some ) : # apt-get install g++ fakeroot dctrl-tools libbz2-dev libicu-dev mpi-default-dev bison flex docbook-to-man help2man xsltproc doxygen python-all-dev python3 python3-all-dev debhelper dpkg-dev ... And from [wheezy-backports] : dh-python build-deps(“ apt-get build-dep的摘要,然后是一些内容): # apt-get install g++ fakeroot dctrl-tools libbz2-dev libicu-dev mpi-default-dev bison flex docbook-to-man help2man xsltproc doxygen python-all-dev python3 python3-all-dev debhelper dpkg-dev ...然后从[wheezy-backports]: dh-python

Building boost-1.55 in /home/[name]/tmp/boost_1.55/ : 在/home/[name]/tmp/boost_1.55/中构建boost-1.55:

$ apt-get -b source boost1.55=1.55.0+dfsg-3 ... and the libboost 1.55 packages for Debian 7 are created. $ apt-get -b source boost1.55=1.55.0+dfsg-3 ...并且创建了Debian 7的libboost 1.55软件包。


The packages (112.5MB) are uploaded as libboost1.55_debian-7.11.tar https://drive.google.com/file/d/0B7S255p3kFXNeGFRZFF6S0g5N3M/view?usp=sharing ... Download, untar with tar xvf libboost1.55_debian-7.11.tar , cd libboost1.55_debian-7.11/ , and install with # dpkg -i *.deb 软件包(112.5MB)作为libboost1.55_debian-7.11.tar https://drive.google.com/file/d/0B7S255p3kFXNeGFRZFF6S0g5N3M/view?usp=sharing上传...下载,用tar xvf libboost1.55_debian-7.11.tar解压缩tar xvf libboost1.55_debian-7.11.tarcd libboost1.55_debian-7.11/并使用cd libboost1.55_debian-7.11/ dpkg -i *.deb安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM