$ sudo apt install git
念のため(Ubuntuのインストール方法によっては,root権限がついている場合があるので)
$ sudo chown -R user_name:user_name .cache
ここから下は,下記を参照
https://github.com/gnuradio/pybombs#pybombs
$ sudo apt install python3 (すでにインストール済み)
$ sudo apt install python3-pip
$ sudo pip3 install --upgrade git+https://github.com/gnuradio/pybombs.git
The directory '/home/user_name/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user_name/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting git+https://github.com/gnuradio/pybombs.git
Cloning https://github.com/gnuradio/pybombs.git to /tmp/pip-dfau_g34-build
Collecting future (from PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB)
100% |████████████████████████████████| 829kB 1.5MB/s
Collecting requests (from PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 2.8MB/s
Collecting ruamel.yaml>=0.15.0 (from PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/a6/92/59af3e38227b9cc14520bf1e59516d99ceca53e3b8448094248171e9432b/ruamel.yaml-0.16.10-py2.py3-none-any.whl (111kB)
100% |████████████████████████████████| 112kB 4.7MB/s
Collecting setuptools (from PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/3d/72/1c1498c1e908e0562b1e1cd30012580baa7d33b5b0ffdbeb5fde2462cc71/setuptools-45.2.0-py3-none-any.whl (584kB)
100% |████████████████████████████████| 593kB 1.6MB/s
Collecting six (from PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
100% |████████████████████████████████| 163kB 3.7MB/s
Collecting idna<3,>=2.5 (from requests->PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 6.1MB/s
Requirement already up-to-date: chardet<4,>=3.0.2 in /usr/lib/python3/dist-packages (from requests->PyBOMBS==2.3.4a0)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests->PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl (125kB)
100% |████████████████████████████████| 133kB 4.9MB/s
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9" (from ruamel.yaml>=0.15.0->PyBOMBS==2.3.4a0)
Downloading https://files.pythonhosted.org/packages/53/77/4bcd63f362bcb6c8f4f06253c11f9772f64189bf08cf3f40c5ccbda9e561/ruamel.yaml.clib-0.2.0-cp36-cp36m-manylinux1_x86_64.whl (548kB)
100% |████████████████████████████████| 552kB 1.4MB/s
Installing collected packages: future, certifi, idna, urllib3, requests, ruamel.yaml.clib, ruamel.yaml, setuptools, six, PyBOMBS
Running setup.py install for future ... done
Found existing installation: certifi 2018.1.18
Not uninstalling certifi at /usr/lib/python3/dist-packages, outside environment /usr
Found existing installation: idna 2.6
Not uninstalling idna at /usr/lib/python3/dist-packages, outside environment /usr
Found existing installation: urllib3 1.22
Not uninstalling urllib3 at /usr/lib/python3/dist-packages, outside environment /usr
Found existing installation: requests 2.18.4
Not uninstalling requests at /usr/lib/python3/dist-packages, outside environment /usr
Found existing installation: setuptools 39.0.1
Not uninstalling setuptools at /usr/lib/python3/dist-packages, outside environment /usr
Found existing installation: six 1.11.0
Not uninstalling six at /usr/lib/python3/dist-packages, outside environment /usr
Running setup.py install for PyBOMBS ... done
Successfully installed PyBOMBS-2.3.4a0 certifi-2019.11.28 future-0.18.2 idna-2.9 requests-2.23.0 ruamel.yaml-0.16.10 ruamel.yaml.clib-0.2.0 setuptools-45.2.0 six-1.14.0 urllib3-1.25.8
$ pybombs auto-config
[INFO] Prefix Python version is: 3.6.9
[INFO] PyBOMBS Version 2.3.4a0
[INFO] Using config file: None
$ pybombs recipes add-defaults
[INFO] Prefix Python version is: 3.6.9
[INFO] PyBOMBS Version 2.3.4a0
[INFO] Creating new git cache in /home/user_name/.pybombs/gitcache
remote: Enumerating objects: 1783, done.
remote: Total 1783 (delta 0), reused 0 (delta 0), pack-reused 1783
Receiving objects: 100% (1783/1783), 354.30 KiB | 728.00 KiB/s, done.
Resolving deltas: 100% (1460/1460), done.
From https://github.com/gnuradio/gr-recipes
* [new branch] homebrew -> gr-recipes/homebrew
* [new branch] master -> gr-recipes/master
Cloning into 'gr-recipes'...
warning: no common commits
remote: Enumerating objects: 83, done.
remote: Counting objects: 100% (83/83), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 476 (delta 54), reused 58 (delta 42), pack-reused 393
Receiving objects: 100% (476/476), 92.23 KiB | 340.00 KiB/s, done.
Resolving deltas: 100% (317/317), done.
From https://github.com/gnuradio/gr-etcetera
* [new branch] master -> gr-etcetera/master
Cloning into 'gr-etcetera'...
現在のデフォルトバージョン(つまり最新のRelease版)のGNU Radioをホームディレクトリの gr38 フォルダにインストールする.
$ pybombs prefix init ~/gr38 -R gnuradio-default
(ここから先は長い.30分間とか60分間くらいを覚悟.マシンとネットワークが早ければ,早くなるかも.)
[INFO] Executing command with elevated privileges: `sudo -H apt-get -y install libfftw3-3'
[INFO] Executing command with elevated privileges: `sudo -H apt-get -y install libfftw3-dev'
[INFO] Executing command with elevated privileges: `sudo -H apt-get -y install swig3.0'
[INFO] Executing command with elevated privileges: `sudo -H apt-get -y install libfftw3-dev'
[INFO] Executing command with elevated privileges: `sudo -H apt-get -y install libgmp-dev'
[INFO] Executing command with elevated privileges: `sudo -H apt-get -y install libasound2-dev'
:
: (この間,多数の依存パッケージがインストールされる)
:
[INFO] Executing command with elevated privileges: `sudo -H apt-get -y install libusb-1.0-0-dev'
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
以下のパッケージが自動でインストールされましたが、もう必要とされていません:
gir1.2-geocodeglib-1.0 libfwup1 libllvm8 libwayland-egl1-mesa ubuntu-web-launchers
これを削除するには 'sudo apt autoremove' を利用してください。
以下の追加パッケージがインストールされます:
libusb-1.0-doc
以下のパッケージが新たにインストールされます:
libusb-1.0-0-dev libusb-1.0-doc
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 6 個。
230 kB のアーカイブを取得する必要があります。
この操作後に追加で 1,774 kB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 libusb-1.0-0-dev amd64 2:1.0.21-2 [60.5 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 libusb-1.0-doc all 2:1.0.21-2 [170 kB]
230 kB を 0秒 で取得しました (1,934 kB/s)
以前に未選択のパッケージ libusb-1.0-0-dev:amd64 を選択しています。
(データベースを読み込んでいます ... 現在 211204 個のファイルとディレクトリがインストールされています。)
.../libusb-1.0-0-dev_2%3a1.0.21-2_amd64.deb を展開する準備をしています ...
libusb-1.0-0-dev:amd64 (2:1.0.21-2) を展開しています...
以前に未選択のパッケージ libusb-1.0-doc を選択しています。
.../libusb-1.0-doc_2%3a1.0.21-2_all.deb を展開する準備をしています ...
libusb-1.0-doc (2:1.0.21-2) を展開しています...
libusb-1.0-doc (2:1.0.21-2) を設定しています ...
libusb-1.0-0-dev:amd64 (2:1.0.21-2) を設定しています ...
Install tree:
|
\- gnuradio
|
\- uhd
[INFO] Phase 1 complete: All binary dependencies installed.
[INFO] Phase 2: Recursively installing source packages to prefix:
[INFO] Installing package: uhd
warning: no common commits
remote: Enumerating objects: 2613, done.
remote: Counting objects: 100% (2613/2613), done.
remote: Compressing objects: 100% (1801/1801), done.
remote: Total 92199 (delta 851), reused 2352 (delta 764), pack-reused 89586
Receiving objects: 100% (92199/92199), 123.45 MiB | 10.43 MiB/s, done.
Resolving deltas: 100% (71032/71032), done.
From https://github.com/EttusResearch/uhd
* [new branch] UHD-3.10 -> uhd/UHD-3.10
* [new branch] UHD-3.11 -> uhd/UHD-3.11
* [new branch] UHD-3.12 -> uhd/UHD-3.12
* [new branch] UHD-3.13 -> uhd/UHD-3.13
* [new branch] UHD-3.14 -> uhd/UHD-3.14
* [new branch] UHD-3.14.L -> uhd/UHD-3.14.L
* [new branch] UHD-3.15.LTS -> uhd/UHD-3.15.LTS
* [new branch] UHD-3.9.LTS -> uhd/UHD-3.9.LTS
* [new branch] master -> uhd/master
* [new branch] rfnoc-devel -> uhd/rfnoc-devel
* [new branch] rfnoc-ofdm -> uhd/rfnoc-ofdm
* [new branch] x300_fp_gpio_fix -> uhd/x300_fp_gpio_fix
* [new tag] release_003_010_003_000 -> release_003_010_003_000
* [new tag] v3.11.1.0 -> v3.11.1.0
* [new tag] v3.14.1.1 -> v3.14.1.1
* [new tag] v3.14.1.1.L -> v3.14.1.1.L
* [new tag] 003_007_002_rc1 -> 003_007_002_rc1
* [new tag] 003_007_003_rc1 -> 003_007_003_rc1
* [new tag] 003_008_000_rc1 -> 003_008_000_rc1
* [new tag] 003_008_002_rc1 -> 003_008_002_rc1
* [new tag] 003_008_003_rc1 -> 003_008_003_rc1
* [new tag] 003_008_004_rc1 -> 003_008_004_rc1
* [new tag] 003_008_005_rc1 -> 003_008_005_rc1
* [new tag] 003_009_000_rc1 -> 003_009_000_rc1
* [new tag] 003_009_002_rc1 -> 003_009_002_rc1
* [new tag] 003_009_003_rc1 -> 003_009_003_rc1
* [new tag] 003_009_004_rc1 -> 003_009_004_rc1
* [new tag] 003_009_005_rc1 -> 003_009_005_rc1
* [new tag] 003_009_006_rc1 -> 003_009_006_rc1
* [new tag] 003_009_007_rc1 -> 003_009_007_rc1
* [new tag] 003_010_001_000_rc1 -> 003_010_001_000_rc1
* [new tag] 003_010_001_000_rc2 -> 003_010_001_000_rc2
* [new tag] 003_010_001_001_rc1 -> 003_010_001_001_rc1
* [new tag] 003_010_002_000_rc1 -> 003_010_002_000_rc1
* [new tag] 003_010_003_000_rc1 -> 003_010_003_000_rc1
* [new tag] 003_010_003_000_rc2 -> 003_010_003_000_rc2
* [new tag] 003_011_000_000_rc1 -> 003_011_000_000_rc1
* [new tag] 003_011_000_001_rc1 -> 003_011_000_001_rc1
* [new tag] grcon_2016 -> grcon_2016
* [new tag] n310_release-0.1 -> n310_release-0.1
* [new tag] release_003_000_000 -> release_003_000_000
* [new tag] release_003_000_001 -> release_003_000_001
* [new tag] release_003_001_000 -> release_003_001_000
* [new tag] release_003_001_001 -> release_003_001_001
* [new tag] release_003_001_002 -> release_003_001_002
* [new tag] release_003_002_000 -> release_003_002_000
* [new tag] release_003_002_001 -> release_003_002_001
* [new tag] release_003_002_002 -> release_003_002_002
* [new tag] release_003_002_003 -> release_003_002_003
* [new tag] release_003_003_000 -> release_003_003_000
* [new tag] release_003_003_001 -> release_003_003_001
* [new tag] release_003_004_000 -> release_003_004_000
* [new tag] release_003_004_001 -> release_003_004_001
* [new tag] release_003_004_002 -> release_003_004_002
* [new tag] release_003_004_003 -> release_003_004_003
* [new tag] release_003_004_004 -> release_003_004_004
* [new tag] release_003_004_005 -> release_003_004_005
* [new tag] release_003_005_000 -> release_003_005_000
* [new tag] release_003_005_001 -> release_003_005_001
* [new tag] release_003_005_002 -> release_003_005_002
* [new tag] release_003_005_003 -> release_003_005_003
* [new tag] release_003_005_004 -> release_003_005_004
* [new tag] release_003_005_005 -> release_003_005_005
* [new tag] release_003_006_000 -> release_003_006_000
* [new tag] release_003_006_001 -> release_003_006_001
* [new tag] release_003_006_002 -> release_003_006_002
* [new tag] release_003_007_000 -> release_003_007_000
* [new tag] release_003_007_001 -> release_003_007_001
* [new tag] release_003_007_002 -> release_003_007_002
* [new tag] release_003_007_003 -> release_003_007_003
* [new tag] release_003_008_000 -> release_003_008_000
* [new tag] release_003_008_001 -> release_003_008_001
* [new tag] release_003_008_002 -> release_003_008_002
* [new tag] release_003_008_003 -> release_003_008_003
* [new tag] release_003_008_003-1 -> release_003_008_003-1
* [new tag] release_003_008_004 -> release_003_008_004
* [new tag] release_003_008_005 -> release_003_008_005
* [new tag] release_003_009_000 -> release_003_009_000
* [new tag] release_003_009_001 -> release_003_009_001
* [new tag] release_003_009_002 -> release_003_009_002
* [new tag] release_003_009_003 -> release_003_009_003
* [new tag] release_003_009_004 -> release_003_009_004
* [new tag] release_003_009_005 -> release_003_009_005
* [new tag] release_003_009_006 -> release_003_009_006
* [new tag] release_003_009_007 -> release_003_009_007
* [new tag] release_003_010_000_000 -> release_003_010_000_000
* [new tag] release_003_010_001_000 -> release_003_010_001_000
* [new tag] release_003_010_001_001 -> release_003_010_001_001
* [new tag] release_003_010_002_000 -> release_003_010_002_000
* [new tag] release_003_011_000_000 -> release_003_011_000_000
* [new tag] release_003_011_000_001 -> release_003_011_000_001
* [new tag] v3.11.0.0 -> v3.11.0.0
* [new tag] v3.11.0.1 -> v3.11.0.1
* [new tag] v3.11.0.1-20180419 -> v3.11.0.1-20180419
* [new tag] v3.11.0.1-rc1 -> v3.11.0.1-rc1
* [new tag] v3.11.1.0-rc1 -> v3.11.1.0-rc1
* [new tag] v3.12.0.0 -> v3.12.0.0
* [new tag] v3.12.0.0-rc1 -> v3.12.0.0-rc1
* [new tag] v3.12.0.1-rc1 -> v3.12.0.1-rc1
* [new tag] v3.13.0.0 -> v3.13.0.0
* [new tag] v3.13.0.0-rc1 -> v3.13.0.0-rc1
* [new tag] v3.13.0.1 -> v3.13.0.1
* [new tag] v3.13.0.2 -> v3.13.0.2
* [new tag] v3.13.0.3-rc1 -> v3.13.0.3-rc1
* [new tag] v3.13.1.0 -> v3.13.1.0
* [new tag] v3.13.1.0-rc1 -> v3.13.1.0-rc1
* [new tag] v3.13.1.0-rc2 -> v3.13.1.0-rc2
* [new tag] v3.14.0.0 -> v3.14.0.0
* [new tag] v3.14.0.0-a0-20181220 -> v3.14.0.0-a0-20181220
* [new tag] v3.14.0.0-a1-20181220 -> v3.14.0.0-a1-20181220
* [new tag] v3.14.0.0-rc1 -> v3.14.0.0-rc1
* [new tag] v3.14.0.0-rc3 -> v3.14.0.0-rc3
* [new tag] v3.14.1.0 -> v3.14.1.0
* [new tag] v3.14.1.0-rc1 -> v3.14.1.0-rc1
* [new tag] v3.14.1.1-rc1 -> v3.14.1.1-rc1
* [new tag] v3.15.0.0 -> v3.15.0.0
* [new tag] v3.15.0.0-e310_prerelease -> v3.15.0.0-e310_prerelease
* [new tag] v3.15.0.0-rc2 -> v3.15.0.0-rc2
* [new tag] v3.15.0.0-rc3 -> v3.15.0.0-rc3
Cloning into 'uhd'...
remote: Enumerating objects: 79, done.
remote: Counting objects: 100% (79/79), done.
remote: Total 120 (delta 79), reused 79 (delta 79), pack-reused 41
Receiving objects: 100% (120/120), 11.06 KiB | 96.00 KiB/s, done.
Resolving deltas: 100% (91/91), completed with 29 local objects.
Configuring: (100%) [===================================================================================]
Building: (100%) [===================================================================================]
Installing: (100%) [===================================================================================]
[INFO] Installation successful.
Cloning into 'gnuradio'...
remote: Enumerating objects: 1164, done.
remote: Counting objects: 100% (1164/1164), done.
remote: Total 2892 (delta 1164), reused 1164 (delta 1164), pack-reused 1728
Receiving objects: 100% (2892/2892), 1.28 MiB | 1.57 MiB/s, done.
Resolving deltas: 100% (2315/2315), completed with 322 local objects.
Submodule 'volk' (https://github.com/gnuradio/volk.git) registered for path 'volk'
submodule 'volk' cannot add alternate: path '/home/user_name/.pybombs/gitcache/modules/volk/' does not existCloning into '/home/user_name/gr38/src/gnuradio/volk'...
remote: Enumerating objects: 76, done.
remote: Counting objects: 100% (76/76), done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 8824 (delta 27), reused 37 (delta 14), pack-reused 8748
Receiving objects: 100% (8824/8824), 2.43 MiB | 2.46 MiB/s, done.
Resolving deltas: 100% (6049/6049), done.
Submodule path 'volk': checked out '1299d72c396a88fd2679adfd7a919ac00d2cf678'
Configuring: (100%) [===================================================================================]
Building: (100%) [===================================================================================]
Installing: (100%) [===================================================================================]
[INFO] Installation successful.
[INFO] Phase 2 complete: All source packages installed.
$ source ~/gr38/setup_env.sh
$ gnuradio-companion
$ gnuradio-companion
Gtk-Message: 21:48:16.890: GtkDialog mapped without a transient parent. This is discouraged.
$ uhd_images_downloader
[INFO] Images destination: /home/user_name/gr38/share/uhd/images
[INFO] No inventory file found at /home/user_name/gr38/share/uhd/images/inventory.json. Creating an empty one.
19293 kB / 19293 kB (100%) x3xx_x310_fpga_default-g9ba275de.zip
18721 kB / 18721 kB (100%) x3xx_x300_fpga_default-g9ba275de.zip
01534 kB / 01534 kB (100%) e3xx_e310_sg1_fpga_default-gfde2a94e.zip
01522 kB / 01522 kB (100%) e3xx_e310_sg3_fpga_default-gfde2a94e.zip
09070 kB / 09070 kB (100%) e3xx_e320_fpga_default-gfde2a94e.zip
23158 kB / 23158 kB (100%) n3xx_n310_fpga_default-g9ba275de.zip
16165 kB / 16165 kB (100%) n3xx_n300_fpga_default-g9ba275de.zip
25060 kB / 25060 kB (100%) n3xx_n320_fpga_default-g9ba275de.zip
00479 kB / 00479 kB (100%) b2xx_b200_fpga_default-gfde2a94e.zip
00464 kB / 00464 kB (100%) b2xx_b200mini_fpga_default-gfde2a94e.zip
00879 kB / 00879 kB (100%) b2xx_b210_fpga_default-gfde2a94e.zip
00523 kB / 00523 kB (100%) b2xx_b205mini_fpga_default-gfde2a94e.zip
00162 kB / 00162 kB (100%) b2xx_common_fw_default-g2bdad498.zip
00007 kB / 00007 kB (100%) usrp2_usrp2_fw_default-g6bea23d.zip
00450 kB / 00450 kB (100%) usrp2_usrp2_fpga_default-g6bea23d.zip
02415 kB / 02415 kB (100%) usrp2_n200_fpga_default-g6bea23d.zip
00009 kB / 00009 kB (100%) usrp2_n200_fw_default-g6bea23d.zip
02757 kB / 02757 kB (100%) usrp2_n210_fpga_default-g6bea23d.zip
00009 kB / 00009 kB (100%) usrp2_n210_fw_default-g6bea23d.zip
02076 kB / 02076 kB (100%) n230_n230_fpga_default-gfde2a94e.zip
00319 kB / 00319 kB (100%) usrp1_usrp1_fpga_default-g6bea23d.zip
00522 kB / 00522 kB (100%) usrp1_b100_fpga_default-g6bea23d.zip
00006 kB / 00006 kB (100%) usrp1_b100_fw_default-g6bea23d.zip
00017 kB / 00017 kB (100%) octoclock_octoclock_fw_default-g14000041.zip
04839 kB / 04839 kB (100%) usb_common_windrv_default-g14000041.zip
[INFO] Images download complete.
続きを隠す<<