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

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
主站蜘蛛池模板: 安康市| 望江县| 白山市| 广东省| 大新县| 玛沁县| 图们市| 那曲县| 开封县| 长寿区| 台北县| 卫辉市| 西林县| 夏河县| 斗六市| 云浮市| 富平县| 资阳市| 平乐县| 讷河市| 通州区| 莆田市| 密云县| 沈丘县| 五河县| 玉田县| 新宾| 松滋市| 乌拉特前旗| 赤水市| 济阳县| 房产| 奇台县| 荔波县| 凯里市| 安达市| 东方市| 渭源县| 如东县| 惠水县| 昌平区|