Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Tutorials



Installing Sybase on Your Linux Server
Installing Sybase: A Primer

Alexander Prohorenko
Thursday, July 18, 2002 03:20:19 PM

The first thing to do is visit http://www.sybase.com, register there, and download neccessary installation software packages for Linux:

  • sybase-ase-11.9.2 - server itself
  • sybase-common-11.9.2 - common libraries
  • sybase-doc-11.9.2 - documentation, in English, very usefulfor administrators or developers
  • sybase-openclient - client for Linux (libraries) for server access
  • README.txt - file with description of procedure of server installation

It is here that you may get a slightly unpleasant surprise, because Sybase for Linux comes only in RPM files. It's a big minus for Debian and Slackware users.

Now comes package installation. Here we need to have superuser rights, from xterm or some other X Window program--not the console (why this is so is something I will describe you a bit later).

Sybase is rather "heavy" software and it needs at least 260MB of free space on your hard disk to be installed properly. So, you should make sure, that you have the space:

df -k /opt
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1              7234264   6086180    780600  89% /opt

Also, make sure you add the directory /sbin to the PATH variable if it's not there already:

export PATH=$PATH:/sbin
Now we can install packages:
rpm -hiv sybase-common-11.9.2-3.i386.rpm
rpm -hiv sybase-ase-11.9.2-.i386.rpm
rpm -hiv sybase-doc-11.9.2-1.i386.rpm
rpm -hiv sybase-openclient-11.1.1-3.i386.rpm

After complete package installation we need to edit /etc/profile next and add these two strings:


SYBASE=/opt/sybase-11.9.2
export SYBASE

These will define the system variable SYBASE, which will point to whichever directory Sybase is installed. If you skip this step, the server will not work. We also need to execute these commands from the terminal:


SYBASE=/opt/sybase-11.9.2
export SYBASE

Last, but not least, we will execute a shell script that will allow us to setup system configuration for server startup:


cd $SYBASE
$SYBASE/install/sybinstall.sh

This script will create the user and group called sybase.

Now we will configure the server.


su sybase
$ id
uid=507(sybase) gid=510(sybase) group=510(sybase)
$ . .profile
.......
Do you want to start 'srvbuild' now? [y/n]: y

Now we come to the surprise I mentioned a few paragraphs ago. srvbuild is an auto-executed graphic installation program. This is why you needed to start this process in X Window. (Strictly speaking, we don't need X Window server exactly on database server, we can just correctly set the system variable DISPLAY and work remotely.) We'll detail how this works in the next section.

Next: Building with srvbuild »

Skip Ahead

1 Why Look at Sybase?
2 Installing Sybase: A Primer
3 Building with srvbuild
4 Localizing Sybase





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers