ex_rat
Alors, j'ai bien re tenté l'installation sur un serveur vierge, toujours la même erreur.
../rak/priority_queue_default.h:56:95: note: in C++11 destructors default to noexcept
mv -f .deps/command_ui.Tpo .deps/command_ui.Po
rm -f libsub_root.a
ar cru libsub_root.a command_download.o command_dynamic.o command_events.o command_file.o command_ip.o command_helpers.o command_groups.o command_local.o command_logging.o command_network.o command_peer.o command_throttle.o command_tracker.o command_scheduler.o command_ui.o control.o globals.o option_parser.o signal_handler.o thread_base.o thread_worker.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libsub_root.a
In file included from rpc/command_map.h:45:0,
from rpc/parse_commands.h:43,
from main.cc:73:
rpc/command.h: In instantiation of ‘tmpl& rpc::command_base::_pod() [with tmpl = std::function<torrent::Object(rpc::rt_triple<int, void*, void*>, const torrent::Object&)>]’:
rpc/command.h:163:46: required from here
rpc/command.h:193:50: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
template <typename tmpl> tmpl& _pod() { return reinterpret_cast<tmpl&>(t_pod); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rpc/command.h: In instantiation of ‘const tmpl& rpc::command_base::_pod() const [with tmpl = std::function<torrent::Object(rpc::rt_triple<int, void*, void*>, const torrent::Object&)>]’:
rpc/command.h:164:110: required from here
rpc/command.h:194:62: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
template <typename tmpl> const tmpl& _pod() const { return reinterpret_cast<const tmpl&>(t_pod); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f .deps/main.Tpo .deps/main.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -DNDEBUG -Wall -I/usr/local/include -pthread -I/usr/include/x86_64-linux-gnu -I/usr/local/include -o rtorrent main.o libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncursesw -ltinfo -lcppunit -lcurl -L/usr/local/lib -ltorrent -L/usr/local/lib -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -lpthread
libtool: link: g++ -g -O2 -DNDEBUG -Wall -I/usr/local/include -pthread -I/usr/include/x86_64-linux-gnu -I/usr/local/include -o rtorrent main.o libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncursesw -ltinfo -lcppunit /usr/lib/x86_64-linux-gnu/libcurl.so -L/usr/local/lib /usr/local/lib/libtorrent.so -lxmlrpc_server -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_util -lpthread -pthread
make[3]: Leaving directory '/tmp/rtorrent/src'
make[2]: Leaving directory '/tmp/rtorrent/src'
Making all in test
make[2]: Entering directory '/tmp/rtorrent/test'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/rtorrent/test'
make[2]: Entering directory '/tmp/rtorrent'
make[2]: Leaving directory '/tmp/rtorrent'
make[1]: Leaving directory '/tmp/rtorrent'
Making install in doc
make[1]: Entering directory '/tmp/rtorrent/doc'
make[2]: Entering directory '/tmp/rtorrent/doc'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/rtorrent/doc'
make[1]: Leaving directory '/tmp/rtorrent/doc'
Making install in src
make[1]: Entering directory '/tmp/rtorrent/src'
Making install in core
make[2]: Entering directory '/tmp/rtorrent/src/core'
make[3]: Entering directory '/tmp/rtorrent/src/core'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/rtorrent/src/core'
make[2]: Leaving directory '/tmp/rtorrent/src/core'
Making install in display
make[2]: Entering directory '/tmp/rtorrent/src/display'
make[3]: Entering directory '/tmp/rtorrent/src/display'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/rtorrent/src/display'
make[2]: Leaving directory '/tmp/rtorrent/src/display'
Making install in input
make[2]: Entering directory '/tmp/rtorrent/src/input'
make[3]: Entering directory '/tmp/rtorrent/src/input'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/rtorrent/src/input'
make[2]: Leaving directory '/tmp/rtorrent/src/input'
Making install in rpc
make[2]: Entering directory '/tmp/rtorrent/src/rpc'
make[3]: Entering directory '/tmp/rtorrent/src/rpc'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/rtorrent/src/rpc'
make[2]: Leaving directory '/tmp/rtorrent/src/rpc'
Making install in ui
make[2]: Entering directory '/tmp/rtorrent/src/ui'
make[3]: Entering directory '/tmp/rtorrent/src/ui'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/rtorrent/src/ui'
make[2]: Leaving directory '/tmp/rtorrent/src/ui'
Making install in utils
make[2]: Entering directory '/tmp/rtorrent/src/utils'
make[3]: Entering directory '/tmp/rtorrent/src/utils'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/rtorrent/src/utils'
make[2]: Leaving directory '/tmp/rtorrent/src/utils'
make[2]: Entering directory '/tmp/rtorrent/src'
make[3]: Entering directory '/tmp/rtorrent/src'
/bin/mkdir -p '/usr/local/bin'
/bin/bash ../libtool --mode=install /usr/bin/install -c rtorrent '/usr/local/bin'
libtool: install: /usr/bin/install -c rtorrent /usr/local/bin/rtorrent
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/tmp/rtorrent/src'
make[2]: Leaving directory '/tmp/rtorrent/src'
make[1]: Leaving directory '/tmp/rtorrent/src'
Making install in test
make[1]: Entering directory '/tmp/rtorrent/test'
make[2]: Entering directory '/tmp/rtorrent/test'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/rtorrent/test'
make[1]: Leaving directory '/tmp/rtorrent/test'
make[1]: Entering directory '/tmp/rtorrent'
make[2]: Entering directory '/tmp/rtorrent'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/tmp/rtorrent'
make[1]: Leaving directory '/tmp/rtorrent'
Installing rTorrent v0.9.8 Done !
Cloning into '/var/www/rutorrent'...
remote: Enumerating objects: 70, done.
remote: Counting objects: 100% (70/70), done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 26688 (delta 35), reused 24 (delta 10), pack-reused 26618
Receiving objects: 100% (26688/26688), 7.90 MiB | 7.67 MiB/s, done.
Resolving deltas: 100% (17861/17861), done.
Installing ruTorrent Done !
Cloning into 'rutorrent-plugins-pack'...
remote: Enumerating objects: 910, done.
remote: Counting objects: 100% (910/910), done.
remote: Compressing objects: 100% (749/749), done.
remote: Total 910 (delta 180), reused 879 (delta 154), pack-reused 0
Receiving objects: 100% (910/910), 2.39 MiB | 3.70 MiB/s, done.
Resolving deltas: 100% (180/180), done.
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/b2/86/095d2f7829badc207c893dd4ac767e871f6cd547145df797ea26baea4e2e/setuptools-41.2.0-py2.py3-none-any.whl (576kB)
Installing collected packages: setuptools
Found existing installation: setuptools 33.1.1
Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed setuptools-41.2.0
Collecting cloudscraper
Downloading https://files.pythonhosted.org/packages/e1/6f/1aee5d80c4cc28a75bb56481d1c432307366e7b2724d052f46f69a2b9bfe/cloudscraper-1.1.42-py2.py3-none-any.whl (101kB)
Collecting pyopenssl>=17.0 (from cloudscraper)
Downloading https://files.pythonhosted.org/packages/01/c8/ceb170d81bd3941cbeb9940fc6cc2ef2ca4288d0ca8929ea4db5905d904d/pyOpenSSL-19.0.0-py2.py3-none-any.whl (53kB)
Collecting requests-toolbelt>=0.9.1 (from cloudscraper)
Downloading https://files.pythonhosted.org/packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl (54kB)
Collecting requests>=2.9.2 (from cloudscraper)
Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
Collecting brotli>=1.0.7 (from cloudscraper)
Downloading https://files.pythonhosted.org/packages/c8/86/eaa80fbbee07e269b8eb3d26ae4e073f25d78ccd02397ce35ae229d40487/Brotli-1.0.7-cp27-cp27mu-manylinux1_x86_64.whl (352kB)
Collecting js2py>=0.60 (from cloudscraper)
Downloading https://files.pythonhosted.org/packages/7b/27/7b149ea4a6233fe26ba1d739304b495524146027ff017d80e44dbfbae8b1/Js2Py-0.66-py2-none-any.whl (1.0MB)
Collecting cryptography>=2.3 (from pyopenssl>=17.0->cloudscraper)
Downloading https://files.pythonhosted.org/packages/e6/68/50698ce24c61db7d44d93a5043c621a0ca7839d4ef9dff913e6ab465fc92/cryptography-2.7-cp27-cp27mu-manylinux1_x86_64.whl (2.3MB)
Requirement already satisfied: six>=1.5.2 in /usr/lib/python2.7/dist-packages (from pyopenssl>=17.0->cloudscraper)
Collecting idna<2.9,>=2.5 (from requests>=2.9.2->cloudscraper)
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.9.2->cloudscraper)
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting certifi>=2017.4.17 (from requests>=2.9.2->cloudscraper)
Downloading https://files.pythonhosted.org/packages/18/b0/8146a4f8dd402f60744fa380bc73ca47303cccf8b9190fd16a827281eac2/certifi-2019.9.11-py2.py3-none-any.whl (154kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.9.2->cloudscraper)
Downloading https://files.pythonhosted.org/packages/e6/60/247f23a7121ae632d62811ba7f273d0e58972d75e58a94d329d51550a47d/urllib3-1.25.3-py2.py3-none-any.whl (150kB)
Collecting tzlocal>=1.2 (from js2py>=0.60->cloudscraper)
Downloading https://files.pythonhosted.org/packages/ef/99/53bd1ac9349262f59c1c421d8fcc2559ae8a5eeffed9202684756b648d33/tzlocal-2.0.0-py2.py3-none-any.whl
Collecting pyjsparser>=2.5.1 (from js2py>=0.60->cloudscraper)
Downloading https://files.pythonhosted.org/packages/60/55/e12bac7066b7eaa4a2f5297d6c9d3b69954bfc4c785d5d9001384d910db6/pyjsparser-2.7.1-py2-none-any.whl
Requirement already satisfied: enum34; python_version < "3" in /usr/lib/python2.7/dist-packages (from cryptography>=2.3->pyopenssl>=17.0->cloudscraper)
Collecting asn1crypto>=0.21.0 (from cryptography>=2.3->pyopenssl>=17.0->cloudscraper)
Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
Collecting cffi!=1.11.3,>=1.8 (from cryptography>=2.3->pyopenssl>=17.0->cloudscraper)
Downloading https://files.pythonhosted.org/packages/8d/e9/0c8afd1579e5cf7bc0f06fbcd7cdb954cbc0baadd505973949a99337da1c/cffi-1.12.3-cp27-cp27mu-manylinux1_x86_64.whl (415kB)
Requirement already satisfied: ipaddress; python_version < "3" in /usr/lib/python2.7/dist-packages (from cryptography>=2.3->pyopenssl>=17.0->cloudscraper)
Collecting pytz (from tzlocal>=1.2->js2py>=0.60->cloudscraper)
Downloading https://files.pythonhosted.org/packages/87/76/46d697698a143e05f77bec5a526bf4e56a0be61d63425b68f4ba553b51f2/pytz-2019.2-py2.py3-none-any.whl (508kB)
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography>=2.3->pyopenssl>=17.0->cloudscraper)
Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
Building wheels for collected packages: pycparser
Running setup.py bdist_wheel for pycparser: started
Running setup.py bdist_wheel for pycparser: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
Successfully built pycparser
Installing collected packages: asn1crypto, pycparser, cffi, cryptography, pyopenssl, idna, chardet, certifi, urllib3, requests, requests-toolbelt, brotli, pytz, tzlocal, pyjsparser, js2py, cloudscraper
Found existing installation: cryptography 1.7.1
Not uninstalling cryptography at /usr/lib/python2.7/dist-packages, outside environment /usr
Found existing installation: idna 2.2
Not uninstalling idna at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed asn1crypto-0.24.0 brotli-1.0.7 certifi-2019.9.11 cffi-1.12.3 chardet-3.0.4 cloudscraper-1.1.42 cryptography-2.7 idna-2.8 js2py-0.66 pycparser-2.19 pyjsparser-2.7.1 pyopenssl-19.0.0 pytz-2019.2 requests-2.22.0 requests-toolbelt-0.9.1 tzlocal-2.0.0 urllib3-1.25.3
--2019-09-11 22:17:53-- https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
Resolving geolite.maxmind.com (geolite.maxmind.com)... 104.17.200.89, 104.17.201.89, 2606:4700::6811:c959, ...
Connecting to geolite.maxmind.com (geolite.maxmind.com)|104.17.200.89|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2019-09-11 22:17:53 ERROR 403: Forbidden.
tar (child): GeoLite2-City.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
/bin/tar: Child returned status 2
/bin/tar: Error is not recoverable: exiting now
bash: cd: /tmp/GeoLite2-City_*: No such file or directory
root@PAR-152791:/tmp/rutorrent-bonobox#
Est-ce qu'il y aurait pas moyen de récupérer le fichier mais sans passer par une requête HTTP. Car ça bloque de là non ? Ou alors une source externe ?
Je viens de lancer le script que tu viens d'écrire, et il fonctionne bien. Merci ! Est-ce que l'absence de geobase est "grave" ?