sjmudd / ps-top

ps-top - a top-like program for MySQL
BSD 2-Clause "Simplified" License
203 stars 31 forks source link

Installation instruction #1

Closed Wolfsrudel closed 9 years ago

Wolfsrudel commented 9 years ago

In the readme could you please provide an instruction how to install the required golang components and how to build pstop. I also would appreciate to have a precompiled binary file. ;)

tanji commented 9 years ago

Hello Wolfsrudel,

My opinion is that those instructions are not provided because golang has a simple, generic way of installing and building packages.

Provided you have set the GOPATH environment variable correctly, all you have to do is type the following command:

go get github.com/sjmudd/pstop

This will automatically fetch the required source packages from github along with dependencies, build them and compile the binary under GOPATH/bin.

Hope that helps!

aleksraiden commented 9 years ago

Hi, lot of thanks for your project. But if i try to install, some troubles:

root@new:/tmp/pstop# go get github.com/sjmudd/pstop github.com/go-sql-driver/mysql /usr/lib/go/src/pkg/github.com/go-sql-driver/mysql/driver.go:65: undefined: net.Dialer

any idea to fix?

tanji commented 9 years ago

Hi Aleksraiden!

Please use Go 1.2 or later. go-sql-driver/mysql does not support earlier versions.

sjmudd commented 9 years ago

Tanji, thanks for responding for me. I am indeed using go 1.3 and did not add specific instructions on how to get this going. I was also considering building (but haven't decided) binaries (rpm) but for a single file I'm not sure if that is worthwhile. Akeksraiden: I hope that you have got pstop running now.

linc01n commented 9 years ago

This site build pstop for me.

http://gobuild.io/github.com/sjmudd/pstop