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

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
主站蜘蛛池模板: 浙江省| 手游| 无棣县| 顺平县| 砀山县| 吴江市| 东乌珠穆沁旗| 梁平县| 太和县| 太湖县| 东乡县| 侯马市| 城市| 玛沁县| 望都县| 商城县| 敦化市| 旬阳县| 沂水县| 绩溪县| 成都市| 阿克陶县| 雅安市| 四平市| 绥江县| 呼和浩特市| 延安市| 兰西县| 五华县| 同江市| 浦县| 巴南区| 深圳市| 苗栗市| 民和| 安庆市| 平南县| 黎平县| 加查县| 雷州市| 荥阳市|