Forum OpenACS Development: pg8.2 cognovis script installation

Collapse
Posted by Iuri Sampaio on
as the problematic freak openACS user i am, i got the foolwing error when i ran pg8.2 installation script found at cognovis website:

it seems error is at the bzip file. a bad compressed file.

postgresql-8.2.4/doc/src/sgml/indices.sgml
postgresql-8.2.4/doc/src/sgml/info.sgml
postgresql-8.2.4/doc/src/sgml/information_schema.sgml
postgresql-8.2.4/doc/src/sgml/install-win32.sgml
postgresql-8.2.4/doc/src/sgml/installation.sgml

bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking if gcc supports -Wdeclaration-after-statement... yes
checking if gcc supports -Wendif-labels... yes
checking if gcc supports -fno-strict-aliasing... yes
configure: using CFLAGS=-O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... no
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
checking for egrep... grep -E
configure: using CPPFLAGS=-D_GNU_SOURCE
configure: using LDFLAGS=
checking for gawk... no
checking for mawk... mawk
checking for flex... no
configure: WARNING:
*** Without Flex you will not be able to build PostgreSQL from CVS or
*** change any of the scanner definition files. You can obtain Flex from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
*** output is pre-generated.)
checking whether ln -s works... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for tar... /bin/tar
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for bison... no
configure: WARNING:
*** Without Bison you will not be able to build PostgreSQL from CVS nor
*** change any of the parser definition files. You can obtain Bison from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this, because the Bison
*** output is pre-generated.) To use a different yacc program (possible,
*** but not recommended), set the environment variable YACC before running
*** 'configure'.
checking for perl... /usr/bin/perl
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... -ldl
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... none required
checking for library containing shmget... none required
checking for -lreadline... no
checking for -ledit... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
You need to run the 'configure' program first. See the file
'INSTALL' for installation instructions.
make: *** [all] Error 1
You need to run the 'configure' program first. See the file
'INSTALL' for installation instructions.
make: *** [install] Error 1
./pg8.2-install: line 63: cvs: command not found
cp: cannot stat `openacs-4/packages/acs-core-docs/www/files/postgresql.txt': No such file or directory
chmod: cannot access `/etc/init.d/pg82': No such file or directory
update-rc.d: /etc/init.d/pg82: file does not exist
debianserver:~#

Collapse
Posted by Iuri Sampaio on
link to cognovis installation script:
http://cognovis.de/developer/en/pg82
Collapse
Posted by Malte Sussdorff on
Iuri, did you try to delete the file and then download it again? It looks like your download of the postgres.tar.bz2 file from ftp.de.postgresql.org did not work. Try to get the file from a different mirror.
Collapse
Posted by Iuri Sampaio on
Hi malte,

i downloaded postgres.tar.bz2 again.
Everything works now. The instrallation process os PG8.2 and AOLserver 4.5 are done.

Now i'm strugling at OpenACS setup
http://cognovis.de/developer/en/openacs_setup

at this point:
You are now configured to start your OpenACS installation on http://127.0.0.1:8000 unless some other server has been running there.

If you want to install .LRN issue the following command:

su - $SERVICE0
cp packages/dotlrn/install.xml .
svc -du /service/`whoami`

i got a error when i ran

debianserver:~# svc -du /service/oacsbr
svc: warning: unable to chdir to /service/oacsbr: file does not exist

but i'm sure the file is there, although it's empty and i don;t understand why there must be this relation with this file. as i read I belive it's daemontools setting that must be done.
any clues what i did wrong?

Collapse
Posted by Iuri Sampaio on
hi malte,

forget about my last post. The problem is solved. It was a daemontolls setting error, which i already fixed.

it was necessary to create the openacs initializing script again.

Jeff Lu from Philipines gave me a big help on that!!