SCal Server Setup Directions
Last updated March 9, 2002.
If you want to run an SCal server, then this document is for you.
I'm going to assume the following:
-
You know how to get source code from SourceForge with cvs.
-
You have PostgreSQL installed.
-
You either A) know how to program or B) are not afraid to try.
There isn't any serious programming involved. You just have to
modify one or two things for you system.
NOTE: I've only run this code on Red Hat Linux 7.2 with PostgreSQL version 7.1.3. I don't know of any
reasons why other versions wouldn't work, but I haven't used them yet.
Now lets get started.
-
Get the source code from the cvs server. Go
here
to find out how.
-
Setup a database for yourself. First, create a directory that will hold
your database data files. Then, set the PGDATA environment variable to
be the absolute path to the directory. Then, run initdb. Then, run createdb.
-
Setup the database for SCal. First, go to the scal/db directory.
Then, run psql -f scal_schema.sql. You will see a lot of messages from
psql, but you can ignore them as they are only informational messages (not errors).
-
Go to the scal/src directory and open scald.c in a text editor. At the top of
the file you will see serveral #defines that have CFG_ in the name. These are
system specific settings so you should set the for your own system. These options
will be read out of a configuration file at some point. Probably the only option
you will have to change is CFG_DATABASE_USER. You should know that the scal server
cannot connect to a database with a password. The code change for this is VERY
easy. Unfortunately, I am VERY VERY lazy. If you want to change the code look
in the db_connect function in database.c.
-
Go to the scal/src direction and run make. If you have any problems
at this point then I hope you know how to program.
-
Ok, you are all setup now. All you have to do is start the server like this: ./scald.
The server does not run as a daemon, but it will in the future.
If you still need help after reading this document please post your question to
the appropriate form at the scal project page.
If you find any errors in this document or bugs in SCal let me know. I appreciate all feedback.
I hope you enjoy using SCal.
Doug