Forum .LRN Q&A: DotLRN Installation Problems on RedHat Ent-4

Hello Guys,

I just cannot tell you how much I am frustrated with the installation stuff of dotLRN on my Red Hat Enterprise 4, but still its not working for me. Today I tried CVS method https://openacs.org/xowiki/pages/en/.LRN+Installation#install-cvs for installation. Initially it went along very much fine. I used PostgreSQL 7.4.13, AOLServer 4, OpenACS 5.2.3 and TCL 8.4.9 and tDOM. But I did not succeed in the end. I am mentioning each and every command that I followed. So can anybody trace the step where did i go wrong and tell me the solution?

PostgreSQL:

For PostgreSQL, I used https://openacs.org/doc/openacs-5-1/postgres.html

I started from here:

1. "Safe approach: install from source"
2. Unpack PostgreSQL 7.4.5 [ I replaced 7.4.5 by 7.4.13 to match my version ]
3. Install Bison.
4. Create the Postgres user.
5. Set up postgres's environment variables.
6. Compile and install PostgreSQL.
7. Start PostgreSQL.
8. Install Pl/pgSQL.
9. Test PostgreSQL (OPTIONAL).
10. "Set PostgreSQL to start on boot." [Step 10 on the same page]. I followed "Red Hat from source:" listing.
11. I skipped Tune postgres. (OPTIONAL).

Everything was followed in the exact way except that my Postgres version is different that 7.4.5.

AOLServer:

For AOLServer, I used https://openacs.org/doc/openacs-5-1/aolserver4.html

Steps that I followed:

1. Check suitability of previously installed TCL. I did install "tcl.4.7-src.tar.gz".
2. Retrieve AOLserver.
I faced here some problem I doing CVS. Their mentioned CVS command is as follows:

cvs -z3 -d:pserver:mailto:anonymous@cvs.sourceforge.net:/cvsroot/aolserver login

But this command is not working. I got "No route to Host" error so I have to change above command to

cvs -z3 -d:pserver:mailto:anonymous@aolserver.cvs.sourceforge.net:/cvsroot/aolserver login

I had to add "aolserver" in all remaining 6 CVS commands after "cvs -z3 -d:pserver:anonymous@" to get it proper. Then I installed tDOM 0.7.8.

3. Configure, compile and install AOLserver.
4. Configure, compile and install the modules.
I successfully installed nscache, nssha. But I got few warnings other than mentioned in "Install nspostgres (if you want to use Postgres)". I neglected then and moved ahead.
5. Add a database-specific wrapper script.

On https://openacs.org/xowiki/pages/en/.LRN+Installation#install-cvs, following text is written:

The OpenACS documentation page has extensive installation instructions describing how to install needed database and webserver. Follow the instructions up until the point where you are told to download OpenACS and then continue with this document instead.

So, after installing PostgreSQL and AOLServer I got back to https://openacs.org/xowiki/pages/en/.LRN+Installation#install-cvs. Of this page, I followed following commands

cd /var/lib/aolserver
cvs -d mailto:anonymous@cvs.sourceforge.openacs.org:/cvsroot login
cvs -d mailto:anonymous@cvs.sourceforge.openacs.org:/cvsroot -r oacs-5-2 co openacs-4
mv openacs-4/packages/dotlrn/install.xml openacs-4

But both cvs command did not run. I had to change them as follows:

cvs -d:pserver:mailto:anonymous@cvs.sourceforge.openacs.org:/cvsroot login
cvs -d:pserver:mailto:anonymous@cvs.sourceforge.openacs.org:/cvsroot co -r openacs-4 openacs-5.2.3

After this I used https://openacs.org/doc/openacs-5-1/openacs.html#install-openacs-prepare-postgres document. I logged in as "postgres" user and created another database user name "service0".

First I created a user account named "service0" for my site. ==> useradd service0

Then I added that user to the group to which postgres user belongs ==> usermod -G web service0

Then I referred to this section: "Prepare PostgreSQL for an OpenACS Service".

su - postgtres
createuser -a -d service0 [On the above page its written $OPENACS_SERVICE_NAME, I replaced it with "service0"]
exit

su - service0
/usr/local/pgsql/bin/createdb -E UNICODE service0
export EDITOR=vim;crontab -e [I replaced emacs by vim since I don't have emacs installed]

Then added following lines to the crontab

0 1-23 * * * /usr/local/pgsql/bin/vacuumdb --analyze service0
0 0 * * * /usr/local/pgsql/bin/vacuumb --full --analyze service0

Then on the same doc I referred Configure an AOLserver Service for OpenACS.

su - service0
cd /var/lib/aolserver/service0/etc
vi config.tcl

I did not change any settings of this file. Just went ahead with default ones.

And, finally Verify AOLserver startup.

kill nsd
/usr/local/aolserver/bin/nsd-postgres -t /var/lib/aolserver/service0/etc/config.tcl

When I run the above command I get following error:

Error: dns: getaddrinfo failed; Name or service not known.

So can anybody please tell me how should I go about it. These are the exact steps that I followed. I will be grateful if you could trace the problem give the solution.

I will prefer a clean installation right from nothing.

Please specify all the steps and commands in detail for Red Hat Ent.4 specially. I know that Red hat version is not going to matter to that extent, but still.... it will be very difficult for you to specify such a long procedure, but I found the installation guide of DotLRN quite confusing and difficult.

Thanks in advance.
Suhas.