官术网_书友最值得收藏!

Downloading and Installing OpenSER v1.2

Even though it is easier to install the OpenSER using the Debian packages we will go through the compilation process. It is more flexible and we may need to recompile OpenSER a few times in this material to include other modules. The installation process step by step follows:

Step 1: Install the dependencies.

apt-get install gcc bison flex make openssl libmysqlclient-dev libradiusclient-ng2 libradiusclient-ng-dev mysql-server

Note

The MySQL server is not really a dependency, but we will install it at this moment to make things easier.

Step 2: Download the source package and decompress it.

cd /usr/src
wget http://www.openser.org/pub/openser/1.2.2/src/openser-1.2.2-tls_src.tar.gz
tar -xzvf openser-1.2.2-tls_src.tar.gz

Step 3: Use your favorite Linux editor to edit the Makefile

Remove from the "exclude_modules?=" line the mysql and any radius-related modules. This will make the compilation process include MySQL and RADIUS.

cd /usr/src/openser-1.2.2-tls/
vi Makefile

File before making changes:

exclude_modules?=       jabber cpl-c mysql pa postgres osp unixodbc \
                                              avp_radius auth_radius\
                                       group_radius uri_radius xmpp \
                                     presence pua pua_mi pua_usrloc \
                                            mi_xmlrpc perl snmpstats 

File after making changes:

exclude_modules?=              jabber cpl-c pa postgres osp unixodbc \
                                                                xmpp \
                                      presence pua pua_mi pua_usrloc \
                                             mi_xmlrpc perl snmpstats

Step 4: Compile and install the core and modules.

cd openser-1.2.2-tls
make prefix=/ all
make prefix=/ install

Step 5: Make the required adjustments:

mkdir /var/run/openser
主站蜘蛛池模板: 宜良县| 桓台县| 开封县| 依兰县| 张家界市| 杭州市| 汤阴县| 璧山县| 安新县| 霍州市| 兴化市| 建瓯市| 南城县| 宁化县| 十堰市| 江永县| 蒙自县| 贵港市| 增城市| 伊金霍洛旗| 化州市| 鸡东县| 南投县| 黔西| 油尖旺区| 文山县| 河南省| 鄂托克前旗| 丹东市| 定边县| 浦北县| 宣武区| 台湾省| 浮梁县| 都兰县| 获嘉县| 上高县| 达孜县| 同江市| 昌乐县| 贵德县|