Changes between Initial Version and Version 1 of MapServerCompilation


Ignore:
Timestamp:
Jan 26, 2009, 10:58:32 AM (15 years ago)
Author:
jmckenna
Comment:

copy from old wiki

Legend:

Unmodified
Added
Removed
Modified
  • MapServerCompilation

    v1 v1  
     1= Compiling !MapServer =
     2
     3This page offers tips and tricks for successfully compiling !MapServer on different operating systems.
     4
     5    * LinuxRedHat
     6    * RedHat8AndMapserver37
     7    * RedHat9AndMapserver40b
     8    * RedHat9AndMapserver40
     9    * Mandrake 9.1
     10    * DebianLinux
     11    * MicrosoftWindows
     12    * MacOS X
     13    * Solaris 8
     14    * Static Binary for Solaris
     15    * FedoraC2 Mapserver4.2.3 Postgis0.9.0 etc(Spanish)
     16
     17== Using the "--with" option ==
     18I'm just building mapserver right now with as many of the options as I could feasibly get together. I ran "./configure" and it appeared to work correctly. When I went to run "make" though I get a cryptic error: "no input files" and it didn't do anything. Well, turns out, after 20 minutes of confusion (it had always compiled just fine before!!) I realized what I had done. I was trying to build in postgis support so I used the "--with-postgis" option. I had to tell it more specifically where to look for pg_config, so I used:
     19
     20"--with-postgis=/usr/local/pgsql/bin" (where the pg_config program is located) But that wasn't right. I didn't notice it during the ./configure process, but it was complaining a dozen or so lines from the end - saying that I had specified a "directory" (as opposed to a file). So I then had to change it to "--with-postgis=/usr/local/pgsql/bin/pg_config" and now "make" actually does something.
     21
     22So I learned my lesson - sometimes the "--with" options need only a directory (ie. --with-proj=../proj) and sometimes, like above, they need a path to a specific file. I assume this applies to more than just my php example.
     23
     24You can check if a file or a directory is needed by typing ./configure --help and check the listing there.
     25
     26== "make clean" is your friend... ==
     27don't forget too that when tying out lots of ./configure --with-foo options to run "make clean" between compilations.
     28
     29We haven't had luck with make clean as far as we can notice. jsbj
     30
     31"make distclean" seems to work. ank