master
brunch is always lastest release version of N2. Let’s start
clone it. $> git clone https://github.com/kakao/n2.git
Then, update
sub modules git submodule update --init
.
The easiest way is to use pip. Simply do sudo pip install n2
to
fetch the package from Python Package
Index(PyPI). This will also install cython
dependency.
For MacOS users, please set $CXX and $CC to your gcc/g++ path. e.g:
$> export CXX=/usr/local/bin/g++-7 $> export CC=/usr/local/bin/g++-7
If no gcc available, we recommend use brew to install gcc.
$> brew install gcc $> export CXX=/usr/local/bin/g++-7 # check g++ location on your system $> export CC=/usr/local/bin/g++-7 $> sudo pip install n2
You can also build from source by python setup.py install
. You may
want to run unit-test by issue the following command:
make test_python
.
- make static_lib
- if you need shared library, then type
make shared_lib
- if you need shared library, then type
- make install
- you can specify where to install n2 with PREFIX environment value.
default path is
/usr/local/
.
- you can specify where to install n2 with PREFIX environment value.
default path is
- make test_cpp # unit test
- Set GOPATH first!
- make go
- gcc
- openmp
- spdlog