Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Fedora install help
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeff Scott  
View profile  
 More options Mar 27 2012, 12:59 pm
From: Jeff Scott <jeff.sc...@rationalsystems.com>
Date: Tue, 27 Mar 2012 11:59:17 -0500
Local: Tues, Mar 27 2012 12:59 pm
Subject: Re: [Mapnik-users] Fedora install help

Thanks so much for pointing me in the right direction, Dane.  Things are
going very well now.  There are a couple security complications on fedora
(and redhat) that might trip people up so I've attached my (ugly) notes
below.  Maybe they'll help someone out.  Also I guess it makes sense after
thinking about it for half a second, but you have to install the -devel
packages to build, not the regular ones.  This is all new to me so
hopefully this can help out some other newbies.

My next question is on upgrading my xml files.  For 0.7 I used cascadenik
but, it looks like carto's taking over that role for 2.0.  I just wanted to
be sure it was before going down that path.

Thanks again,
Jeff

#### MAPNIK
cd /usr/local/src
sudo git clone https://github.com/mapnik/mapnik.git
cd mapnik
sudo chown -R user:user /usr/local/src/mapnik/

#to build from source there are more dependencies
yum install-boost-regex boost-system boost-python boost-filesystem
boost-thread boost-devel
# yum install mapnik mapnik-devel mapnik-python
yum install proj-epsg
yum install gdal
yum install gcc gcc-c++
yum install gsl
yum install icu
yum install proj-devel
yum install libtool-ltdl-devel
yum install libicu-devel
yum install sqlite-devel
yum install libxml2-devel
yum install gdal-devel
yum install libtiff-devel
yum install pycairo-devel

sudo yum install python-setuptools
easy_install jonpy
easy_install lxml
easy_install ipython
$ easy_install nik2img
$ easy_install Nikweb
$ easy_install nose
$ easy_install numscons
$ easy_install readline
$ easy_install PIL
yum install libtool-ltdl

sudo python scons/scons.py configure INPUT_PLUGINS=shape,gdal,ogr,sqlite
make
sudo make install

there's a bug where the mapnik python packages can't be found
- Create /etc/ld.so.conf.d/mapnik.conf  with contents: /usr/local/lib64
- sudo ldconfig

mapnik should now be accessible from inside python

#### TILECACHE
http://mapnik-utils.googlecode.com/svn/example_code/tilecache/readme.txt
# Get apache going with mod_python
http://tilecache.org/docs/README.html

# Important dirs/files
/var/www/html
/var/lib/tiles
./etc/httpd/conf/httpd.conf

# Install tilecache on apache
yum install httpd                 # /var/www/html
yum install mod_python
allow port 80 in firewall

cd /usr/local/src
curl http://www.tilecache.org/tilecache-2.11.tar.gz | tar zxf -
sudo cp -r tilecache-2.11/ /var/www/html/

sudo mkdir /var/lib/tiles
change tilecache.cfg
            [cache]
            type=GoogleDisk
            base=/var/lib/tiles

back up http.conf
edit httpd.conf
    ### Make the below additions to http.conf ###
    # Add load instructions for mod_python
    LoadModule python_module libexec/apache2/mod_python.so

    # Add mod_python directive
    <Directory "/var/www/html/test">
            AddHandler mod_python .py
            PythonHandler mptest
            PythonDebug On
    </Directory>

/var/www/html/test/mptest.py
    from mod_python import apache

    def handler(req):

        req.content_type = "text/plain"
        req.write("Hello World!")

        return apache.OK

### Make the below additions to http.conf ###
    AddHandler python-program .py
    PythonHandler TileCache.Service
    PythonPath "['/var/www/html/tilecache-2.11'] + sys.path"
    PythonOption TileCacheConfig
"/var/www/html/tilecache-2.11/tilecache.cfg"
    PythonDebug Off

chown -R apache:apache /var/www/html/

sudo semanage fcontext -a -t httpd_sys_rw_content_t /var/lib/tiles
restorecon -R -v /var/lib/tiles

sudo semanage fcontext -a -t httpd_sys_rw_content_t
"/var/www/html/tilecache-2.11(/.*)?"
sudo setsebool -P httpd_can_network_connect_db 1


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »