rocky-linux/documentation

Failed to install devtools on Rocky Linux 9

murphytsai opened this issue · 6 comments

I follow instructions to install devtools on Rocky Linux 9 but get the following error message:

$ sudo make install
sudo dnf config-manager --set-enabled powertools
Error: No matching repo to modify: powertools.
make: *** [Makefile:12: .system] Error 1

I'm newbie of RL .

Hi @murphytsai :

Sorry to hear this :-(.

Which instructions or documentation are you following ? Can you please share the URL if it is on the official Rocky Linux documentation site located here https://docs.rockylinux.org ?

For Rocky Linux 9 , the correct command to should be:

dnf config-manager --set-enabled crb

Cheers and please let us know if that works for you.

NezSez commented

@murphytsai Have you made any progress?

I refer to the link : https://docs.rockylinux.org/guides/package_management/developer_start2/#2-install-rocky-devtools

btw, the commands @wsoyinka suggest has same issue or I miss something ?
error logs as below:

[root@localhost devtools]# dnf config-manager --set-enabled crb
[root@localhost devtools]# make
git clone https://github.com/rocky-linux/srpmproc.git
Cloning into 'srpmproc'...
remote: Enumerating objects: 1095, done.
remote: Counting objects: 100% (278/278), done.
remote: Compressing objects: 100% (92/92), done.
remote: Total 1095 (delta 174), reused 253 (delta 157), pack-reused 817
Receiving objects: 100% (1095/1095), 280.36 KiB | 1.09 MiB/s, done.
Resolving deltas: 100% (643/643), done.
cd srpmproc; GO111MODULE=auto CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ./cmd/srpmproc
go: downloading github.com/spf13/cobra v1.1.1
go: downloading github.com/go-git/go-billy/v5 v5.0.0
go: downloading github.com/go-git/go-git/v5 v5.2.0
go: downloading google.golang.org/protobuf v1.25.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading golang.org/x/sys v0.1.0
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/imdario/mergo v0.3.9
go: downloading github.com/sergi/go-diff v1.1.0
go: downloading golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd
go: downloading github.com/xanzy/ssh-agent v0.2.1
go: downloading golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
go: downloading cloud.google.com/go/storage v1.12.0
go: downloading github.com/emirpasic/gods v1.12.0
go: downloading github.com/aws/aws-sdk-go v1.36.12
go: downloading cloud.google.com/go v0.66.0
go: downloading github.com/spf13/viper v1.7.0
go: downloading github.com/bluekeyes/go-gitdiff v0.5.0
go: downloading github.com/go-git/gcfg v1.5.0
go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
go: downloading github.com/googleapis/gax-go/v2 v2.0.5
go: downloading google.golang.org/api v0.32.0
go: downloading google.golang.org/genproto v0.0.0-20200921151605-7abf4a1a14d5
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/magiconair/properties v1.8.1
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading github.com/spf13/afero v1.1.2
go: downloading github.com/spf13/cast v1.3.0
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading gopkg.in/yaml.v2 v2.2.8
go: downloading gopkg.in/warnings.v0 v0.1.2
go: downloading google.golang.org/grpc v1.32.0
go: downloading go.opencensus.io v0.22.4
go: downloading golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading golang.org/x/text v0.3.3
go: downloading github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
go: downloading github.com/golang/protobuf v1.4.2
[root@localhost devtools]# make
make: Nothing to be done for 'all'.
[root@localhost devtools]# make install
sudo dnf config-manager --set-enabled powertools
Error: No matching repo to modify: powertools.
make: *** [Makefile:12: .system] Error 1

@wsoyinka Given the warning at the top of the page referenced by @murphytsai I think this document needs to be archived, or at minimum removed from view and TOC. Suggestions?

@sspencerwire - i agree with you.

I just checked and the issue was in the Makefile itself and the tool/approach is likely deprecated.
Let's archive the guide.

Thank you @murphytsai , @sspencerwire :-)

I've archived the document and will now close this issue. Thanks all!