Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install on the ubuntu #489

Closed
adammaj1 opened this issue Nov 24, 2022 · 3 comments
Closed

install on the ubuntu #489

adammaj1 opened this issue Nov 24, 2022 · 3 comments

Comments

@adammaj1
Copy link

adammaj1 commented Nov 24, 2022

I try to install fq on ubuntu

go install github.com/wader/fq@latest
The 'go' command was not found, but it can be installed using:
sudo snap install go         # version 1.18.8, or
sudo apt  install golang-go  # version 2:1.18~0ubuntu2
sudo apt  install gccgo-go   # version 2:1.18~0ubuntu2
Zobacz 'snap info go' dla dodatkowych wersji.
a@zalman:~$ sudo apt  install golang-go
[sudo] hasło użytkownika a: 
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności... Gotowe
Odczyt informacji o stanie... Gotowe   
The following additional packages will be installed:
  golang-1.18-go golang-1.18-src golang-src
Sugerowane pakiety:
  bzr | brz mercurial subversion
Zostaną zainstalowane następujące NOWE pakiety:
  golang-1.18-go golang-1.18-src golang-go golang-src
0 aktualizowanych, 4 nowo instalowanych, 0 usuwanych i 49 nieaktualizowanych.
Konieczne pobranie 82,2 MB archiwów.
Po tej operacji zostanie dodatkowo użyte 436 MB miejsca na dysku.
Kontynuować? [T/n] t
Pobieranie:1 http://pl.archive.ubuntu.com/ubuntu jammy/main amd64 golang-1.18-src all 1.18.1-1ubuntu1 [16,2 MB]
Pobieranie:2 http://pl.archive.ubuntu.com/ubuntu jammy/main amd64 golang-1.18-go amd64 1.18.1-1ubuntu1 [66,0 MB]                                                                                                                                                                         
Ign.:2 http://pl.archive.ubuntu.com/ubuntu jammy/main amd64 golang-1.18-go amd64 1.18.1-1ubuntu1                                                                                                                                                                                         
Pobieranie:3 http://pl.archive.ubuntu.com/ubuntu jammy/main amd64 golang-src all 2:1.18~0ubuntu2 [4 438 B]                                                                                                                                                                               
Pobieranie:4 http://pl.archive.ubuntu.com/ubuntu jammy/main amd64 golang-go amd64 2:1.18~0ubuntu2 [41,8 kB]                                                                                                                                                                              
Pobieranie:2 http://pl.archive.ubuntu.com/ubuntu jammy/main amd64 golang-1.18-go amd64 1.18.1-1ubuntu1 [66,0 MB]                                                                                                                                                                         
Pobrano 57,8 MB w 1min 32s (627 kB/s)                                                                                                                                                                                                                                                    
Wybieranie wcześniej niewybranego pakietu golang-1.18-src.
(Odczytywanie bazy danych ... 415077 plików i katalogów obecnie zainstalowanych.)
Przygotowywanie do rozpakowania pakietu .../golang-1.18-src_1.18.1-1ubuntu1_all.deb ...
Rozpakowywanie pakietu golang-1.18-src (1.18.1-1ubuntu1) ...
Wybieranie wcześniej niewybranego pakietu golang-1.18-go.
Przygotowywanie do rozpakowania pakietu .../golang-1.18-go_1.18.1-1ubuntu1_amd64.deb ...
Rozpakowywanie pakietu golang-1.18-go (1.18.1-1ubuntu1) ...
Wybieranie wcześniej niewybranego pakietu golang-src.
Przygotowywanie do rozpakowania pakietu .../golang-src_2%3a1.18~0ubuntu2_all.deb ...
Rozpakowywanie pakietu golang-src (2:1.18~0ubuntu2) ...
Wybieranie wcześniej niewybranego pakietu golang-go:amd64.
Przygotowywanie do rozpakowania pakietu .../golang-go_2%3a1.18~0ubuntu2_amd64.deb ...
Rozpakowywanie pakietu golang-go:amd64 (2:1.18~0ubuntu2) ...
Konfigurowanie pakietu golang-1.18-src (1.18.1-1ubuntu1) ...
Konfigurowanie pakietu golang-src (2:1.18~0ubuntu2) ...
Konfigurowanie pakietu golang-1.18-go (1.18.1-1ubuntu1) ...
Konfigurowanie pakietu golang-go:amd64 (2:1.18~0ubuntu2) ...
Przetwarzanie wyzwalaczy pakietu man-db (2.10.2-1)...
a@zalman:~$ go install github.com/wader/fq@latest
go: downloading github.com/wader/fq v0.0.10
go: downloading github.com/wader/readline v0.0.0-20220928125628-732951d41240
go: downloading github.com/golang/snappy v0.0.4
go: downloading golang.org/x/crypto v0.0.0-20220926161630-eccd6366d1be
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/gomarkdown/markdown v0.0.0-20220905174103-7b278df48cfb
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/wader/gojq v0.12.1-0.20220929141349-8874f5c7907c
go: downloading golang.org/x/exp v0.0.0-20220927162542-c76eaa363f9d
go: downloading github.com/BurntSushi/toml v1.2.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading golang.org/x/net v0.0.0-20220927171203-f486391704dc
go: downloading github.com/creasty/defaults v1.6.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/gopacket/gopacket v0.0.0-20220819214934-ee81b8c880da
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: downloading github.com/itchyny/timefmt-go v0.1.4
a@zalman:~$ fq
The 'fq' command was not found, but it can be installed using:
sudo apt install fq  # version 0.0.5-1, or
sudo apt install nq  # version 0.3.1-4
a@zalman:~$ go version
go version go1.18.1 linux/amd64

is there possible conflict wit fq https://manpages.ubuntu.com/manpages/bionic/en/man1/fq.1.html
?

@wader
Copy link
Owner

wader commented Nov 24, 2022

Hi, yes it seems so but don't think it should be a problem unless you try to install both packages. In your case i think the issue is that go install will install the binary to ~/go/bin (or more correctly $(go env GOPATH)/bin) which is probably outside your $PATH. Maybe try either cp ~/go/bin/fq /usr/local/bin or add ~/go/bin to $PATH.

@adammaj1
Copy link
Author

adammaj1 commented Nov 24, 2022

yes. Now it works

ls
a.flac


fq . a.flac
         |00 01 02 03 04 05 06 07 08 09|0123456789|.{}: a.flac (flac)
0x0000000|66 4c 61 43                  |fLaC      |  magic: "fLaC" (valid)
         |00 01 02 03 04 05 06 07 08 09|0123456789|
0x0000000|            00 00 00 22 12 00|    ..."..|  metadatablocks[0:4]: (flac_metadatablocks)
0x000000a|12 00 00 00 00 00 00 00 0a c4|..........|
*        |until 0x764.7 (1889)         |          |
0x0000762|         ff f8 59 18 00 6b 40|   ..Y..k@|  frames[0:1998]:
0x000076c|00 05 b5 c4 20 63 22 8b 14 8a|.... c"...|
*        |until 0x1808f98.7 (end) (2520|          |
         |00 01 02 03 04 05 06 07 08 09|0123456789|
  0x00000|d9 e2 58 9e 81 38 d3 a8 98 55|..X..8...U|  md5_calculated: "d9e2589e8138d3a898553e09e8580165" (raw bits) (invalid)
  0x00000|3e 09 e8 58 01 65|           |>..X.e|   |
         |                             |          |  decoded_samples: 9202200

@adammaj1
Copy link
Author

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants