Setting up the R-EDS CVS Version

Getting ready to build R-EDS

Go to the top directory

    ./makesymlinks
    ./configure

    make

Getting Ready to run R-EDS

make install will probably install the various config files but I haven't tried it recently, otherwise you can do the following. make install will install the config files in the global kde config directorys and will require root to install.
These instructions are based on the directory structure for Redhat 7.3


make a directory:

~/.kde/share/apps/reds

cp reds/reds/defaultconfig/*.cfg ~/.kde/share/apps/reds/

cp reds/reds/Schedit/schpart.rc ~/.kde/share/apps/reds/
cp reds/reds/PCBEdit/PCBEdit.rc ~/.kde/share/apps/reds/
cp reds/reds/redsui.rc ~/.kde/share/apps/reds/
cp reds/reds/project/projectpart.rc ~/.kde/share/apps/reds/

This gives the basic config files required for reds to run. For my development purposes I don't copy the files but instead place symlinks in the directory. This means when a change is made to the default files in cvs your system can pick them up with minimal effort.

Edit ~/.kde/share/apps/reds/library.cfg if you need to make any changes. If you have installed either reds-lib-0.1-2.rpm or uncompressed reds-lib-0.1-1.tgz into /var/lib/reds/.

At this point you should be able to run R-EDS, when you have a schematic open you can click on it and some toolbar icons appare. The transistor icon will open the part browser. If all has gone well you should be able to browse and search the standard library.

Setting up Postgresql

Setting up postgresql in Redhat 8.0

Start postgres running

As root: chkconfig --levels 2345 postgresql start service postgresql restart su postgres createdb redsdb psql redsdb create user name; where name = your user name

You should now have an empty database ready for your user.

	You also need to configure postgres to allow tcp connections from the localhost
	in '/var/lib/pgsql/data/postgresql.conf'
	change 'tcpip_socket=false' to 'tcpip_socket=true'
	then service postgresql restart
the following line is required on RH8 to enable QT to provide ODBC support
	rpm -Uvh qt-ODBC-3.0.5-17.i386.rpm
	rpm -Uvh unixODBC-2.2.2-3.i386.rpm
	rpm -Uvh unixODBC-kde-2.2.2-3.i386.rpm
The second command installs an ODBC manager.  you can use this to add a datasource called redsdb that uses the postgres redsdb file
Quit out of psql and type exit a couple of times to get you back to your normal user. You can now procede to create the libaray as below.

I assume you have a running postgresql database server on your machine. If not follow the documentation that came with your distribution.

Create an empty database called redsdb
To run the scripts in the source directory to create a basic test database you
will need to proce that you can run the following command and successfuylly
connect to the new empty database that you have created with the following
command

psql redsdb

if there is a problem with this fix it before proceding.

Modifying library.cfg

in the [standard] section
change the user= and pass= options in the [sql] section as approiate for your database configuration you will also need to change the sourecs=standard line to sources=standard,sql

Build the test library database

go to the 'reds/reds/Library/SQL' directory

****CAUTION*****
The script below deletes any exsisting data in the redsdb database then recreates
basic test database with a few sample parts

./rebuildtest

If there is an error when running this script it is likley that your database is not configured correctly. If your database requires a password for local access you will need to edit the scripts in the SQL directory.

Setup ODBC by following the instructions with unixODBC and create a source called redsdb and connect it to your redsdb database. You will need 'qt-ODBC-3.0.3-11.i386.rpm' for Redhat 7.3 or similar for your distrobution as this provides the QODBC database driver to KDE/QT. Without this you will not succeed in getting R-EDS to connect to a database.

When you try and run reds you will see a lot of debug output to the console or debug window. A line like the following indicates success at connecting to your database:
Connected to "redsdb", ["default"]...OK