List:General Discussion« Previous MessageNext Message »
From:<sinisa Date:July 14 1999 2:21pm
Subject:problem installing on Solaris 7 (2.7)
View as plain text  
Craig Sebenik writes:
 > I am trying to install mysql 3.22.25 on a pretty stock solaris 2.7 machine
 > (sparc).
 > 
 > I keep getting the following error during the make:
 > 
 > c++ -DUNDEF_THREADS_HACK -I/usr/local/src/mysql/3.22.25/client/../include
 > -I../include
 > -I/usr/local/src/mysql/3.22.25/client/.. -I/usr/local/src/mysql/3.22.25
 > -I..    -O   -fno-implicit-templates -DDBUG_OFF -D_LARGEFILE_SOURCE
 > -D_FILE_OFFSET_BITS=64 -c /usr/local/src/mysql/3.22.25/client/mysql.cc
 > In file included from /usr/local/src/mysql/3.22.25/client/mysql.cc:54:
 > /usr/include/term.h:1060: syntax error before `,'
 > /usr/include/term.h:1081: syntax error before `;'
 > /usr/include/term.h:1082: syntax error before `;'
 > /usr/include/term.h:1101: syntax error before `['
 > /usr/include/term.h:1108: syntax error before `*'
 > /usr/include/term.h:1111: syntax error before `;'
 > /usr/include/term.h:1115: syntax error before `;'
 > /usr/include/term.h:1116: syntax error before `;'
 > /usr/include/term.h:1209: `chtype' was not declared in this scope
 > /usr/include/term.h:1209: parse error before `('
 > make[2]: *** [mysql.o] Error 1
 > make[2]: Leaving directory `/usr/local/obj/mysql/3.22.25/client'
 > make[1]: *** [all-recursive] Error 1
 > make[1]: Leaving directory `/usr/local/obj/mysql/3.22.25'
 > make: *** [all-recursive-am] Error 2
 > 
 > 
 > I am using egcs 1.1.2:
 > > ./gcc --version
 > egcs-2.91.66
 > 
 > The exact script I use to compile (etc) is below (and attached).
 > 
 > Any help would be appreciated... (If it was something stupid, please be
 > kind... :> )
 > 
 > 
 > #!/bin/sh
 > 
 > _PACKAGE='mysql'	; export _PACKAGE
 > _VERSION='3.22.25'	; export _VERSION
 > 
 > . ./generic.inc
 > 
 > PATH='/usr/local/packages/egcs/1.1.2/bin:/usr/local/bin:/usr/bin:/bin'
 > export PATH
 > PATH="$PATH:/usr/ccs/bin"; export PATH
 > 
 > mkdir -p $_OBJ_DIR
 > cd $_OBJ_DIR
 > echo `pwd`
 > 
 > _CONFIG_OPTS="--prefix="$_INST_DIR"
 >               --srcdir="$_SRC_DIR"
 >               --localstatedir="$_MAIN_DIR"/share/mysql.data
 >               --with-mysqld-user=mysql
 >              "
 > 
 > #make distclean
 > #$_SRC_DIR/configure $_CONFIG_OPTS
 > make
 > #make install
 > 
 > # END
 > 
 > 
 > #!/bin/sh
 > 
 > PATH='/usr/local/bin:/usr/bin:/bin'
 > export PATH
 > 
 > 
 > _MACHINE=`uname -n`					; export _MACHINE
 > _MAIN_DIR='/usr/local'					; export _MAIN_DIR
 > _MAINPKG_DIR=$_MAIN_DIR'/packages'			; export _MAINPKG_DIR
 > _MAINSRC_DIR=$_MAIN_DIR'/src'				; export _MAINSRC_DIR
 > 
 > _SRC_DIR=$_MAINSRC_DIR'/'$_PACKAGE'/'$_VERSION		; export _SRC_DIR
 > _PKG_DIR=$_MAINPKG_DIR'/'$_PACKAGE			; export _PKG_DIR
 > _INST_DIR=$_PKG_DIR'/'$_VERSION				; export _PKG_DIR
 > _OBJ_DIR=$_MAIN_DIR'/obj/'$_PACKAGE'/'$_VERSION		; export _SRC_DIR
 > 
 > _PERL_EXEC=$_MAIN_DIR'/bin/perl'			; export _PERL_EXEC
 > 
 > PATH=$_MAIN_DIR/bin:$PATH
 > export PATH
 > 
 > # End of file.
 > 
 >  --
 > ------------------------------------------------------
 > Craig Sebenik                         craig@stripped
 > Web Architect                         (408)822-6192
 > Network Appliance                     www.netapp.com
 > #!/bin/sh
 > 
 > _PACKAGE='mysql'	; export _PACKAGE
 > _VERSION='3.22.25'	; export _VERSION
 > 
 > . ./generic.inc
 > 
 > PATH='/usr/local/packages/egcs/1.1.2/bin:/usr/local/bin:/usr/bin:/bin'
 > export PATH
 > PATH="$PATH:/usr/ccs/bin"; export PATH
 > 
 > mkdir -p $_OBJ_DIR
 > cd $_OBJ_DIR
 > echo `pwd`
 > 
 > _CONFIG_OPTS="--prefix="$_INST_DIR"
 >               --srcdir="$_SRC_DIR"
 >               --localstatedir="$_MAIN_DIR"/share/mysql.data
 >               --with-mysqld-user=mysql
 >              "
 > 
 > #make distclean
 > #$_SRC_DIR/configure $_CONFIG_OPTS
 > make
 > #make install
 > 
 > #!/bin/sh
 > 
 > PATH='/usr/local/bin:/usr/bin:/bin'
 > export PATH
 > 
 > 
 > _MACHINE=`uname -n`					; export _MACHINE
 > _MAIN_DIR='/usr/local'					; export _MAIN_DIR
 > _MAINPKG_DIR=$_MAIN_DIR'/packages'			; export _MAINPKG_DIR
 > _MAINSRC_DIR=$_MAIN_DIR'/src'				; export _MAINSRC_DIR
 > 
 > _SRC_DIR=$_MAINSRC_DIR'/'$_PACKAGE'/'$_VERSION		; export _SRC_DIR
 > _PKG_DIR=$_MAINPKG_DIR'/'$_PACKAGE			; export _PKG_DIR
 > _INST_DIR=$_PKG_DIR'/'$_VERSION				; export _PKG_DIR
 > _OBJ_DIR=$_MAIN_DIR'/obj/'$_PACKAGE'/'$_VERSION		; export _SRC_DIR
 > 
 > _PERL_EXEC=$_MAIN_DIR'/bin/perl'			; export _PERL_EXEC
 > 
 > PATH=$_MAIN_DIR/bin:$PATH
 > export PATH
 > 
 > # End of file.
 > 

Hi!

Do one of the following:

1. Get binary distribution for Solaris

2. Read carefully Solaris notes in the manual.


Sinisa

+----------------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___     ==  mysql@stripped            |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic          |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:sinisa@stripped|
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaka, Cyprus             |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                             |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                            |
|             /*/             \*\                Developers Team       |
+----------------------------------------------------------------------+
Thread
problem installing on Solaris 7 (2.7)Craig Sebenik14 Jul
  • problem installing on Solaris 7 (2.7)sinisa14 Jul
Re: problem installing on Solaris 7 (2.7)Joe Kislo14 Jul
  • Re: problem installing on Solaris 7 (2.7)Craig Sebenik15 Jul