old-www/HOWTO/Sybase-ASA-HOWTO/install.html

405 lines
6.2 KiB
HTML

<HTML
><HEAD
><TITLE
>Installation</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
"><LINK
REL="HOME"
TITLE="Sybase Adaptive Server Anywhere for Linux HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Requirements"
HREF="requirements.html"><LINK
REL="NEXT"
TITLE="Creating, Running and Connecting to Databases"
HREF="x428.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 Adaptive Server Anywhere for Linux HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="requirements.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x428.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTALL"
>3. Installation</A
></H1
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN343"
>3.1. Process</A
></H2
><P
></P
><OL
TYPE="1"
><LI
><P
>Log on as root. </P
></LI
><LI
><P
>Place the CD-ROM into the CD-ROM drive. </P
></LI
><LI
><P
>Mount the CD-ROM. Usually, it gets mounted to /mnt/cdrom.
If so, enter the following command: </P
><P
><B
CLASS="COMMAND"
>mount /mnt/cdrom</B
></P
></LI
><LI
><P
>At a command prompt, change to the CD-ROM directory.
If the CD-ROM was mounted to /mnt/cdrom/, use the following command: </P
><P
><B
CLASS="COMMAND"
>cd /mnt/cdrom</B
></P
></LI
><LI
><P
>Start the setup script by entering the following
command: </P
><P
><B
CLASS="COMMAND"
>./setup</B
></P
></LI
><LI
><P
>The setup script prompts you with information about
installing SQL Anywhere Studio for UNIX. Enter any information you
are prompted for, and press the Enter key to continue. </P
></LI
></OL
><P
>By default, SQL Anywhere Studio is installed into a directory
named SYBSsa7 under /opt/sybase on Solaris, Linux, and HP-UX, and
under /usr/lpp/sybase on AIX. You can specify another installation
directory if you wish. </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN365"
>3.2. Distribution-specific considerations
(for TurboLinux and Caldera)</A
></H2
><P
>After installation, you should follow these instructions if
you are running either TurboLinux 6.0 or Caldera 2.2. </P
><P
>For TurboLinux 6.0 only, change to directory /usr/lib and
create a symbolic link using the following command. </P
><P
><B
CLASS="COMMAND"
>ln -s libstdc++-libc6.1-2.so.3 libstdc++-libc6.1-1.so.2 </B
></P
><P
>For Caldera 2.2 only, change to directory /usr/lib and create
a symbolic link using the following command. </P
><P
><B
CLASS="COMMAND"
>ln -s /usr/lib/libstdc++-2.9.0 /usr/lib/libstdc++-libc6.1-1.so.2 </B
></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN374"
>3.3. Setting the Environment Variables</A
></H2
><P
>Each user who uses the software must set the necessary environment
variables for Adaptive Server Anywhere. To help you do that, the
installation program puts two script files, asa_config.sh and asa_config.csh,
in the directory /<EM
>InstallDir</EM
>/SYBSsa7/bin. <EM
>InstallDir</EM
> is
the directory where you chose to install Adaptive Server Anywhere. </P
><P
>Depending on which shell you're using, enter the appropriate
command from <EM
>InstallDir</EM
>. </P
><DIV
CLASS="TABLE"
><A
NAME="AEN381"
></A
><P
><B
>Table 5. </B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="220"
ALIGN="LEFT"
VALIGN="TOP"
><EM
>If you're using this shell...</EM
></TD
><TD
WIDTH="303"
ALIGN="LEFT"
VALIGN="TOP"
><EM
>...use this command.</EM
></TD
></TR
><TR
><TD
WIDTH="220"
ALIGN="LEFT"
VALIGN="TOP"
>sh, ksh, bash</TD
><TD
WIDTH="303"
ALIGN="LEFT"
VALIGN="TOP"
>. ./SYBSsa7/bin/asa_config.sh</TD
></TR
><TR
><TD
WIDTH="220"
ALIGN="LEFT"
VALIGN="TOP"
>csh, tcsh</TD
><TD
WIDTH="303"
ALIGN="LEFT"
VALIGN="TOP"
>source ./SYBSsa7/bin/asa_config.csh</TD
></TR
></TBODY
></TABLE
></DIV
><P
>You may also want to insert the above commands into your copy
of .profile or .bash_profile to have the environment variables ready
every time you log in. </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN399"
>3.4. Where did it get installed?</A
></H2
><DIV
CLASS="TABLE"
><A
NAME="AEN401"
></A
><P
><B
>Table 6. </B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="513"
ALIGN="LEFT"
VALIGN="TOP"
>Most Adaptive Server Anywhere
command line utilities (names beginning with db)</TD
><TD
WIDTH="337"
ALIGN="LEFT"
VALIGN="TOP"
>/<EM
>InstallDir</EM
>/SYBSsa7/bin</TD
></TR
><TR
><TD
WIDTH="513"
ALIGN="LEFT"
VALIGN="TOP"
>Sybase Central</TD
><TD
WIDTH="337"
ALIGN="LEFT"
VALIGN="TOP"
>/<EM
>InstallDir</EM
>/shared/sybcentral40/java</TD
></TR
><TR
><TD
WIDTH="513"
ALIGN="LEFT"
VALIGN="TOP"
>Sample database</TD
><TD
WIDTH="337"
ALIGN="LEFT"
VALIGN="TOP"
>/<EM
>InstallDir</EM
>/SYBSsa7</TD
></TR
><TR
><TD
WIDTH="513"
ALIGN="LEFT"
VALIGN="TOP"
>Online documentation</TD
><TD
WIDTH="337"
ALIGN="LEFT"
VALIGN="TOP"
>/<EM
>CDROM</EM
>/help/contents.htm
or/InstallDir/SYBSsa7/doc/contents.htm</TD
></TR
></TBODY
></TABLE
></DIV
><P
><EM
>CDROM</EM
> is the directory where your CD-ROM
is mounted, which is usually /mnt/cdrom/. </P
><P
><EM
>InstallDir</EM
> is the directory where you
chose to install Adaptive Server Anywhere. </P
><P
>The first two directories are put into the path by asa_config.sh
or asa_config.csh, so if you've already executed one of them as
mentioned in the previous section, you won't have to change directories
to get to most of the executables associated with Adaptive Server
Anywhere. </P
></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="requirements.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="x428.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Requirements</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Creating, Running and Connecting to Databases</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>