Giter Site home page Giter Site logo

make error about log-courier HOT 8 CLOSED

driskell avatar driskell commented on July 23, 2024
make error

from log-courier.

Comments (8)

driskell avatar driskell commented on July 23, 2024

Can you provide the output of go env?

Depending on how you installed go you might not have GOROOT setup correctly I think.

from log-courier.

dasibre avatar dasibre commented on July 23, 2024

my $path /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/go/bin
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
TERM="dumb"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CXX="g++"
CGO_ENABLED="1"

from log-courier.

driskell avatar driskell commented on July 23, 2024

Can you get the full path to the log-courier root where Makefile is, and try running this manually:

GOPATH=/home/jason/Documents/log-courier go get -d -tags "" log-courier

This will manually set GOPATH. It looks like it might be a problem with it missing - but the Makefile should be settings it. Can you give the output of "make -v" too? Maybe I used syntax that isn't supported by yours.

Thanks
Jason

from log-courier.

driskell avatar driskell commented on July 23, 2024

Hi

Did you get anywhere or give up? Can I close the issue or do you still want some help?

Thanks

Jason

from log-courier.

dasibre avatar dasibre commented on July 23, 2024

I'm was able to manually install it, when i downloaded the file to my home directory. The issue arises when using chef for automated installation. Currently on hold with that...

from log-courier.

korayal avatar korayal commented on July 23, 2024

should I open a new issue for windows? or is it ok for me to post here?

This is what I get when running make:

C:\1-DEV\BIN\log-courier>make
go get -d -tags "" log-courier
package log-courier: unrecognized import path "log-courier"
make: *** [bin/log-courier] Error 1

when using sh.exe:

C:\1-DEV\BIN\log-courier>bash -c "make"
go get -d -tags "" log-courier
go install -tags "" log-courier
# log-courier
c:\1-DEV\BIN\log-courier\src\log-courier\log-courier_windows.go:24: imported and not used: "syscall"
c:\1-DEV\BIN\log-courier\src\log-courier\log-courier_windows.go:34: undefined: logging
c:\1-DEV\BIN\log-courier\src\log-courier\log-courier_windows.go:35: missing return at end of function
make: *** [bin/log-courier] Error 2

from log-courier.

driskell avatar driskell commented on July 23, 2024

Hi @korayal
Please do raise a new issue for that. Thanks.

from log-courier.

driskell avatar driskell commented on July 23, 2024

Although, @korayal, this seems a two part issue for you. First is the make issue (which actually is fine in this issue - it's probably the same) and the second is the compile issue on Windows.

Once you raise a new issue for the compile issue on Windows I'll get you a fix up ASAP once I've tested it.

Your usage of bash to fix the error in this topic though is spot on, thanks. I use the PWD variable to set GOPATH. I guess the environment configured by Chef does not set this variable, thus it's empty and go can't work out what to compile. Windows doesn't have that variable either. So I'll need to work out a way to get the current directory on both architectures.

@dasibre A workaround for your Chef would be to have "export PWD=/path/to/log-courier" in the script I think and it should then inherit it to the Makefile. I'll work on a fix though so it doesn't depend on this.

Jason

from log-courier.

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.