Forum OpenACS Q&A: Problem Installing Search-OpenFTS-tcl-0.2.tar.gz

I am having problems Installing Search-OpenFTS-tcl-0.2.tar.gz. Any
help would be appreciated.

Running ./configure produces the following error

[nsadmin@caribbean Search-OpenFTS-tcl-0.2]$ ./configure --with-
aolserver-src=/us
r/local/src/aolserver/aolserver
loading cache ./config.cache
checking prefix... /usr/local
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for working const... yes
checking for ANSI C header files... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for strerror... yes
checking for strstr... yes
checking for strlen... yes
checking platform specific compile options... linux
checking looking for aolserver ns.h include
file... /usr/local/src/aolserver/aol
server/include/ns.h
checking looking for aolserver nsd.h include
file... /usr/local/src/aolserver/ao
lserver/nsd/nsd.h
checking looking for
libtcl8... /usr/local/src/aolserver/aolserver/tcl8.3.2/unix
/libtcl8.3g.a
checking looking for
libthread... /usr/local/src/aolserver/aolserver/thread/libn
sthread.a
checking looking for postgresql include files... configure: error:
couldn't find
postgresql include files

Running make produces the following error

[nsadmin@caribbean Search-OpenFTS-tcl-0.2]$ make
Makefile:20: Makefile.global: No such file or directory
make: *** No rule to make target `Makefile.global'.  Stop.
[nsadmin@caribbean Search-OpenFTS-tcl-0.2]$

Jeff, Try specifying the path to your postgresql install to the configure script:
./configure --with-pgsql=/usr/local/pgsql --with-aolserver-src=/usr/local/src/aolserver/aolserver
Substitue the path to your postgresql install dir. Also make sure you have compiled postgresql with make --install-all-headers or installed the appropriate postgresql development package for your distribution.

If you're running PG 7.2.x, you'll also need to make this change to your configure script:

1579,1580c1579,1580
<                 if test -f $PG_INSTALLATION_DIR/include/postgresql/postgres.h; then
<                         PG_INC="$PG_INSTALLATION_DIR/include/postgresql"
---
>                 if test -f $PG_INSTALLATION_DIR/include/server/postgres.h; then
>                         PG_INC="$PG_INSTALLATION_DIR/include/server"
Also, make sure you ran make install-all-headers when you installed PG.
Collapse
Posted by jeff reed on
Thanks for the feedback. I followed the directions exactly so that I ran the following command for configuration: ./configure --with-aolserver-src=/usr/local/src/aolserver/aolserver Can you tell me what development package you are refering to when you said? "installed the appropriate postgresql development package for your distribution"
Collapse
Posted by jeff reed on
After running the command: "./configure --with-gsql=/usr/local/pgsql --with-aolserver-src=/usr/local/src/aolserver/aolserver" It end with "error: couldn't find postgresql include files".

Does this have anything thing to do with the developmetal package?

[nsadmin@caribbean Search-OpenFTS-tcl-0.2]$ ./configure --with-pgsql=/usr/local/pgsql --with-aolserver-src=/usr/local/sr
c/aolserver/aolserver
loading cache ./config.cache
checking prefix... /usr/local
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for working const... yes
checking for ANSI C header files... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for strerror... yes
checking for strstr... yes
checking for strlen... yes
checking platform specific compile options... linux
checking looking for aolserver ns.h include file... /usr/local/src/aolserver/aolserver/include/ns.h
checking looking for aolserver nsd.h include file... /usr/local/src/aolserver/aolserver/nsd/nsd.h
checking looking for libtcl8... /usr/local/src/aolserver/aolserver/tcl8.3.2/unix/libtcl8.3g.a
checking looking for libthread... /usr/local/src/aolserver/aolserver/thread/libnsthread.a
checking looking for postgresql include files... configure: error: couldn't find postgresql include files

Collapse
Posted by jeff reed on
I thought I would use better formating so that you can read what's going on.
Thanks

[nsadmin@caribbean Search-OpenFTS-tcl-0.2]$ ./configure --with-pgsql=/usr/local/pgsql --with-aolserver-src=/usr/local/sr
c/aolserver/aolserver
loading cache ./config.cache
checking prefix... /usr/local
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for unistd.h... yes
checking for working const... yes
checking for ANSI C header files... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
checking for strerror... yes
checking for strstr... yes
checking for strlen... yes
checking platform specific compile options... linux
checking looking for aolserver ns.h include file... /usr/local/src/aolserver/aolserver/include/ns.h
checking looking for aolserver nsd.h include file... /usr/local/src/aolserver/aolserver/nsd/nsd.h
checking looking for libtcl8... /usr/local/src/aolserver/aolserver/tcl8.3.2/unix/libtcl8.3g.a
checking looking for libthread... /usr/local/src/aolserver/aolserver/thread/libnsthread.a
checking looking for postgresql include files... configure: error: couldn't find postgresql include files

Collapse
Posted by jeff reed on
I'm not sure what's going on here. pgsql is indeed located in /usr/local/pgsql/.
However, I install pgsql when I installed the OS, which is Redhat 7.2.

Can someone tell me about "compiled postgresql with make --install-all-headers or installed the appropriate postgresql development package for your distribution."

[nsadmin@caribbean Search-OpenFTS-tcl-0.2]$ cd /usr/local/pgsql/
[nsadmin@caribbean pgsql]$ ls
bin data doc include lib man share
[nsadmin@caribbean pgsql]$ cd include/
[nsadmin@caribbean include]$ ls
ecpgerrno.h ecpgtype.h libpgeasy.h libpq-fe.h pg_config_os.h server sqlca.h
ecpglib.h internal libpq pg_config.h postgres_ext.h sql3types.h

Collapse
Posted by jeff reed on
OK, I am so confused. I now recall that I actually formated and reinstalled the OS with pgsql because the default was messing me up. I then installed pgsql as directed in openacs install guide, however, I installed postgresql-7.2.1. The directions didn't call for "make --install-all-headers", so that I didn't do it.

Since I followed the directions exactly as the install guide specified, does anyone know what needs to be done? It seems that if others followed the install guide this must be a known issue.
7.2.1 is not supported directly by OpenFTS. You need to do some hacking of the files and I am not at home to give you the patch.
It will NOT work following the directions for install.
As Jon says, OpenFTS won't work as is with pgsql-7.2.1. I'm not home (out of town until Monday) either so I can't give you the patch.

However, you need to "gmake install-all-headers" so that all libraries needed by OpenFTS can be compiled. IIRC, the only thing that changed in pgsql-7.2.1 is the server-side include dir. So you'll need to modify that to work with 7.2.1. Search the bboards, I think that this has already been answered.

Thanks for the feedback.

I'm not in any rush as I am setting up openacs for fun, so that I can wait till monday if someone has a patch that will allow me to run OpenFTS with pgsql-7.2.1.

Can I re-compile pgsql-7.2.1 without uninstalling?

Jon, you said "It will NOT work following the directions for install" Would you recomend that I start over and use an older version, or is it reletively easy to get it to work with the patch?

I was getting the same errors so I copied /usr/local/pgsql/include/server/*.h to /usr/local/pgsql/include and it seems to have compiled correctly with PG 7.2.

Now I'll see if I can isntall it.

Just to add to that - I had to copy everything from /usr/local/pgsql/include/server to /usr/local/pgsql/include to get it to compile sucessfully.
Check the "next steps" section of the OpenACS 4.5 Install docs here on this site. They include in the comments all these tips to get OpenFTS working.

https://openacs.org/doc/openacs-4/nextsteps.html

An OpenFTS 0.2 install is not finding the Postgresql headers on a FreeBSD OpenACS 4.6.1 install. I've tried the above suggestions without success.

I think the header files exist in their normal FreeBSD place:

$ ls /usr/ports/databases/postgresql7/work/postgresql-7.2.3/src/include

Makefile		mb			postgres.h
access			miscadmin.h		postgres_ext.h
bootstrap		nodes			postgres_fe.h
c.h			optimizer		regex
catalog			parser			rewrite
commands		pg_config.h		rusagestub.h
dynloader.h		pg_config.h.in		stamp-h
executor		pg_config.h.win32	storage
fmgr.h			pg_config_os.h		strdup.h
lib			pgstat.h		tcop
libpq			port			utils
$ 

I've modified the configure file per thread instructions. Currently, I'm trying to configure with:

./configure \ 
--with-pgsql=/usr/ports/databases/postgresql7/work/postgresql-7.2.3 \
 --with-aolserver-src=/usr/ports/www/aolserver/work/aolserver-3.4

Any other suggestions?

Collapse
Posted by Torben Brosten on
Oops! Looks like I should be installing OpenFTS 3.2 instead of 2.0. So, please ignore above.