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

compile the code left some error #2043

Closed
jinhang opened this Issue Sep 30, 2016 · 7 comments

Comments

Projects
None yet
4 participants
@jinhang
Copy link

jinhang commented Sep 30, 2016

compile source code

to have binary file


  • System information:

Linux 3.11.0-12-generic i686

  • Prometheus version:

    GOARCH="386"
GOBIN="/usr/local/go/bin"
GOEXE=""
GOHOSTARCH="386"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/local/go_workspace"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_386"
CC="gcc"
GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build798007709=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
  • Logs:
root@ubuntu:/usr/local/go_workspace/src/github.com/prometheus/prometheus# make all
>> formatting code
>> fetching promu
>> building binaries
make: /usr/local/go_workspace/bin/promu: Command not found
make: *** [build] Error 127
@jinhang

This comment has been minimized.

Copy link
Author

jinhang commented Sep 30, 2016

please modify the reademe

$go get -u github.com/prometheus
$ mkdir -p $GOPATH/src/github.com/prometheus
$ cd $GOPATH/src/github.com/prometheus
$ git clone https://github.com/prometheus/prometheus.git
$ cd prometheus
$ make build
$ ./prometheus -config.file=your_config.yml
@grobie

This comment has been minimized.

Copy link
Member

grobie commented Sep 30, 2016

@jinhang go get should not be necessary, the "fetching promu" state should have installed promu correctly. Can you report the output of uname -m please.

@jinhang

This comment has been minimized.

Copy link
Author

jinhang commented Oct 4, 2016

Linux 3.11.0-12-generic i686 I have compiled successed

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Oct 4, 2016

@jinhang All good then? Can this issue be closed?

@jinhang

This comment has been minimized.

Copy link
Author

jinhang commented Oct 21, 2016

hi,morning, when I want to modify the https://github.com/prometheus/prometheus/blob/master/web/ui/templates/_base.html file, then try to compile, some error leave to me
image

@jinhang

This comment has been minimized.

Copy link
Author

jinhang commented Oct 21, 2016

could you give me some advice how to solve this question, I only want to modify the prometheus web UI ,thanks a lot, brother

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

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

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.