Git Product home page Git Product logo

ergw's Introduction

erGW - 3GPP GGSN and PDN-GW in Erlang

Build Status Coverage Status Erlang Versions

1. INSTALLATION


1. ERLANG:

Download an Erlang source file with an appropriate version and unwrap it:

tar -zxf otp_src_20.1.tar.gz						
cd otp_src_20.1

Export the working directory

export ERL_TOP=`pwd`					      

And run configure scripts:

sudo ./configure

If you notice a crash with certain locales try:

export LANG=C

Build Erlang:

sudo make

Optionally build and run tests:

make release_tests							    
cd release/tests/test_server						
$ERL_TOP/bin/erl -s ts install -s ts smoke_test batch -s init stop

Check if none fail at $ERL_TOP/release/tests/test_server/index.html.

Proceed to install Erlang:

cd $ERL_TOP
sudo make install

Export to $PATH, this is important. Full OTP is needed in PATH environment for Rebar!

export PATH=$ERL_TOP/bin:$PATH

2. REBAR3:

Clone from git:

git clone https://github.com/erlang/rebar3			
cd rebar3/
export REBAR3_TOP=`pwd`
export PATH=$REBAR3_TOP:$PATH

And install:

./bootstrap			

Running the rebar3 command the correct rebar and Erlang version should show up!

rebar3 version

3. ERGW:

Clone from git:

git clone https://github.com/travelping/ergw		
cd ergw

Compile using rebar3:

rebar3 compile

2. Operation:

Modify the configuration of the erGW at ergw/ergw.config and start it (from root):

cd ergw/
sudo erl -setcookie secret -sname ergw -config ergw.config

A default ergw.config can be found here. Try regs() or i(X,Y,Z) with a pid in the shell to check if the processes are running properly.

ergw's People

Contributors

0xax avatar hwinkel avatar kiliandargel avatar roadrunnr avatar surik avatar tlnd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.