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

Error after Installing on OSX #41

Closed
steele232 opened this issue Oct 24, 2018 · 2 comments
Closed

Error after Installing on OSX #41

steele232 opened this issue Oct 24, 2018 · 2 comments

Comments

@steele232
Copy link

Hey,

This is my first or second day using gomacro.

I got the following error today.

Steele232s-MacBook-Air:Desktop steele232 $ go install github.com/cosmos72/gomacro
github.com/cosmos72/gomacro
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//IOKit.framework/Versions/A/IOKit.tbd and library file /System/Library/Frameworks//IOKit.framework/Versions/A/IOKit are out of sync. Falling back to library file for linking.

Steele232s-MacBook-Air:Desktop steele232 $ gomacro -bash: gomacro: command not found

I got the same error when I did the install command (like above) and when I do
go get -u github.com/cosmos72/gomacro

I am pretty sure I had gomacro working yesterday.. or at least I did the go get command from the README.md . But I don't really remember.

I installed this on my windows work computer and it was working great.

The docs say that things work better on iOS than they do on Windows, so I was surprised when I got this error. None of the codes looked remotely familiar, so I thought I'd bring it to you guys and see what you think.

Other System Details:
OS: macOS High Sierra version 10.13.6

PS I haven't restarted my computer, but I could do that if you think it would help 😛

@cosmos72
Copy link
Owner

Hi Steele232,

the messages you listed from go install github.com/cosmos72/gomacro and go get -u github.com/cosmos72/gomacro seem to be warnings, not errors - so the gomacro executable should be successfully generated.

The only missing step I can think of is $PATH: go install moves the compiled executables into $GOPATH/bin and, if GOPATH is not set, it defaults to $HOME/go/bin - maybe these directories are not in your $PATH so your shell does not find gomacro. You can try both of these to see if either works (note the quotes):

"$GOPATH/bin/gomacro"
"$HOME/go/bin/gomacro"

and, in case, add either $GOPATH/bin or $HOME/go/bin to your $PATH.

Let me know if this resolves the problem.

@steele232
Copy link
Author

steele232 commented Oct 24, 2018

Hey, thank you!

It looks like, somehow, my GOPATH wasn't set. I was sure I did that before, but I guess I was wrong.

This was the result of the commands you mentioned:

$ "$GOPATH/bin/gomacro"
bash: /bin/gomacro: No such file or directory
$ "$HOME/go/bin/gomacro"
// GOMACRO, an interactive Go interpreter with generics and macros
// Copyright (C) 2017-2018 Massimiliano Ghilardi <https://github.com/cosmos72/gomacro>
// License MPL v2.0+: Mozilla Public License version 2.0 or later <http://mozilla.org/MPL/2.0/>
// This is free software with ABSOLUTELY NO WARRANTY.
//
// Type :help for help
gomacro>

Thanks again for your help!

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