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

[BUG] puma-dev does not compiles on Linux #32

Closed
hron84 opened this issue Aug 3, 2016 · 7 comments
Closed

[BUG] puma-dev does not compiles on Linux #32

hron84 opened this issue Aug 3, 2016 · 7 comments
Labels

Comments

@hron84
Copy link

hron84 commented Aug 3, 2016

It seems like README was not updated with the latest requirements to build puma-dev successfully.

The following error happens:

[hron@moonshine puma-dev (master)] $ go version
go version go1.6.3 linux/amd64
[hron@moonshine puma-dev (master)] $ make
gb build cmd/puma-dev
FATAL: command "build" failed: failed to resolve import path "cmd/puma-dev": import "flag": not found: stat /home/hron/build/puma-dev/src/flag: no such file or directory
make: *** [Makefile:2: all] Error 1
[hron@moonshine puma-dev (master)] $

Please:

  • Update README with correct requirements
  • And possibly provide Linux builds too.
@evanphx evanphx added the bug label Aug 5, 2016
@evanphx
Copy link
Member

evanphx commented Aug 8, 2016

That's pretty weird. I'm not able to replicate the issue, is perhaps your go installation not installed to /usr/local/go? I believe it needs to be there so that the standard packages can be found.

@cmwall
Copy link

cmwall commented Aug 8, 2016

Having this same issue on Ubuntu 16.04.

➜  puma-dev-0.7 go version
go version go1.6.3 linux/amd64
➜  puma-dev-0.7 make
gb build cmd/puma-dev
FATAL: command "build" failed: failed to resolve import path "cmd/puma-dev": import "github.com/fsnotify/fsevents": not found: stat /home/cody/Desktop/puma-dev-0.7/src/github.com/fsnotify/fsevents: no such file or directory
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
➜  puma-dev-0.7 which go
/usr/local/go/bin/go
➜  puma-dev-0.7 

The fsevents package is apparently only for Mac and the github.com/ directory is not available in the src/ directory - it's in the vendor/ directory. Not sure if that would cause any issues with package installation.

@evanphx
Copy link
Member

evanphx commented Aug 8, 2016

That package shouldn't be compiled at all on linux, it's in a darwin specific file...

@evanphx
Copy link
Member

evanphx commented Aug 8, 2016

@cmwall I was unable to replicate the issue on 14.04 (I'm on a slow internet connection and can't download 16.04 right now). I installed go, installed gb, and make worked fine. Can you try deleting the pkg/ and vendor/pkg dirs and try again?

@cmwall
Copy link

cmwall commented Aug 8, 2016

@evanphx Issue was resolved on my end by removing the package and pulling from Github. I think I downloaded an out-of-date release (or possibly a Mac-only release).

Everything works well now 👍

@hron84
Copy link
Author

hron84 commented Aug 9, 2016

@evanphx of course not! Go is installed to /usr/bin/go, as it is a system-provided package. Since both /usr/bin and /usr/local/bin is in path, it should not be an issue. Maybe you hard-coded some paths for Go?

@hron84
Copy link
Author

hron84 commented Aug 9, 2016

Btw, I re-cloned the git repo and it seems working for me now. At some point you fixed something for me.

@evanphx evanphx closed this as completed Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants