[ opensips-Bugs-2818243 ] "make deb" but opensipsdbctl looks in /usr/local/

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ opensips-Bugs-2818243 ] "make deb" but opensipsdbctl looks in /usr/local/

SourceForge.net
Bugs item #2818243, was opened at 2009-07-08 00:54
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2818243&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: trunk
>Status: Closed
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Iñaki Baz Castillo (ibc_sf)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: "make deb" but opensipsdbctl looks in /usr/local/

Initial Comment:
I install OpenSIPS trunk by "make deb", but when running "opensipsdbctl" I get this error:

-------------
ERROR: could not load the script in /usr/local/lib64/opensips/opensipsctl/opensipsdbctl.mysql for database engine MYSQL
ERROR: database engine not loaded - tried 'MYSQL'
-------------

Of course, the correct path in which that file is is the following:
  /usr/lib64/opensips/opensipsctl/


----------------------------------------------------------------------

Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-07-21 14:19

Message:
Good point!

Yeah, I had two instances of the script:

- old one:  /usr/local/sbin/opensipsdbctl
- new one: /usr/sbin/opensipsdbctl

However in my PATH /usr/local/sbin has preference.

Perhaps the old  /usr/local/sbin/opensipsdbctl was creating some time
ago...
Deleting it makes the new sciprt to work properly :)

Thanks and sorry for the wrong report.


----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2009-07-21 14:07

Message:
so, are you sure :

1) you use the correct opensipsdbctl file (check the PATH order)

2) you do not overide the MYLIBDIR via env vars.

Regards,
Bogdan

----------------------------------------------------------------------

Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-07-21 13:30

Message:
It seems to be the expected (and correct one):

if [ -z "$MYLIBDIR" ] ; then
        MYLIBDIR="/usr/lib/opensips/opensipsctl"
        if [ ! -d "$MYLIBDIR" ]; then
                MYLIBDIR=$MYDIR
        fi
fi


----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2009-07-21 12:37

Message:
Hi Inaki,

could you post here, from the /usr/sbin/opensipsdbctl file, the code
chunk:

if [ -z "$MYLIBDIR" ] ; then
        MYLIBDIR="................"
        if [ ! -d "$MYLIBDIR" ]; then
                MYLIBDIR=$MYDIR
        fi
fi


I'm interested in the value of MYLIBDIR variable for your installation.

Regards,
Bogdan


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2818243&group_id=232389

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel