Comments (8)
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.
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.
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.
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.
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.
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.
Hi @korayal
Please do raise a new issue for that. Thanks.
from log-courier.
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)
- Duplicates observed when log-courier configuration file is overwritten HOT 3
- Undocumented behavior for paths matched by multiple fileglobs HOT 1
- log-courier can't seem to handle `~` for home in certain contexts. HOT 2
- error in logstash 7 HOT 4
- log-courier and logstash > 7.4.0? HOT 10
- Throughput question HOT 15
- does the includes configuration still work correctly? HOT 3
- Hold time setting not closing files properly
- syslog "progname" uses a full path rather than a basename HOT 1
- Information about payloads / different debug level ? HOT 3
- error while compiling code in the command line using MK in windows for Z wave HOT 1
- version.rb missing from the plugin package
- log-courier admin socket stuck HOT 2
- lc-admin does not default to tcp transport HOT 2
- order of files in lc-admin UI
- Logstash configuration auto reload is blocked by log-courier input HOT 2
- PPA packaging is using deprecated compatibility level 9 HOT 1
- 2.10.0 packages missing from PPA (Ubuntu)
- Receiver reload can cause panic
- TCP streaming receiver aborts if too many events received
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from log-courier.