ubuntu-18.04-eveadm-testing-20200123
Для тестирования eveadm использовала виртуальную машину KVM с установленной системой Ubuntu 18.04, на которой тестировала EVE и YETUS.
Дистрибутив Ubuntu 18.04 (образ ubuntu-18.04.3-desktop-amd64.iso).
Память 2048 Мб.
Размер диска 30 Гб.
Язык установки English (US).
Вариант установки Normal installation.
Пользователь user.
Зашла с хостовой машины на тестовую виртуальную машину по ssh пользователем user:
inna@Inna-PC:~$ ssh user@имя_машины
На виртуальной машине выполнила git clone https://github.com/itmo-eve/eveadm
user@user-KVM:~$ git clone https://github.com/itmo-eve/eveadm
Cloning into 'eveadm'...
remote: Enumerating objects: 44, done.
remote: Counting objects: 100% (44/44), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 44 (delta 18), reused 41 (delta 17), pack-reused 0
Unpacking objects: 100% (44/44), done.
Перешла в каталог eveadm
user@user-KVM:~$ cd eveadm
Запустила команду make. Получила сообщение об ошибке:
user@user-KVM:~/eveadm$ make
go build github.com/itmo-eve/eveadm/
go: downloading github.com/spf13/cobra v0.0.5
go: downloading github.com/spf13/viper v1.6.1
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: extracting github.com/mitchellh/go-homedir v1.1.0
go: extracting github.com/spf13/viper v1.6.1
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: extracting github.com/spf13/cobra v0.0.5
go: downloading github.com/spf13/afero v1.1.2
go: extracting github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/magiconair/properties v1.8.1
go: extracting github.com/spf13/afero v1.1.2
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/spf13/pflag v1.0.3
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: extracting github.com/magiconair/properties v1.8.1
go: downloading golang.org/x/text v0.3.0
go: downloading github.com/pelletier/go-toml v1.2.0
go: extracting github.com/spf13/cast v1.3.0
go: downloading gopkg.in/ini.v1 v1.51.0
go: extracting github.com/spf13/pflag v1.0.3
go: extracting github.com/mitchellh/mapstructure v1.1.2
go: extracting github.com/hashicorp/hcl v1.0.0
go: extracting github.com/spf13/jwalterweatherman v1.0.0
go: downloading golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/yaml.v2 v2.2.4
go: extracting github.com/pelletier/go-toml v1.2.0
go: extracting gopkg.in/ini.v1 v1.51.0
go: extracting github.com/subosito/gotenv v1.2.0
go: extracting gopkg.in/yaml.v2 v2.2.4
go: extracting golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: extracting golang.org/x/text v0.3.0
go: finding github.com/mitchellh/go-homedir v1.1.0
go: finding github.com/spf13/cobra v0.0.5
go: finding github.com/spf13/pflag v1.0.3
go: finding github.com/spf13/viper v1.6.1
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding github.com/hashicorp/hcl v1.0.0
go: finding github.com/magiconair/properties v1.8.1
go: finding github.com/mitchellh/mapstructure v1.1.2
go: finding github.com/pelletier/go-toml v1.2.0
go: finding github.com/spf13/afero v1.1.2
go: finding golang.org/x/text v0.3.0
go: finding github.com/spf13/cast v1.3.0
go: finding github.com/spf13/jwalterweatherman v1.0.0
go: finding github.com/subosito/gotenv v1.2.0
go: finding gopkg.in/ini.v1 v1.51.0
go: finding gopkg.in/yaml.v2 v2.2.4
# github.com/itmo-eve/eveadm
/snap/go/4901/pkg/tool/linux_amd64/link: running gcc failed: exec: "gcc": executable file not found in $PATH
Makefile:9: recipe for target 'eveadm' failed
make: *** [eveadm] Error 2
Не установлен gcc. Установила при помощи команды sudo apt install gcc
user@user-KVM:~/eveadm$ sudo apt install gcc
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gcc-7 libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5 libgcc-7-dev
libitm1 liblsan0 libmpx2 libquadmath0 libtsan0 libubsan0 linux-libc-dev
manpages-dev
Suggested packages:
gcc-multilib autoconf automake libtool flex bison gcc-doc gcc-7-multilib
gcc-7-doc gcc-7-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg
libmpx2-dbg libquadmath0-dbg glibc-doc
The following NEW packages will be installed:
gcc gcc-7 libasan4 libatomic1 libc-dev-bin libc6-dev libcilkrts5
libgcc-7-dev libitm1 liblsan0 libmpx2 libquadmath0 libtsan0 libubsan0
linux-libc-dev manpages-dev
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 16,9 MB of archives.
After this operation, 73,5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Получила сообщение об ошибке
Err:14 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-72.81
404 Not Found [IP: 213.180.204.183 80]
Fetched 15,9 MB in 4s (3 570 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-72.81_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Выполнила apt-get update
user@user-KVM:~/eveadm$ sudo apt-get update
Ещё раз попробовала установить gcc
user@user-KVM:~/eveadm$ sudo apt install gcc
Ещё раз запустила команду make
user@user-KVM:~/eveadm$ make
go build github.com/itmo-eve/eveadm/
make -C plugins/test
make[1]: Entering directory '/home/user/eveadm/plugins/test'
go build -buildmode=plugin -o ../test.so test.go
make[1]: Leaving directory '/home/user/eveadm/plugins/test'
make -C plugins/rkt
make[1]: Entering directory '/home/user/eveadm/plugins/rkt'
go build -buildmode=plugin -o ../rkt.so rkt.go
make[1]: Leaving directory '/home/user/eveadm/plugins/rkt'
make -C plugins/xen
make[1]: Entering directory '/home/user/eveadm/plugins/xen'
go build -buildmode=plugin -o ../xen.so xen.go
make[1]: Leaving directory '/home/user/eveadm/plugins/xen'
go install github.com/itmo-eve/eveadm/
Выполнено успешно.