Getting SchoolTool running with Solaris

A customer of ours is looking at SchoolTool, as well as considering Sun Rays with Solaris on AMD for their school environment. SchoolTool is written in Python and has packages for Windows, Mac OSX and Linux available, but nothing prepackaged for Solaris. It's very simple to install, although the readme misses out a couple of critical steps and there is a small error in the Makefile. I used a recent build of Solaris Express running on my Toshiba laptop, but I expect any Solaris version will work fine, providing the right versions of Python and libxml are installed. Here are the steps I took. \* Download latest source distribution from SchoolTool website. \* Unpack into /usr/local, which gives me /usr/local/schooltool-0.11.3 \* Ensure I have the latest versions of Python and libxml2 and that my PATH is correct. I use pkg-get to get the latest GNU stuff and handle dependencies. \* cd into /usr/local/schooltool-0.11.3/Zope3 to build Zope. \* Link gcc to Sun's /usr/ucb/cc mv /usr/ucb/cc /usr/ucb/cc.orig ln -s /usr/sfw/bin/gcc /usr/ucb/cc \* Run python setup.py install \* The readme file misses out a step here - you need to run make next to complete the installation of Zope. Whether you use Sun's make or GNU make compilation will fail with the error 'Command failed for target 'bin/runzope'. This is due to there being no bin directory present in the SchoolTool directory. Make the bin directory and run make: mkdir bin make \* Everything appeared to compile correctly. \* Build SchoolTool. cd /usr/local/schooltool-0.11.3 python setup.py install \* The readme misses out a step here. You need to run make again. make \* Create a copy of the example server configuration file: cp schooltool.conf.in schooltool.conf \* Make any changes necessary. It seems to work out of the box, but you may wish to check that it doesn't conflict with any other web servers currently running. \* Start the schooltool server: /usr/local/schooltool-0.11.3/schooltool-server.py \* The schooltool server started and listened on the defaultport: port 7080. I accessed it via http://localhost:7080 Login with username manager and password schooltool
Comments:

mv /usr/ucb/cc /usr/ucb/cc.orig
ln -s /usr/ucb/cc /usr/sfw/bin/gcc

This seems backwards. Don't you mean <tt>ln -s /usr/sfw/bin/gcc /usr/ucb/cc</tt>? The commands you quoted would create a broken symlink /usr/sfw/bin/gcc pointing to a nonexistent file /usr/usb/cc.

Also, is it necessary to fiddle with system files? Can't you set the CC environment variable to choose a desired compiler?

Posted by Marius Gedminas on December 19, 2005 at 12:27 PM GST #

Thanks Marius You're right regarding the link, I've changed the post to reflect the correct order. I tried to set the CC environment variable, but things still didn't work. Chris

Posted by Chris on December 19, 2005 at 12:34 PM GST #

Post a Comment:
Comments are closed for this entry.
About

christophersaul

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today