compiling Moto on Windows update (long)
"adam smith" <[email protected]> Mon, 17 Mar 2003 20:35:58 -0500
| Newsgroups | gmane.comp.lang.moto.devel |
|---|---|
| Message-ID | <003201c2ecee$bd0db940$84793b18@yourlx3d5ig0ig> |
I have made some progress installing Moto on Windows XP. The configure script is looking for several files that are either not part of the normal cygwin distribution or are called something else under cygwin.
I've been able to locate some of the files, some I haven't. It sounds like 'Cyb.org' has modified several parts of Moto since the 0.19 to look for cygwin equivalents of some of the files and has gotten the base version of Moto to compile under cygwin. He has posted this information on the users list.
I'm now in an area where I'm not very confident, and I'm not sure how much further I can get on my own, so I have attached an account of what I have done so far in the hopes that at the very least, this information can provide some insights for the next person who tries this. I tried to make this account a "complete idiots guide" to what I did--as much for my own benefit as for the benefit of others. I can also post the output of the configure script if anyone is interested.
This information may be moot, however, since it sounds like Cyb.org is making much better progress than I have, and appears to be on the way to a full Windows version of Moto.
Thanks to David and Cyb.org for several pieces of useful information they posted to the users list in response to my questions, that I have incorporated below.
adam
------------------------------
download cygwin:
http://www.cygwin.com/
Run the installation program. When you get to the "Select Packages" screen, make sure that bison, flex, gcc, make and Mingw32 are selected--it appears they are not by default. On the "Select Packages" screen, go down to
- All
- Devel
- bison: A parser generator that is compatible with YACC
- flex: A fast lexical analyzer generator
- gcc: C, C++, Fortran compilers
- gcc-mingw: Mingw32 support headers and libraries for GCC
- make: The GNU version of the 'make' utility
Select bison, flex, gcc, gcc-mingw and make. (Crypt also?)
When complete, you should see these programs here:
/bin/
Also, you need to get and install cygipc, which is no longer part of the cygwin distribution. You can find it here:
http://www.neuro.gatech.edu/users/cwilson/cygutils/OBSOLETE/V1.1/cygipc/
Download the latest release of cygipc and put it below your cygwin installation. To uncompress and install it:
cd /
tar xvjf <path-to-archive>/cygipc<version>.tar.bz2
The following are also required but not found in the current cygwin distribution (under these names):
- inttypes.h (can use types.h instead?)
- stdint.h
- flock
- mmap
- others...
NOTES
Moto source should be compiled under cygwin. When adding support for Apache, MySQL and Postgres, these should also be installed under cygwin (not under Windows itself). It appears that Apache and Postgres can be downloaded through the "Select Packages" screen of the cygwin install, but you may have to download MySQL and install it from source. Also, its probably a good idea to grab the source as well as the binaries for Apache and Postgres (again, this is an option from the "Select Packages" screen during installation).
Ultimately, you may have to compile Apache into cygwin from source to insure that apxs is available. Also, be aware that Moto requires the 1.3x version of Apache, not the 2.x version (true for Moto 0.19).
The cygwin installation program gives you fine grained control to run the program after the initial installation and install, reinstall and uninstall packages. So, its not a problem if you miss a package the first time around.