Re: Problem with new instalation
Posted in 2000
"Art S. Kagel & Family" wrote:
>
> Chris du Preez wrote:
> >
> > I've installed informix dynamic server 7.3 and Informix-Connect 2.10.
> > When i execute the script file dbaccessdemo7 i get the following error
> >
> > DBACCESS Demonstration Database Installation Script
> >
> > Creating stores7 database ....
> >
> > /opt/informix/bin/dbaccessdemo7: test: integer expression expected
> > before -eq
> > /opt/informix/bin/dbaccessdemo7: test: integer expression expected
> > before -eq
>
> These above look like shell scripting errors. The -eq operator is ksh
> for comparing two numberic values for equality. Try "ksh
> $INFORMIXDIR/bin/dbaccessdemo7". Bash folows Bourne shell on this
> kind of operation.
I beg to differ. The -eq operator is very Bourne shell. What it's saying
is that one of the values is not set. Smacks at environment to me. You
can see what is not set by sh -x $INFORMIXDIR/bin/dbaccessdemo7 or put
set -x at the top of the script.
> > The specified service name or protocol is unknown.
> > Error in line 1> > Near character position 1
> >
> > The specified service name or protocol is unknown.
>
> You have to enter the service you configured in the sqlhosts file in
> /etc/services and if you are using DNS make sure the local lookups are
> performed first.
Okay, so it might not be environment, but it could be something simple
like setting INFORMIXSERVER. :-)
It is possibly the check for a port number as Art says. I don't have the
script in front of me. Also check you are pointing to the correct
sqlhosts file.
Cheers,
--
Mark.
+----------------------------------------------------------+-----------+
| Mark D. Stock mailto:mdstock@mydas.freeserve.co.uk |//////// /|
| http://www.informix.com http://www.informixhandbook.com |///// / //|
| http://www.iiug.org +-----------------------------------+//// / ///|
| |What year 2000 bug? year 2000 bug? |/// / ////|
| |year 2000 bug? year 2000 bug? year |// / /////|
| |2000 bug? year 2000 bug? year 1900 |/ ////////|
+----------------------+-----------------------------------+-----------+