old-www/HOWTO/Sybase-PHP-Apache/instsybase.html

245 lines
3.9 KiB
HTML

<HTML
><HEAD
><TITLE
>Install Sybase</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="HOME"
TITLE="Sybase-PHP-Apache mini-HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Install Linux"
HREF="instlinux.html"><LINK
REL="NEXT"
TITLE="Configure Environment"
HREF="config.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Sybase-PHP-Apache mini-HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="instlinux.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="config.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTSYBASE"
>3. Install Sybase</A
></H1
><P
>Download the Sybase-ASE files from
<A
HREF="http://linux.sybase.com"
TARGET="_top"
>linux.sybase.com</A
>. Sybase-ASE 11.0.3.3 is
free for production. This howto refers to that version.</P
><P
>First, install the Sybase RPMS as root:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
> # rpm -ivh sybase-ase-11_0_3_3-6_i386.rpm
# rpm -ivh sybase-doc-11_0_3_3-6_i386.rpm
# rpm -ivh sybase-ocsd-10_0_4-6_i386.rpm</PRE
></FONT
></TD
></TR
></TABLE
><P
>For information on how to configure Sybase, read the instructions in the
file <TT
CLASS="FILENAME"
>/opt/sybase/doc/howto/howto-ase-quickstart.html</TT
>. This document is very
good, so we shouldn't need any more information here.</P
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Hint: </B
>After you have installed the sample database and run a select against it,
you can stop following the instructions. The rest of the howto goes on
to uninstall the sample database, but we want to keep it for testing later.</P
></BLOCKQUOTE
></DIV
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>NOTE: </B
>Some people have reported problems with the way the Sybase init scripts
try to guess the Sybase directory. If you see the following error:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
> export: sybase-ase-11.0.3.3: not a legal variable name</PRE
></FONT
></TD
></TR
></TABLE
><P
>when trying to run sybinstall.sh, then you need to edit the sybinstall.sh.
Open the script and find the following lines (around line 104):</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
># export SYBASE=/opt/sybase
export SYBASE=`rpm -q --queryformat \
'%{installprefix}\n' sybase-ase-11.0.3.3`</PRE
></FONT
></TD
></TR
></TABLE
><P
>Change these lines so they look like this:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="PROGRAMLISTING"
>export SYBASE=/opt/sybase
#export SYBASE=`rpm -q --queryformat \
# '%{installprefix}\n' sybase-ase-11.0.3.3`</PRE
></FONT
></TD
></TR
></TABLE
><P
>This hardcodes the SYBASE path to /opt/sybase. If you did install Sybase somewhere
non-standard and you get this error, you will have to change this path to point to your
Sybase directory.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="instlinux.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="config.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Install Linux</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Configure Environment</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>