Skip to content

Oleg laba1 #9

@Olegium

Description

@Olegium

Скачиваем файл
===ВВОД===

~$ wget https://sourceforge.net/projects/boost/files/boost/1.69.0/boost_1_69_0.tar.gz

===ВЫВОД===

--2025-03-01 11:48:35-- https://sourceforge.net/projects/boost/files/boost/1.69.0/boost_1_69_0.tar.gz
Resolving sourceforge.net (sourceforge.net)... 104.18.12.149, 104.18.13.149, 2606:4700::6812:c95, ...
Connecting to sourceforge.net (sourceforge.net)|104.18.12.149|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://sourceforge.net/projects/boost/files/boost/1.69.0/boost_1_69_0.tar.gz/ [following]
--2025-03-01 11:48:36-- https://sourceforge.net/projects/boost/files/boost/1.69.0/boost_1_69_0.tar.gz/
Reusing existing connection to sourceforge.net:443.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://sourceforge.net/projects/boost/files/boost/1.69.0/boost_1_69_0.tar.gz/download [following]
--2025-03-01 11:48:36-- https://sourceforge.net/projects/boost/files/boost/1.69.0/boost_1_69_0.tar.gz/download
Reusing existing connection to sourceforge.net:443.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.sourceforge.net/project/boost/boost/1.69.0/boost_1_69_0.tar.gz?ts=gAAAAABnwsnkGmjRHVEp28PWY2aoJFeEccOjeC0Ispksoz2LKVfeX6VvBSjr0xfx0DE4P7ncJFAai-3yj0SXC6tkDb-bVsp98Q%3D%3D&use_mirror=deac-fra&r= [following]
--2025-03-01 11:48:36-- https://downloads.sourceforge.net/project/boost/boost/1.69.0/boost_1_69_0.tar.gz?ts=gAAAAABnwsnkGmjRHVEp28PWY2aoJFeEccOjeC0Ispksoz2LKVfeX6VvBSjr0xfx0DE4P7ncJFAai-3yj0SXC6tkDb-bVsp98Q%3D%3D&use_mirror=deac-fra&r=
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 104.18.13.149, 104.18.12.149, 2606:4700::6812:c95, ...
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|104.18.13.149|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://deac-fra.dl.sourceforge.net/project/boost/boost/1.69.0/boost_1_69_0.tar.gz?viasf=1 [following]
--2025-03-01 11:48:37-- https://deac-fra.dl.sourceforge.net/project/boost/boost/1.69.0/boost_1_69_0.tar.gz?viasf=1
Resolving deac-fra.dl.sourceforge.net (deac-fra.dl.sourceforge.net)... 37.203.33.33
Connecting to deac-fra.dl.sourceforge.net (deac-fra.dl.sourceforge.net)|37.203.33.33|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 111710205 (107M) [application/x-gzip]
Saving to: ‘boost_1_69_0.tar.gz.2’

boost_1_69_0.tar.gz.2 100%[=================================================>] 106.53M 12.6MB/s in 7.7s

2025-03-01 11:48:46 (13.9 MB/s) - ‘boost_1_69_0.tar.gz.2’ saved [111710205/111710205]

===ВВОД===

oleg@Computer:$ export boost_1_69_0=boost_1_69_0
oleg@Computer:
$ mkdir -p boost_1_69_0
oleg@Computer:$ cd boost_1_69_0
oleg@Computer:
/boost_1_69_0$

===ВЫВОД===
_

===ВВОД===

~$ tar -xzf boost_1_69_0.tar.gz.2 -C /home/oleg/boost_1_69_0

===ВЫВОД===
_

===ВВОД===

~/boost_1_69_0$ find ~/boost_1_69_0 -type f -name "*.hpp" | wc -l

===ВЫВОД===

14912

===ВВОД===

~/boost_1_69_0$ find ~/boost_1_69_0 -type f -name "*.cpp" | wc -l

===ВЫВОД===

13774

===ВВОД===

~/boost_1_69_0$ find ~/boost_1_69_0 -type f -not -name ".cpp" -not -name ".hpp" | wc -l

===ВЫВОД===

32505

===ВВОД===

~/boost_1_69_0$ find ~/boost_1_69_0/boost_1_69_0 -name "any.hpp"

===ВЫВОД===

/home/oleg/boost_1_69_0/boost_1_69_0/boost/spirit/home/support/algorithm/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/type_erasure/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/proto/detail/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/fusion/algorithm/query/detail/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/fusion/algorithm/query/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/fusion/include/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/xpressive/detail/utility/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/hana/fwd/any.hpp
/home/oleg/boost_1_69_0/boost_1_69_0/boost/hana/any.hpp

===ВВОД===

~/boost_1_69_0$ grep -rl "boost::asio" ~/boost_1_69_0

===ВЫВОД===

/home/oleg/boost_1_69_0/boost_1_69_0/libs/phoenix/example/adapted_echo_server.cpp
/home/oleg/boost_1_69_0/boost_1_69_0/libs/coroutine/doc/html/coroutine/motivation.html
/home/oleg/boost_1_69_0/boost_1_69_0/libs/coroutine/doc/coro.qbk
/home/oleg/boost_1_69_0/boost_1_69_0/libs/coroutine/doc/motivation.qbk
/home/oleg/boost_1_69_0/boost_1_69_0/libs/log/src/syslog_backend.cpp
/home/oleg/boost_1_69_0/boost_1_69_0/libs/log/doc/tmp/sinks_reference.xml
/home/oleg/boost_1_69_0/boost_1_69_0/libs/coroutine2/doc/coro.qbk
/home/oleg/boost_1_69_0/boost_1_69_0/libs/coroutine2/doc/motivation.qbk
/home/oleg/boost_1_69_0/boost_1_69_0/libs/thread/test/test_9303.cpp
/home/oleg/boost_1_69_0/boost_1_69_0/libs/process/example/wait.cpp
/home/oleg/boost_1_69_0/boost_1_69_0/libs/process/example/io.cpp
/home/oleg/boost_1_69_0/boost_1_69_0/libs/process/example/async_io.cpp
/home/oleg/boost_1_69_0/boost_1_69_0/libs/process/doc/tutorial.qbk

остальное
https://gist.github.com/Olegium/2c96397324e683004e4ca13afec88310

===ВВОД===

~/boost_1_69_0$ sudo apt update
~/boost_1_69_0$ sudo apt install build-essential
~/boost_1_69_0$ cd ~/boost_1_69_0
~/boost_1_69_0/boost_1_69_0$ . /bootstrap.sh
~/boost_1_69_0/boost_1_69_0$ ./b2

===ВЫВОД===

sudo apt update
[sudo] password for oleg:
Sorry, try again.
[sudo] password for oleg:
Sorry, try again.
[sudo] password for oleg:
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
62 packages can be upgraded. Run 'apt list --upgradable' to see them.
Performing configuration checks

- default address-model    : 64-bit (cached)
- default architecture     : x86 (cached)

Building the Boost C++ Libraries.

- C++11 mutex              : yes (cached)
- lockfree boost::atomic_flag : yes (cached)
- Boost.Config Feature Check: cxx11_auto_declarations : yes (cached)
- Boost.Config Feature Check: cxx11_constexpr : yes (cached)
- Boost.Config Feature Check: cxx11_defaulted_functions : yes (cached)
- Boost.Config Feature Check: cxx11_final : yes (cached)
- Boost.Config Feature Check: cxx11_hdr_mutex : yes (cached)
- Boost.Config Feature Check: cxx11_hdr_tuple : yes (cached)
- Boost.Config Feature Check: cxx11_lambdas : yes (cached)
- Boost.Config Feature Check: cxx11_noexcept : yes (cached)
- Boost.Config Feature Check: cxx11_nullptr : yes (cached)
- Boost.Config Feature Check: cxx11_rvalue_references : yes (cached)
- Boost.Config Feature Check: cxx11_template_aliases : yes (cached)
- Boost.Config Feature Check: cxx11_thread_local : yes (cached)
- Boost.Config Feature Check: cxx11_variadic_templates : yes (cached)
- has_icu builds           : yes (cached)

sudo apt update
вывод
https://gist.github.com/Olegium/e227f54299732ccd05add7f511135e5a

sudo apt install build-essential
вывод
https://gist.github.com/Olegium/34abcd3c7fc18ac80117c444900ad49d

. /bootstrap.sh
вывод
https://gist.github.com/Olegium/ad767a2c0108ec19b3aa0e6b4bbfcef9

./b2
вывод
https://gist.github.com/Olegium/5c777aa752aafa4971c329c054d7b9e5

===ВВОД===

~/boost_1_69_0/boost_1_69_0$ mkdir -p ~/boost-libs
~/boost_1_69_0/boost_1_69_0$ find ~/boost_1_69_0 -name "*.a" -exec mv {} ~/boost-libs/ ;

===ВЫВОД===

===ВВОД===

~/boost_1_69_0/boost_1_69_0$ du -h ~/boost_1_69_0/*

===ВЫВОД===

7.3M /home/oleg/boost_1_69_0/boost_1_69_0/stage/lib
7.3M /home/oleg/boost_1_69_0/boost_1_69_0/stage
4.1M /home/oleg/boost_1_69_0/boost_1_69_0/status
48K /home/oleg/boost_1_69_0/boost_1_69_0/more/writingdoc/template
104K /home/oleg/boost_1_69_0/boost_1_69_0/more/writingdoc
80K /home/oleg/boost_1_69_0/boost_1_69_0/more/getting_started/detail
220K /home/oleg/boost_1_69_0/boost_1_69_0/more/getting_started
592K /home/oleg/boost_1_69_0/boost_1_69_0/more
56K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone/ac/gcc-13.3.0/release/threading-multi/visibility-hidden
60K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone/ac/gcc-13.3.0/release/threading-multi
56K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone/ac/gcc-13.3.0/release/link-static/threading-multi/visibility-hidden
60K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone/ac/gcc-13.3.0/release/link-static/threading-multi
64K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone/ac/gcc-13.3.0/release/link-static
128K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone/ac/gcc-13.3.0/release
132K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone/ac/gcc-13.3.0
184K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone/ac
188K /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/standalone
155M /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/libs/math/build/gcc-13.3.0/release/threading-multi/src/tr1
155M /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/libs/math/build/gcc-13.3.0/release/threading-multi/src
11M /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/libs/math/build/gcc-13.3.0/release/threading-multi/visibility-hidden
166M /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/libs/math/build/gcc-13.3.0/release/threading-multi
155M /home/oleg/boost_1_69_0/boost_1_69_0/bin.v2/libs/math/build/gcc-13.3.0/release/link-static/threading-multi/src/tr1

вывод
https://gist.github.com/Olegium/ef56a09e35d9a5a65e5ec3b736e427ce

===ВВОД===

~/boost_1_69_0/boost_1_69_0$ du -ah ~/boost-libs | sort -rh | head -10

===ВЫВОД===

28M /home/oleg/boost-libs
4.5M /home/oleg/boost-libs/libboost_wave.a
3.2M /home/oleg/boost-libs/libboost_regex.a
2.7M /home/oleg/boost-libs/libboost_math_tr1l.a
2.7M /home/oleg/boost-libs/libboost_math_tr1.a
2.6M /home/oleg/boost-libs/libboost_math_tr1f.a
2.3M /home/oleg/boost-libs/libboost_unit_test_framework.a
2.3M /home/oleg/boost-libs/libboost_test_exec_monitor.a
1.6M /home/oleg/boost-libs/libboost_program_options.a
1.2M /home/oleg/boost-libs/libboost_serialization.a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions