Forum OpenACS Q&A: OpenACS on Windows 95/98?
system on a Windows box, can anyone see any reason that I shouldn't be
able to compile AOLserver and Postgres with CygWin (the Cygnus tools
for making it easy to port most unix stuff to Win32)? Yes, I promise
to document what I did when I do this crazy thing, so that we can keep
the options open.
As to why I would want to do this, it is looking like I will be
acquiring a lovely Sony Vaio for doing some Windows development and
consulting, and it occurs to me that it might be simpler to do the
work under Windows rather than dual boot it (which I will almost
certainly set up anyway, since I won't want to be completely bereft of
a real OS). It might even be amusing to see what kind of performance
it can deliver, to be able to show people how open OpenACS can be.
Ahh, following up your own questions is always fun. I noted a thread on photo.net talking about running ACS Classic on Windows 2000 at http://photo.net/bboard/q-and-a-fetch-msg.tcl?msg_id=000spp&topic_id=web%2fdb&topic=
The discussion points to http://dev.arsdigita.com/doc/win2k-installation.html, which says that it is doable, but not recommended for production use.
Oh, the postgres driver as well. Not sure if its compiled for Win32 in the aolserver dist yet.
Windows/Win32 x86 v7.0 2000-04-02 Client-side libraries or ODBC/JDBC. No server-side. Magnus Hagander
WinNT/Cygwin x86 v7.0 2000-03-30 Uses Cygwin library. Daniel Horak
So I guess PostgreSQL server will only run on NT. You can try VMWare or FreeMWare or something.
I'm trying to get the postgres driver compiled on win2k, using cygwin. Here's where I'm at -- I can make postgres.o no problem, but when I'm trying to create postgres.so, gcc refs libpq.so, which never got made when I did the postgres compile. (I have lipq.a, but no libpq.so). Can anyone explain to me what I'll need to do to compile the postgres shared library? (Even in unix would be a start). My C compilation skills are limited to getting nethack running on Irix in the early '90s, so I'm feeling in a bit over my head.
BTW, Don, are you monitoring this thread? If not, I'll forward this as an e-mail to you.
I just went over the Postgres install package. I'm not sure that I know what libpg.so is used for, but I know that when I used the configure script, I did not add a parameter to build it. (I identified each configure parameter I used, and the files they created.) So, that leaves me with the assumption that libpg.so is the main library, or part of the core package that is built on every compile.
This assumption is further supported in that I've compiled the postgres driver 5 or 6 times in the last 48 hours. I have gotten that same error 3 of those times. (I don't learn from my mistakes). Each time, my paths were not all set correctly. i.e. if you can find libpg.so anywhere on your whole system, make sure you're postgres driver makefile can see it. I believe it should be pointed to with PBLIBS, but I could be mistaken on that.
I hope that's useful. Let me know how it goes. If you don't have that fixed by this evening, I'll recompile Postgres to try and find some new ideas for you. I've got to install it on a new machine anyway. (I won't get home until about midnight MDT, so if you need help, you've got until then to get frustrated/find answers).
Did you do a "make install" after "make"? "make install" copies stuff to their home.
You'll need to edit the Makefile that comes with AOLserver to make certain that it references the correct directory, too. And lastly, the account that runs AOLserver needs to have PGLIB, etc set up correctly.
I've not used cygwin, so I can't help you out with any wrinkles this throws into the mix. I know PG and AOLserver both work with it, though - or so folks say.
If you have a large development machine around you can buy VMware for $299 and run Linux on a virtual machine running under NT, getting rid of any cygwin problems. VMware rocks - I've got it running on my laptop (with Win98 running virtual on my Linux machine) and it is very convenient.
One of the problems is that the current gcc in cygwin doesn't allow the creation of shared libraries. I'm also trying to compile the postgres driver for aolserver in the cygwin environment, but the AOLServer I have is precompiled for Windows directly, so the environments aren't matching up. (Can't link in the right library files from AOLServer, etc.)
This leaves me asking: does anyone have a working postgres driver for Windows 2000 and AOLServer? I'll post another thread along these lines.
I do have a problem though. After about 5 minutes, AOLServer hung (not Windows). I'm not sure whether it's postgres or AOLServer. If I kill both processes, I can get it up again without restarting Windows, but it keeps hanging. Anyone have the same experience?
Certainly don't try to run production servers on this code, it's fine for testing and development.