質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.47%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Vuls

Vulsとは、Linuxの脆弱性スキャンツールです。脆弱性情報を取得し、サーバにインストールされているソフトウェアの脆弱性を診断。詳細をレポーティングします。脆弱性検知を自動化できるため、サイバー攻撃などのリスクを低減できます。

Q&A

解決済

1回答

1986閲覧

【CentOS7】vulsインストールエラーについて

jam_ta

総合スコア0

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Vuls

Vulsとは、Linuxの脆弱性スキャンツールです。脆弱性情報を取得し、サーバにインストールされているソフトウェアの脆弱性を診断。詳細をレポーティングします。脆弱性検知を自動化できるため、サイバー攻撃などのリスクを低減できます。

0グッド

0クリップ

投稿2021/09/22 12:21

前提・実現したいこと

質問を見ていただきありがとうございます。
最近、Linuxをかじったばかりの初心者の質問だと思って
聞いていただけると助かります。

以下の記事を見ながらvulsのインストールを行っております。
https://qiita.com/takahashi-kazuki/items/7c75ba779b3af1e32bc0

記事中の
「4.go-cve-dictionaryのインストール」での make install 中に以下のエラーメッセージが
表示されました。

こちらのエラーに心当たりがある方がいたら
お力添えをしていただければ幸いです。

発生している問題・エラーメッセージ

[vuls@xxx go-cve-dictionary]$ make install
GO111MODULE=on go install -ldflags "-X 'github.com/vulsio/go-cve-dictionary/config.Version=v0.8.1' -X 'github.com/vulsio/go-cve-dictionary/config.Revision=d45a5f7'"
../../hashicorp/hcl/pos_scanner.go:7:2: cannot find package "github.com/apparentlymart/go-textseg/v13/textseg" in any of:
/usr/local/go/src/github.com/apparentlymart/go-textseg/v13/textseg (from $GOROOT)
/opt/vuls/go/src/github.com/apparentlymart/go-textseg/v13/textseg (from $GOPATH)
../../vulsio/go-cve-dictionary/db/redis.go:12:2: cannot find package "github.com/go-redis/redis/v8" in any of:
/usr/local/go/src/github.com/go-redis/redis/v8 (from $GOROOT)
/opt/vuls/go/src/github.com/go-redis/redis/v8 (from $GOPATH)
../../spf13/viper/internal/encoding/hcl/codec.go:8:2: cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:
/usr/local/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOROOT)
/opt/vuls/go/src/github.com/hashicorp/hcl/hcl/printer (from $GOPATH)
../../../gorm.io/driver/postgres/postgres.go:10:2: cannot find package "github.com/jackc/pgx/v4" in any of:
/usr/local/go/src/github.com/jackc/pgx/v4 (from $GOROOT)
/opt/vuls/go/src/github.com/jackc/pgx/v4 (from $GOPATH)
../../../gorm.io/driver/postgres/postgres.go:11:2: cannot find package "github.com/jackc/pgx/v4/stdlib" in any of:
/usr/local/go/src/github.com/jackc/pgx/v4/stdlib (from $GOROOT)
/opt/vuls/go/src/github.com/jackc/pgx/v4/stdlib (from $GOPATH)
../../labstack/echo/middleware/basic_auth.go:8:2: cannot find package "github.com/labstack/echo/v4" in any of:
/usr/local/go/src/github.com/labstack/echo/v4 (from $GOROOT)
/opt/vuls/go/src/github.com/labstack/echo/v4 (from $GOPATH)
make: *** [install] Error 1

【環境】
[vuls@xxx go-cve-dictionary]$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

【GO言語環境】
[vuls@xxx go-cve-dictionary]$ go version
go version go1.10.1 linux/amd64
[vuls@xxx go-cve-dictionary]$ echo $GOPATH
/opt/vuls/go

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

最新のGO言語をインストールし直したらvulsをインストールすることができました。
[vuls@xxx go-cve-dictionary]$ go version
go version go1.17.1 linux/amd64

投稿2021/09/22 12:42

jam_ta

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.47%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問