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

External dependencies missing when building Hugo !? #4

Closed
DrnSln opened this issue Jul 10, 2013 · 12 comments
Closed

External dependencies missing when building Hugo !? #4

DrnSln opened this issue Jul 10, 2013 · 12 comments
Labels

Comments

@DrnSln
Copy link

DrnSln commented Jul 10, 2013

Quote from the main page :
Hugo has no external dependencies.

But when trying to build the project :

    pi@raspberrypi ~/projects/go/src/github.com/hugo $ go build -o hugo main.go
    hugolib/site.go:17:2: cannot find package "bitbucket.org/pkg/inflect" in any of:
            /home/pi/bin/go/src/pkg/bitbucket.org/pkg/inflect (from $GOROOT)
            /home/pi/projects/go/src/bitbucket.org/pkg/inflect (from $GOPATH)
    hugolib/page.go:20:2: cannot find package "github.com/BurntSushi/toml" in any of:
            /home/pi/bin/go/src/pkg/github.com/BurntSushi/toml (from $GOROOT)
            /home/pi/projects/go/src/github.com/BurntSushi/toml (from $GOPATH)
    hugolib/helpers.go:19:2: cannot find package "github.com/kr/pretty" in any of:
            /home/pi/bin/go/src/pkg/github.com/kr/pretty (from $GOROOT)
            /home/pi/projects/go/src/github.com/kr/pretty (from $GOPATH)
    hugolib/page.go:21:2: cannot find package "github.com/theplant/blackfriday" in any of:
            /home/pi/bin/go/src/pkg/github.com/theplant/blackfriday (from $GOROOT)
            /home/pi/projects/go/src/github.com/theplant/blackfriday (from $GOPATH)
    hugolib/config.go:17:2: cannot find package "launchpad.net/goyaml" in any of:
            /home/pi/bin/go/src/pkg/launchpad.net/goyaml (from $GOROOT)
            /home/pi/projects/go/src/launchpad.net/goyaml (from $GOPATH)
@spf13
Copy link
Contributor

spf13 commented Jul 10, 2013

Hugo executable has no external dependencies.

Building it does, however go handles these for you.

go get github.com/spf13/hugo

should get and install all dependencies.

@spf13 spf13 closed this as completed Jul 10, 2013
@spf13
Copy link
Contributor

spf13 commented Jul 10, 2013

Also a bit curious why you are trying to build it instead of just using the binaries..

I should probably write better instructions for building hugo from source than I have up there. Those instructions are building as a contributor not just to build from source for your use.

@DrnSln
Copy link
Author

DrnSln commented Jul 10, 2013

Also a bit curious why you are trying to build it instead of just using the binaries..

Because I was following the Installing from source steps as I am on a Raspberry PI ( ARM architecture ) :

    git clone https://github.com/spf13/hugo
    cd hugo
    go build -o hugo main.go

Which gives me :

    pi@raspberrypi ~/projects/go/src/github.com $ go get github.com/spf13/hugo
    /home/pi/projects/go/src/github.com/spf13/hugo/main.go:17:2: local import "./hugolib" in non-local package

@spf13
Copy link
Contributor

spf13 commented Jul 10, 2013

I was wondering if anyone would want ARM support. I'll make the next release build for that as well.

I'll fix that issue shortly.

@spf13 spf13 reopened this Jul 10, 2013
@spf13
Copy link
Contributor

spf13 commented Jul 10, 2013

GIve it a try now. I just pushed a fix for it.

@DrnSln
Copy link
Author

DrnSln commented Jul 10, 2013

pi@raspberrypi ~/projects/go/src/github.com $ go get github.com/spf13/hugo
go: missing Bazaar command. See http://golang.org/s/gogetcmd
package launchpad.net/goyaml: exec: "bzr": executable file not found in $PATH

@spf13
Copy link
Contributor

spf13 commented Jul 10, 2013

Go get supports a variety of version control systems. That particular
library is only available using Bazaar. Unfortunately you either need to
download it yourself and put it in the expected location or install bazaar
and go will do that for you.

@DrnSln
Copy link
Author

DrnSln commented Jul 10, 2013

I agree, a sudo apt-get install bzr solved the bzr issue.

But the local import "./hugolib" issue still persists :

pi@raspberrypi ~/projects/go/src/github.com $ go get github.com/spf13/hugo
can't load package: /home/pi/projects/go/src/github.com/spf13/hugo/main.go:17:2: local import "./hugolib" in non-local package

@spf13
Copy link
Contributor

spf13 commented Jul 10, 2013

Did you pull the latest?

My line 17 shows the right include statement with the full path.

https://github.com/spf13/hugo/blob/master/main.go#L17

@spf13
Copy link
Contributor

spf13 commented Jul 11, 2013

Assuming closed. Let me know if there are still any issues.

@spf13 spf13 closed this as completed Jul 11, 2013
@DrnSln
Copy link
Author

DrnSln commented Jul 11, 2013

Thank you for the help, project compiles now without error !

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants