[OpenSIPS-Users] OpenSIPS 1.5 gives error installing building db_mysql.so

Faisal Khan amalasra at yahoo.com
Mon Mar 30 10:13:29 CEST 2009


Dear Khan,
It is documented that you have to use the same set of prefix in case of  "make all" and then "make install"
So either you use the default folder that holds the source for both cases or set it as follows:  


make
prefix=/ all include_modules=’db_mysql’
make
prefix=/ install include_modules=’db_mysql’

I suppose this will get you moving, if it does do drop a line of confirmation.
Cheers
Momi



________________________________
From: Khan <khansfriend at gmail.com>
To: users at lists.opensips.org
Sent: Sunday, March 29, 2009 11:48:18 AM
Subject: [OpenSIPS-Users] OpenSIPS 1.5 gives error installing building db_mysql.so

Hello every one,

I been having problems with 1.4.4, thus i decided to remove 1.4 before
installing newer version 1.5 to avoid any conflicts but I can't get
any further because the error in building db_mysql module "ERROR:
module modules/”db_mysql”/”db_mysql”.so not compiled
"

Following is what I have done...

# rm -R /usr/local/sbin/opensips
# rm -R /usr/local/share/opensips
/*
# rm -R /usr/local/share/opensips


# rm -R /usr/local/lib64/opensips
# rm -R /usr/src/opensips-1.4.4-tls/opensips
/*
# rm -R /usr/src/opensips-1.4.4-tls/opensips

# rm -R /var/lib/mysql/opensips


root at xxx:/usr/src# tar -xzvf opensips-1.5.0-tls_src.tar.gz
root at xxx:/usr/src# cd opensips-1.5.0-tls

root at xxx:/usr/src/opensips-1.5.0-tls# make clean

root at xxx:/usr/src/opensips-1.5.0-tls# make all include_modules=”db_mysql”


root at xxx:/usr/src/opensips-1.5.0-tls# make prefix=/usr/local install
include_modules=”db_mysql”




Please help me resolve this, I really didn't find any solution and I
am really frustrated at this point...



Following is snapshot of the screen...

# install MySQL stuff

if [ "yes" = "yes" ]; then \

            mkdir -p /usr/local/lib64/opensips/opensipsctl ; \

            sed -e "s#/usr/local/sbin#/usr/local/sbin/#g" \

                < scripts/opensipsctl.mysql > /tmp/opensipsctl.mysql ; \

            install  -m 644 /tmp/opensipsctl.mysql \

                /usr/local/lib64/opensips/opensipsctl/opensipsctl.mysql ; \

            rm -fr /tmp/opensipsctl.mysql ; \

            sed -e "s#/usr/local/share/opensips#/usr/local/share/opensips/#g" \

            < scripts/opensipsdbctl.mysql > /tmp/opensipsdbctl.mysql ; \

            touch           /usr/local/lib64/opensips/opensipsctl/opensipsdbctl.mysql ; \

            install  -m 644 /tmp/opensipsdbctl.mysql
/usr/local/lib64/opensips/opensipsctl/ ; \

            rm -fr /tmp/opensipsdbctl.mysql ; \

            mkdir -p /usr/local/share/opensips//mysql ; \

            for FILE in scripts/mysql/acc-create.sql
scripts/mysql/alias_db-create.sql scripts/mysql/auth_db-create.sql
scripts/mysql/avpops-create.sql scripts/mysql/carrierroute-create.sql
scripts/mysql/closeddial-create.sql scripts/mysql/cpl-create.sql
scripts/mysql/dialog-create.sql scripts/mysql/dialplan-create.sql
scripts/mysql/dispatcher-create.sql scripts/mysql/domain-create.sql
scripts/mysql/domainpolicy-create.sql
scripts/mysql/drouting-create.sql scripts/mysql/group-create.sql
scripts/mysql/imc-create.sql scripts/mysql/lcr-create.sql
scripts/mysql/load_balancer-create.sql scripts/mysql/msilo-create.sql
scripts/mysql/nathelper-create.sql scripts/mysql/pdt-create.sql
scripts/mysql/permissions-create.sql scripts/mysql/presence-create.sql
scripts/mysql/registrar-create.sql scripts/mysql/rls-create.sql
scripts/mysql/siptrace-create.sql scripts/mysql/speeddial-create.sql
scripts/mysql/standard-create.sql scripts/mysql/uri_db-create.sql
scripts/mysql/userblacklist-create.sql scripts/mysql/usrloc-create.sql
; do \

                if [ -f $FILE ] ; then \

                touch           $FILE \

                    /usr/local/share/opensips//mysql/`basename "$FILE"` ; \

                install  -m 644 $FILE \

                    /usr/local/share/opensips//mysql/`basename "$FILE"` ; \

                fi ;\

            done ; \

        fi

# install PostgreSQL stuff

if [ "no" = "yes" ]; then \

            mkdir -p /usr/local/lib64/opensips/opensipsctl ; \

            sed -e "s#/usr/local/sbin#/usr/local/sbin/#g" \

                < scripts/opensipsctl.pgsql > /tmp/opensipsctl.pgsql ; \

            install  -m 644 /tmp/opensipsctl.pgsql \

                /usr/local/lib64/opensips/opensipsctl/opensipsctl.pgsql ; \

            rm -fr /tmp/opensipsctl.pgsql ; \

            sed -e "s#/usr/local/share/opensips#/usr/local/share/opensips/#g" \

                < scripts/opensipsdbctl.pgsql > /tmp/opensipsdbctl.pgsql ; \

            touch           /usr/local/lib64/opensips/opensipsctl/opensipsdbctl.pgsql ; \

            install  -m 644 /tmp/opensipsdbctl.pgsql
/usr/local/lib64/opensips/opensipsctl/ ; \

            rm -fr /tmp/opensipsdbctl.pgsql ; \

            mkdir -p /usr/local/share/opensips//postgres ; \

            for FILE in scripts/postgres/acc-create.sql
scripts/postgres/alias_db-create.sql
scripts/postgres/auth_db-create.sql scripts/postgres/avpops-create.sql
scripts/postgres/carrierroute-create.sql
scripts/postgres/cpl-create.sql scripts/postgres/dialog-create.sql
scripts/postgres/dialplan-create.sql
scripts/postgres/dispatcher-create.sql
scripts/postgres/domain-create.sql
scripts/postgres/domainpolicy-create.sql
scripts/postgres/drouting-create.sql scripts/postgres/group-create.sql
scripts/postgres/imc-create.sql scripts/postgres/lcr-create.sql
scripts/postgres/load_balancer-create.sql
scripts/postgres/msilo-create.sql
scripts/postgres/nathelper-create.sql scripts/postgres/pdt-create.sql
scripts/postgres/permissions-create.sql
scripts/postgres/presence-create.sql
scripts/postgres/registrar-create.sql scripts/postgres/rls-create.sql
scripts/postgres/siptrace-create.sql
scripts/postgres/speeddial-create.sql
scripts/postgres/standard-create.sql
scripts/postgres/uri_db-create.sql
scripts/postgres/userblacklist-create.sql
scripts/postgres/usrloc-create.sql ; do \

                if [ -f $FILE ] ; then \

                touch           $FILE \

                    /usr/local/share/opensips//postgres/`basename "$FILE"` ; \

                install  -m 644 $FILE \

                    /usr/local/share/opensips//postgres/`basename "$FILE"` ; \

                fi ;\

            done ; \

        fi

# install Oracle stuff

if [ "no" = "yes" ]; then \

            mkdir -p /usr/local/lib64/opensips/opensipsctl ; \

            sed -e "s#/usr/local/sbin#/usr/local/sbin/#g" \

                < scripts/opensipsctl.oracle > /tmp/opensipsctl.oracle ; \

            install  -m 644 /tmp/opensipsctl.oracle \

                /usr/local/lib64/opensips/opensipsctl/opensipsctl.oracle ; \

            rm -fr /tmp/opensipsctl.oracle ; \

            sed -e "s#/usr/local/share/opensips#/usr/local/share/opensips/#g" \

            < scripts/opensipsdbctl.oracle > /tmp/opensipsdbctl.oracle ; \

            touch
/usr/local/lib64/opensips/opensipsctl/opensipsdbctl.oracle ; \

            install  -m 644 /tmp/opensipsdbctl.oracle
/usr/local/lib64/opensips/opensipsctl/ ; \

            rm -fr /tmp/opensipsdbctl.oracle ; \

            sed -e "s#/usr/local/share/opensips#/usr/local/share/opensips/#g" \

            < scripts/opensipsdbfunc.oracle > /tmp/opensipsdbfunc.oracle ; \

            touch
/usr/local/lib64/opensips/opensipsctl/opensipsdbfunc.oracle ; \

            install  -m 644 /tmp/opensipsdbfunc.oracle
/usr/local/lib64/opensips/opensipsctl/ ; \

            rm -fr /tmp/opensipsdbfunc.oracle ; \

            mkdir -p /usr/local/share/opensips//oracle ; \

            for FILE in scripts/oracle/acc-create.sql scripts/oracle/admin
scripts/oracle/alias_db-create.sql scripts/oracle/auth_db-create.sql
scripts/oracle/avpops-create.sql
scripts/oracle/carrierroute-create.sql scripts/oracle/cpl-create.sql
scripts/oracle/dialog-create.sql scripts/oracle/dialplan-create.sql
scripts/oracle/dispatcher-create.sql scripts/oracle/domain-create.sql
scripts/oracle/domainpolicy-create.sql
scripts/oracle/drouting-create.sql scripts/oracle/group-create.sql
scripts/oracle/imc-create.sql scripts/oracle/inc
scripts/oracle/lcr-create.sql scripts/oracle/load_balancer-create.sql
scripts/oracle/msilo-create.sql scripts/oracle/nathelper-create.sql
scripts/oracle/pdt-create.sql scripts/oracle/permissions-create.sql
scripts/oracle/presence-create.sql scripts/oracle/README.TYPES
scripts/oracle/registrar-create.sql scripts/oracle/rls-create.sql
scripts/oracle/siptrace-create.sql scripts/oracle/speeddial-create.sql
scripts/oracle/standard-create.sql scripts/oracle/uri_db-create.sql
scripts/oracle/userblacklist-create.sql
scripts/oracle/usrloc-create.sql ; do \

                if [ -f $FILE ] ; then \

                touch           $FILE \

                    /usr/local/share/opensips//oracle/`basename "$FILE"` ; \

                install  -m 644 $FILE \

                    /usr/local/share/opensips//oracle/`basename "$FILE"` ; \

                fi ;\

            done ; \

            mkdir -p /usr/local/share/opensips//oracle/inc ; \

            for FILE in scripts/oracle/inc/_create_compat.sql
scripts/oracle/inc/_createsch.tmpl scripts/oracle/inc/_dropsch.tmpl
scripts/oracle/inc/_grantfunc.tmpl scripts/oracle/inc/_grantroot.tmpl
; do \

                if [ -f $FILE ] ; then \

                touch           $FILE \

                    /usr/local/share/opensips//oracle/inc/`basename "$FILE"` ; \

                install  -m 644 $FILE \

                    /usr/local/share/opensips//oracle/inc/`basename "$FILE"` ; \

                fi ;\

            done ; \

            mkdir -p /usr/local/share/opensips//oracle/admin ; \

            for FILE in scripts/oracle/admin/_create_as_sys.tmpl
scripts/oracle/admin/_drop_as_sys.tmpl scripts/oracle/admin/README ;
do \

                if [ -f $FILE ] ; then \

                touch           $FILE \

                    /usr/local/share/opensips//oracle/admin/`basename "$FILE"` ; \

                install  -m 644 $FILE \

                    /usr/local/share/opensips//oracle/admin/`basename "$FILE"` ; \

                fi ;\

            done ; \

            install  -m 755 utils/db_oracle/opensips_orasel /usr/local/sbin/ ; \

        fi

# install Berkeley database stuff

if [ "no" = "yes" ]; then \

            mkdir -p /usr/local/lib64/opensips/opensipsctl ; \

            sed -e "s#/usr/local/share/opensips/#/usr/local/share/opensips/#g" \

                < scripts/opensipsctl.db_berkeley > /tmp/opensipsctl.db_berkeley ; \

            install  -m 644 /tmp/opensipsctl.db_berkeley \

                /usr/local/lib64/opensips/opensipsctl/opensipsctl.db_berkeley ; \

            rm -fr /tmp/opensipsctl.db_berkeley ; \

            sed -e "s#/usr/local/share/opensips#/usr/local/share/opensips/#g" \

                < scripts/opensipsdbctl.db_berkeley > /tmp/opensipsdbctl.db_berkeley ; \

            touch
/usr/local/lib64/opensips/opensipsctl/opensipsdbctl.db_berkeley ; \

            install  -m 644 /tmp/opensipsdbctl.db_berkeley
/usr/local/lib64/opensips/opensipsctl/ ; \

            rm -fr /tmp/opensipsdbctl.db_berkeley ; \

            mkdir -p /usr/local/share/opensips//db_berkeley/opensips ; \

            for FILE in scripts/db_berkeley/opensips/acc
scripts/db_berkeley/opensips/active_watchers
scripts/db_berkeley/opensips/address
scripts/db_berkeley/opensips/aliases
scripts/db_berkeley/opensips/carrierfailureroute
scripts/db_berkeley/opensips/carrierroute
scripts/db_berkeley/opensips/cpl
scripts/db_berkeley/opensips/dbaliases
scripts/db_berkeley/opensips/dialog
scripts/db_berkeley/opensips/dialplan
scripts/db_berkeley/opensips/dispatcher
scripts/db_berkeley/opensips/domain
scripts/db_berkeley/opensips/domainpolicy
scripts/db_berkeley/opensips/dr_gateways
scripts/db_berkeley/opensips/dr_groups
scripts/db_berkeley/opensips/dr_rules
scripts/db_berkeley/opensips/globalblacklist
scripts/db_berkeley/opensips/grp scripts/db_berkeley/opensips/gw
scripts/db_berkeley/opensips/imc_members
scripts/db_berkeley/opensips/imc_rooms
scripts/db_berkeley/opensips/lcr
scripts/db_berkeley/opensips/load_balancer
scripts/db_berkeley/opensips/location
scripts/db_berkeley/opensips/missed_calls
scripts/db_berkeley/opensips/nh_sockets
scripts/db_berkeley/opensips/pdt
scripts/db_berkeley/opensips/presentity
scripts/db_berkeley/opensips/pua scripts/db_berkeley/opensips/re_grp
scripts/db_berkeley/opensips/rls_presentity
scripts/db_berkeley/opensips/rls_watchers
scripts/db_berkeley/opensips/route_tree
scripts/db_berkeley/opensips/silo
scripts/db_berkeley/opensips/sip_trace
scripts/db_berkeley/opensips/speed_dial
scripts/db_berkeley/opensips/subscriber
scripts/db_berkeley/opensips/trusted scripts/db_berkeley/opensips/uri
scripts/db_berkeley/opensips/userblacklist
scripts/db_berkeley/opensips/usr_preferences
scripts/db_berkeley/opensips/version
scripts/db_berkeley/opensips/watchers
scripts/db_berkeley/opensips/xcap ; do \

                if [ -f $FILE ] ; then \

                touch           $FILE \

                    /usr/local/share/opensips//db_berkeley/opensips/`basename "$FILE"` ; \

                install  -m 644 $FILE \

                    /usr/local/share/opensips//db_berkeley/opensips/`basename "$FILE"` ; \

                fi ;\

            done ; \

            install  -m 755 utils/db_berkeley/bdb_recover /usr/local/sbin/ ; \

        fi

# install dbtext stuff

if [ "yes" = "yes" ]; then \

            mkdir -p /usr/local/lib64/opensips/opensipsctl ; \

            sed -e "s#/usr/local/share/opensips/#/usr/local/share/opensips/#g" \

                < scripts/opensipsctl.dbtext > /tmp/opensipsctl.dbtext ; \

            install  -m 644 /tmp/opensipsctl.dbtext \

                /usr/local/lib64/opensips/opensipsctl/opensipsctl.dbtext ; \

            rm -fr /tmp/opensipsctl.dbtext ; \

            sed -e "s#/usr/local/share/opensips#/usr/local/share/opensips/#g" \

                < scripts/opensipsdbctl.dbtext > /tmp/opensipsdbctl.dbtext ; \

            touch
/usr/local/lib64/opensips/opensipsctl/opensipsdbctl.dbtext ; \

            install  -m 644 /tmp/opensipsdbctl.dbtext
/usr/local/lib64/opensips/opensipsctl/ ; \

            rm -fr /tmp/opensipsdbctl.dbtext ; \

            mkdir -p /usr/local/lib64/opensips/opensipsctl/dbtextdb ; \

            touch
/usr/local/lib64/opensips/opensipsctl/dbtextdb/dbtextdb.py ; \

            install  -m 755 scripts/dbtextdb/dbtextdb.py
/usr/local/lib64/opensips/opensipsctl/dbtextdb/ ; \

            mkdir -p /usr/local/share/opensips//dbtext/opensips ; \

            for FILE in scripts/dbtext/opensips/acc
scripts/dbtext/opensips/active_watchers
scripts/dbtext/opensips/address scripts/dbtext/opensips/aliases
scripts/dbtext/opensips/carrierfailureroute
scripts/dbtext/opensips/carrierroute scripts/dbtext/opensips/cpl
scripts/dbtext/opensips/dbaliases scripts/dbtext/opensips/dialog
scripts/dbtext/opensips/dialplan scripts/dbtext/opensips/dispatcher
scripts/dbtext/opensips/domain scripts/dbtext/opensips/domainpolicy
scripts/dbtext/opensips/dr_gateways scripts/dbtext/opensips/dr_groups
scripts/dbtext/opensips/dr_rules
scripts/dbtext/opensips/globalblacklist scripts/dbtext/opensips/grp
scripts/dbtext/opensips/gw scripts/dbtext/opensips/imc_members
scripts/dbtext/opensips/imc_rooms scripts/dbtext/opensips/lcr
scripts/dbtext/opensips/load_balancer scripts/dbtext/opensips/location
scripts/dbtext/opensips/missed_calls
scripts/dbtext/opensips/nh_sockets scripts/dbtext/opensips/pdt
scripts/dbtext/opensips/presentity scripts/dbtext/opensips/pua
scripts/dbtext/opensips/re_grp scripts/dbtext/opensips/rls_presentity
scripts/dbtext/opensips/rls_watchers
scripts/dbtext/opensips/route_tree scripts/dbtext/opensips/silo
scripts/dbtext/opensips/sip_trace scripts/dbtext/opensips/speed_dial
scripts/dbtext/opensips/subscriber scripts/dbtext/opensips/trusted
scripts/dbtext/opensips/uri scripts/dbtext/opensips/userblacklist
scripts/dbtext/opensips/usr_preferences
scripts/dbtext/opensips/version scripts/dbtext/opensips/watchers
scripts/dbtext/opensips/xcap ; do \

                if [ -f $FILE ] ; then \

                    touch           $FILE \

                        /usr/local/share/opensips//dbtext/opensips/`basename "$FILE"` ; \

                    install  -m 644 $FILE \

                        /usr/local/share/opensips//dbtext/opensips/`basename "$FILE"` ; \

                fi ;\

            done ;\

        fi

ERROR: module modules/”db_mysql”/”db_mysql”.so not compiled

make[1]: Entering directory `/usr/src/opensips-1.5.0-tls/modules/acc'

make[1]: Nothing to be done for `install_module_custom'.

make[1]: Leaving directory `/usr/src/opensips-1.5.0-tls/modules/acc'

make[1]: Entering directory `/usr/src/opensips-1.5.0-tls/modules/alias_db'

make[1]: Nothing to be done for `install_module_custom'.



Thanks in advance...

Khan

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090330/cfab9e97/attachment-0001.htm 


More information about the Users mailing list