8000 Add build instructions · Issue #33 · numa08/git-gitlab · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add build instructions #33

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

Open
voidus opened this issue May 20, 2015 · 1 comment
Open

Add build instructions #33

voidus opened this issue May 20, 2015 · 1 comment
Assignees

Comments

@voidus
Copy link
Contributor
voidus commented May 20, 2015

I'm trying to package this for archlinux, and as I'm not familiar with go, I'm having some difficulties building it.

Step-by-step instructions on how to install dependencies and build the project would be really great!

@numa08 numa08 self-assigned this May 20, 2015
@numa08
Copy link
Owner
numa08 commented May 20, 2015

Ok.First, You install go-lang, set environment variable 'GOPATH' and clone this repository to $GOPATH/src/github.com/numa08/git-gitlab.

Second, you should show .travis.yml. .travis.yml is a configuration file for travis-ci. This file is written build script. I believe this file help you.

Third, you install libgit2. libgit2 is a library. Sorry, I didn't try on archlinux, on ubuntu run below command.

$ wget -O libgit2-0.22.1.tar.gz https://github.com/libgit2/libgit2/archive/v0.22.1.tar.gz
$ tar -xzvf libgit2-0.22.1.tar.gz
$ cd libgit2-0.22.1 && mkdir build && cd build
$ cmake -DTHREADSAFE=ON -DBUILD_CLAR=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE="RelWithDebInfo" -DCMAKE_INSTALL_PREFIX=/usr/local .. && make && sudo make install
$ sudo ldconfig

Fourth, you install go-lang libraries. There are libgit2/git2go and plouc/go-gitlab-client.

$ go get gopkg.in/libgit2/git2go.v22
$ go get github.com/plouc/go-gitlab-client

Last, make this tool.

$ cd $GOPATH/src/github.com/numa08/git-gitlab
$ make build

That command will create build/git-lab, so you move to somewhere where is inside $PATH.And run git lab.

If, you success build then please update README.md and send pull-request. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0