Git Product home page Git Product logo

Comments (12)

spf13 avatar spf13 commented on August 24, 2024

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.

from hugo.

spf13 avatar spf13 commented on August 24, 2024

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.

from hugo.

DrnSln avatar DrnSln commented on August 24, 2024

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

from hugo.

spf13 avatar spf13 commented on August 24, 2024

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.

from hugo.

spf13 avatar spf13 commented on August 24, 2024

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

from hugo.

DrnSln avatar DrnSln commented on August 24, 2024
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

from hugo.

spf13 avatar spf13 commented on August 24, 2024

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.

from hugo.

DrnSln avatar DrnSln commented on August 24, 2024

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

from hugo.

spf13 avatar spf13 commented on August 24, 2024

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

from hugo.

spf13 avatar spf13 commented on August 24, 2024

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

from hugo.

DrnSln avatar DrnSln commented on August 24, 2024

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

from hugo.

github-actions avatar github-actions commented on August 24, 2024

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.

from hugo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.