| 1 | = Solaris8Build = |
| 2 | |
| 3 | !MapServer v3.6.4 |
| 4 | |
| 5 | Libraries I installed to get this, PHP and MapLab? working: |
| 6 | |
| 7 | * gcc (3.2) (Sun linker used) |
| 8 | * bison (1.875) |
| 9 | * flex (2.5.4a) |
| 10 | * zlib (1.1.4) |
| 11 | * libpng (1.2.5) |
| 12 | * FreeType? (2.1.3) |
| 13 | * libTIFF (3.5.7) |
| 14 | * libWWW (had libtool issues, link to system libtool rather than relying on built version) |
| 15 | * gd (2.0.11) |
| 16 | * proj4 (4.5) |
| 17 | * gdal (1.1.8 - issues, see below) |
| 18 | * PHP (4.3.1) |
| 19 | |
| 20 | There’s a problem linking to static C++ libs for some reason. The work-around is to add "-lstdc++" to the end of the line that sets "STATIC_LIB" in "Makefile.in". |
| 21 | |
| 22 | There’s a problem getting the resultant Mapscript shared object to find other shared objects when run from PHP. You must do "setenv LDFLAGS -R/usr/local/lib:/usr/local/pgsql/lib" to set the environment variable and then add it’s use in two Makefile.in files. |
| 23 | |
| 24 | Makefile.in in the root Mapserver directory, add "@LDFLAGS@" to the beginning of the list of things set for the Makefile LDFLAGS variable: "LDFLAGS = @LDFLAGS@ <existing values>" |
| 25 | |
| 26 | For ./mapscript/php3/Makefile?.in add "LDFLAGS = @LDFLAGS@" after CFLAGS and then add "$(LDFLAGS)" right after "$(LD)" in the first two make directives. |
| 27 | |
| 28 | Assuming you're using Apaceh, add to the httpd.conf file the directive (you can leave off the pgsql directory if you're not using PostgreSQL): SetEnv LD_LIBRARY_PATH /usr/local/lib:/usr/local/pgsql/lib |
| 29 | |
| 30 | NOTE: To avoid all the LD-related shenanigans above, I found that the "--enable-runpath" option might avoid having to do all that (and possibly the SetEnv addition to the Apache configuration). Using that option was not fully tested. |
| 31 | |
| 32 | Run configure with your options, these were mine (the "--enable-interal-ld-detect" is important on Solaris): |
| 33 | {{{ |
| 34 | ./configure --with-postgis --with-gd --enable-force-freetype1 |
| 35 | --with-php=/spool/build/php-4.3.1 --with-proj --with-wmsclient |
| 36 | --with-gdal --enable-internal-ld-detect |
| 37 | make |
| 38 | make install |
| 39 | cp mapscript/php3/php_mapscript.so /usr/local/lib/php/extensions/ |
| 40 | cp mapserv /usr/local/apache2/cgi-bin |
| 41 | }}} |
| 42 | Also run these if Apache runs as "www": |
| 43 | {{{ |
| 44 | chown www:www /usr/local/lib/php/extensions/* |
| 45 | chown www:www /usr/local/apache2/cgi-bin/* |
| 46 | }}} |