Changes between Initial Version and Version 1 of Solaris8Build


Ignore:
Timestamp:
Jan 26, 2009, 12:38:02 PM (15 years ago)
Author:
jmckenna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Solaris8Build

    v1 v1  
     1= Solaris8Build =
     2
     3!MapServer v3.6.4
     4
     5Libraries 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
     20There’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
     22There’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
     24Makefile.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
     26For ./mapscript/php3/Makefile?.in add "LDFLAGS = @LDFLAGS@" after CFLAGS and then add "$(LDFLAGS)" right after "$(LD)" in the first two make directives.
     27
     28Assuming 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
     30NOTE: 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
     32Run 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
     37make
     38make install
     39cp mapscript/php3/php_mapscript.so /usr/local/lib/php/extensions/
     40cp mapserv /usr/local/apache2/cgi-bin
     41}}}
     42Also run these if Apache runs as "www":
     43{{{
     44chown www:www /usr/local/lib/php/extensions/*
     45chown www:www /usr/local/apache2/cgi-bin/*
     46}}}