#69 opensipsdbctl throwing errors in Solaris 10

tools (25)


This happens when I launch opensipsdbctl create openser2 on Solaris 10

From what I can see the script uses grep in multiple occasions with the -e parameter.

If grep is launched on Solaris with -e this message is returned.

bash-3.00# grep -e
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .

bash-3.00# /usr/local/sbin/opensipsdbctl create openser2
MySQL password for root:
INFO: test server charset
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . .
WARNING: Your current default mysql characters set cannot be used to create DB. Please choice another one from the following list:

Enter character set name:

grep: illegal option -- E
Usage: grep -hblcnsviw pattern file . . .
/usr/local/lib64/opensips/opensipsctl/opensipsdbctl.mysql: line 118: [: =: unary operator expected
Usage: grep -hblcnsviw pattern file . . .
/usr/local/lib64/opensips/opensipsctl/opensipsdbctl.mysql: line 112: [: =: unary operator expected
INFO: creating database openser2 ...
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
ERROR: Creating core database and grant privileges failed!


  • Sergio Gutierrez

    Hi Alinux.

    What version are you using?


    Sergio Gutiérrez.

  • Sergio Gutierrez

    Hi Alinux.

    I backported a fix which was applied on Trunk. Please update to latest SVN revision of 1.4 branch and try again.

    thanks and regards.

    Sergio G.

  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> saguti
  • Sergio Gutierrez

    • status: open --> closed-fixed
  • Sergio Gutierrez

    Fixed in revision 5076.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks