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

goreman command not found #49

Closed
manishshambu opened this issue Mar 12, 2018 · 16 comments
Closed

goreman command not found #49

manishshambu opened this issue Mar 12, 2018 · 16 comments

Comments

@manishshambu
Copy link

I installed goreman using go get. However I'm unable to start the service.
Error -bash: goreman: command not found

Am I missing something?

@mattn
Copy link
Owner

mattn commented Mar 12, 2018

see $GOPATH/bin/goreman

@manishshambu
Copy link
Author

Should I add it into my ./bash_profile?

@mattn
Copy link
Owner

mattn commented Mar 12, 2018

If you want.

@manishshambu
Copy link
Author

manishshambu commented Mar 12, 2018

Manishs-MacBook-Pro:bin manishshambu$ ./goreman
Tasks:
goreman check # Show entries in Procfile
goreman help [TASK] # Show this help
goreman export [FORMAT] [LOCATION] # Export the apps to another process
(upstart)
goreman run COMMAND [PROCESS...] # Run a command
start
stop
stop-all
restart
restart-all
list
status
goreman start [PROCESS] # Start the application
goreman version # Display Goreman version

Options:
-b uint
base number of port (default 5000)
-basedir string
base directory
-f string
proc file (default "Procfile")
-p uint
port (default 8555)
Manishs-MacBook-Pro:bin manishshambu$ goreman version
-bash: goreman: command not found

Still getting this

@mattn
Copy link
Owner

mattn commented Mar 12, 2018

Do you understand PATH environment variable?

@manishshambu
Copy link
Author

Could you please elaborate a little more and help me to set the path. I could not figure out.

@mattn
Copy link
Owner

mattn commented Mar 12, 2018

Not a problem. Please add following line into your .bashrc.

If you doesn't define GOPATH:

export PATH=$HOME/go/bin:$PATH

Or if you define GOPATH, but your GOPATH doesn't have two directories:

export PATH=$GOPATH/bin:$PATH

@manishshambu
Copy link
Author

export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin"
export PATH=$GOPATH/bin:$PATH

I have the following newly added path variables in my ./bash_profile and I still get the error. (Restarted my terminal) I'm not sure why I get the same error.

@mattn
Copy link
Owner

mattn commented Mar 12, 2018

I have the following newly added path variables in my ./bash_profile and I still get the error. (Restarted my terminal) I'm not sure why I get the same error.

Did you remove previous addition into .bash_profile which error occured.

@manishshambu
Copy link
Author

Yes

@mattn
Copy link
Owner

mattn commented Mar 12, 2018

Let's organize problem. What the error you see?

@manishshambu
Copy link
Author

Manishs-MacBook-Pro:~ manishshambu$ goreman start
-bash: goreman: command not found

I have all my path variables set.
I have go installed.

@mattn
Copy link
Owner

mattn commented Mar 12, 2018

Try to type in your bash prompt.

go get github.com/mattn/goreman

If you go an error, please show me the error

ls $HOME/go/bin/goreman

Please confirm binary was installed

which goreman

Please confirm you added $GOPATH/bin into $PATH.

goreman

Please confirm you can run goreman

@manishshambu
Copy link
Author

manishshambu commented Mar 12, 2018

Manishs-MacBook-Pro:~ manishshambu$ go get github.com/mattn/goreman
Manishs-MacBook-Pro:~ manishshambu$ ls $HOME/go/bin/goreman

/Users/manishshambu/go/bin/goreman
Manishs-MacBook-Pro:~ manishshambu$ which goreman
Manishs-MacBook-Pro:~ manishshambu$ goreman

-bash: goreman: command not found
Manishs-MacBook-Pro:~ manishshambu$ tail ~/.bash_profile
export GOOGLE_APPLICATION_CREDENTIALS="/Users/manishshambu/Documents/HRI/googlePrivateKey/privateKey.json"
export PYTHONPATH=$PYTHONPATH:"/Users/manishshambu/Desktop/pyAudioAnalysis/"

Setting PATH for Python 2.7
The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/b​in
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin"
export PATH=$GOPATH/bin:$PATH

@mattn
Copy link
Owner

mattn commented Mar 12, 2018

You still have problem to add $GOPATH/bin into $PATH.

export PATH=$PATH:$GOROOT/bin:$GOPATH/bin"

Last double-quote is not required?

@manishshambu
Copy link
Author

Worked!

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