skip to Main Content

It has been few hours now without any success…. I am trying to install an application "Siegfried".
I have a Redhat server without any internet access why I cannot run wget or brew or anything like as

wget -qO - https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
echo "deb http://dl.bintray.com/siegfried/debian wheezy main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update && sudo apt-get install siegfried

I downloaded the source code from

https://github.com/richardlehane/siegfried

I thought I could build and install… easy as pie.

I realized according to instructions in this page, I need Go programming compiler

https://github.com/richardlehane/siegfried/wiki/Getting-started

I downloaded Go and fixed the $PATH and Go is working. Now what? I have downloaded the source, I have Go, and now I need to, I guess build, or install or… first build then install. I am going nuts here. How do i proceed? Many thanks for any advices.

ADDING:
Now I have settings i .profile which gives me following:

[madde@m101010 etc]$ echo $PATH
/opt/apache-maven-3.6.3/bin:/opt/apache-maven-3.6.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/local/arkiv/bin:/opt/pupal/go/bin:/usr/local/arkiv/bin:/usr/lib/jvm/java/bin:/usr/local/tomcat9:/usr/local/go/bin:/bin:/home/madde/go/bin
[madde@m101010 etc]$ echo $GOPATH
/home/madde/go
[madde@m101010 etc]$ go version
go version go1.18.2 linux/amd64

Still get:

[madde@m101010 siegfried-main]$ go install ./cmd/sf
go: github.com/richardlehane/[email protected]: reading https://proxy.golang.org/github.com/richardlehane/characterize/@v/v1.0.0.mod: 403 Forbidden
go: downloading github.com/richardlehane/characterize v1.0.0
go: downloading github.com/richardlehane/webarchive v1.0.0
go: downloading github.com/richardlehane/mscfb v1.0.4
go: downloading github.com/richardlehane/match v1.0.0
go: downloading golang.org/x/image v0.0.0-20211028202545-6944b10bf410
go: downloading github.com/richardlehane/xmldetect v1.0.2
go: downloading golang.org/x/sys v0.0.0-20220114195835-da31bd327af9
go: downloading github.com/ross-spencer/wikiprov v0.2.0
go: github.com/richardlehane/[email protected]: reading https://proxy.golang.org/github.com/richardlehane/characterize/@v/v1.0.0.mod: 403 Forbidden

2

Answers


  1. I believe you’re looking for the go install command.

    go install [build flags] [packages]
    

    I followed these steps, and it installed just fine:

    git clone https://github.com/richardlehane/siegfried.git
    cd siegfried
    go install ./cmd/sf
    go install ./cmd/roy
    
    ➜ which sf
    /Users/h4s/projects/go/bin/sf
    
    ➜ which roy
    /Users/h4s/projects/go/bin/roy
    
    Login or Signup to reply.
  2. using git clone (your link for repo/package you want)
    but you must check in your or move to folder $GOPATH

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search