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

command not found: righthand #2

Open
mrfortenberry2255 opened this issue Jul 11, 2023 · 7 comments
Open

command not found: righthand #2

mrfortenberry2255 opened this issue Jul 11, 2023 · 7 comments

Comments

@mrfortenberry2255
Copy link

I installed go, did the build and when I try to run righthand at terminal, it says command not found: righthand. I opened the README.md and followed instructions. There is nothing about env requirements I noticed. What am I missing?

@jmanhype
Copy link

Hopefully he gives this proper attenttion

@tmc
Copy link
Owner

tmc commented Jul 24, 2023

@mrfortenberry2255 that implies that your GOPATH/bin directory is not on your shell's PATH -- I need to help set up better getting started instructions. Would you be interested in helping with that?

@KastanDay
Copy link

It appears there's a problem with portaudio-2.0.
https://ubuntuforums.org/showthread.php?t=1245728

Relevant error:

go build github.com/gordonklaus/portaudio:
# pkg-config --cflags  -- portaudio-2.0
Package portaudio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `portaudio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'portaudio-2.0' found
pkg-config: exit status 1

Full trace:

❯ go install github.com/tmc/righthand@main
go: downloading github.com/tmc/righthand v0.0.0-20230724190318-f1aea90d862d
go: downloading github.com/tmc/audioutil v0.0.0-20230707005244-54efdb41c235
go: downloading github.com/progrium/macdriver v0.4.1-0.20230706190053-7e5bd0a70b46
go: downloading github.com/go-vgo/robotgo v0.100.10
go: downloading github.com/goccy/go-yaml v1.11.0
go: downloading github.com/tmc/langchaingo v0.0.0-20230701162323-81dcfa6b690d
go: downloading github.com/tmc/whisper.cpp/bindings/go v0.0.0-20230705062322-9af4a3211895
go: downloading github.com/go-audio/audio v1.0.0
go: downloading github.com/go-audio/transforms v0.0.0-20180121090939-51830ccc35a5
go: downloading github.com/go-audio/wav v1.1.0
go: downloading github.com/gordonklaus/portaudio v0.0.0-20221027163845-7c3b689db3cc
go: downloading github.com/fatih/color v1.10.0
go: downloading github.com/robotn/gohook v0.31.3
go: downloading github.com/vcaesar/gops v0.21.3
go: downloading github.com/vcaesar/imgo v0.30.0
go: downloading github.com/vcaesar/keycode v0.10.0
go: downloading github.com/vcaesar/tt v0.20.0
go: downloading github.com/pkoukk/tiktoken-go v0.1.2
go: downloading github.com/mattn/go-colorable v0.1.8
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading golang.org/x/sys v0.9.0
go: downloading github.com/go-audio/riff v1.0.0
go: downloading golang.org/x/image v0.0.0-20211028202545-6944b10bf410
go: downloading github.com/dlclark/regexp2 v1.8.1
go: downloading github.com/shirou/gopsutil v3.21.10+incompatible
go: downloading github.com/tklauser/go-sysconf v0.3.9
go build github.com/gordonklaus/portaudio:
# pkg-config --cflags  -- portaudio-2.0
Package portaudio-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `portaudio-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'portaudio-2.0' found
pkg-config: exit status 1
# github.com/tmc/whisper.cpp/bindings/go
In file included from _cgo_export.c:4:
In file included from whisper.go:16:
../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/[email protected]/whisper.h:133:49: warning: declaration of 'struct whisper_full_params' will not be visible outside of this function [-Wvisibility]
# github.com/tmc/whisper.cpp/bindings/go
In file included from ../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/[email protected]/params.go:11:
../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/[email protected]/whisper.h:133:49: warning: declaration of 'struct whisper_full_params' will not be visible outside of this function [-Wvisibility]
# github.com/tmc/whisper.cpp/bindings/go
In file included from ../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/[email protected]/whisper.go:16:
../go/pkg/mod/github.com/tmc/whisper.cpp/bindings/[email protected]/whisper.h:133:49: warning: declaration of 'struct whisper_full_params' will not be visible outside of this function [-Wvisibility]
# github.com/progrium/macdriver/core
../go/pkg/mod/github.com/progrium/[email protected]/core/core_objc.gen.go:172:3: warning: class method '+localizedUserNotificationStringForKey:arguments:' not found (return type defaults to 'id') [-Wobjc-method-access]
../go/pkg/mod/github.com/progrium/[email protected]/core/core_objc.gen.go:884:3: warning: instance method '-shuffledArray' not found (return type defaults to 'id') [-Wobjc-method-access]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:17:12: note: receiver is instance of class declared here
../go/pkg/mod/github.com/progrium/[email protected]/core/core_objc.gen.go:1075:9: warning: returning 'const void *' from a function with result type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# github.com/go-vgo/robotgo
In file included from ../go/pkg/mod/github.com/go-vgo/[email protected]/robotgo.go:48:
In file included from ../go/pkg/mod/github.com/go-vgo/[email protected]/window/goWindow.h:12:
../go/pkg/mod/github.com/go-vgo/[email protected]/window/window.h:21:6: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
../go/pkg/mod/github.com/go-vgo/[email protected]/window/window.h:29:6: warning: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
# github.com/progrium/macdriver/cocoa
../go/pkg/mod/github.com/progrium/[email protected]/cocoa/cocoa_objc.gen.go:177:3: warning: class method '+mouseCoalescingEnabled' not found (return type defaults to 'id') [-Wobjc-method-access]
../go/pkg/mod/github.com/progrium/[email protected]/cocoa/cocoa_objc.gen.go:185:3: warning: class method '+swipeTrackingFromScrollEventsEnabled' not found (return type defaults to 'id') [-Wobjc-method-access]
../go/pkg/mod/github.com/progrium/[email protected]/cocoa/cocoa_objc.gen.go:567:3: warning: class method '+compatibleWithResponsiveScrolling' not found (return type defaults to 'id') [-Wobjc-method-access]
../go/pkg/mod/github.com/progrium/[email protected]/cocoa/cocoa_objc.gen.go:627:3: warning: instance method '-loadNibNamed:owner:options:' not found (return type defaults to 'id') [-Wobjc-method-access]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:19:12: note: receiver is instance of class declared here
../go/pkg/mod/github.com/progrium/[email protected]/cocoa/cocoa_objc.gen.go:1638:9: warning: returning 'NS_RETURNS_INNER_POINTER const void *' from a function with result type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
../go/pkg/mod/github.com/progrium/[email protected]/cocoa/cocoa_objc.gen.go:7501:3: warning: 'NSView' may not respond to 'backgroundColor'
../go/pkg/mod/github.com/progrium/[email protected]/cocoa/cocoa_objc.gen.go:7506:3: warning: 'NSView' may not respond to 'setBackgroundColor:'
    ~/code ▓▒░···················░▒▓ 33s   nice_base   system   12:52:23 PM  
❯ righthand
zsh: command not found: righthand

Thanks!

@KastanDay
Copy link

Fix for Mac: brew install portaudio

Then re-run the go install. Perfect.

@KastanDay
Copy link

Here's the linux version: http://portaudio.com/docs/v19-doxydocs/compile_linux.html

@mrfortenberry2255
Copy link
Author

mrfortenberry2255 commented Jul 24, 2023 via email

@mrfortenberry2255
Copy link
Author

mrfortenberry2255 commented Jul 24, 2023 via email

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

4 participants