Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created October 9, 2011 23:20
Show Gist options
  • Select an option

  • Save aaronpk/1274353 to your computer and use it in GitHub Desktop.

Select an option

Save aaronpk/1274353 to your computer and use it in GitHub Desktop.
make
g++ -I. -I/home/web/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/i686-linux -I/home/web/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/home/web/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I../../../../ext/ruby_mapnik -D_FILE_OFFSET_BITS=64 -I/home/web/.rvm/gems/ruby-1.9.2-p290@Geoloqi-Developer-Site/gems/rice-1.4.2/ruby/lib/include -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I/usr/include -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/postgresql -I/usr/include/gdal -DHAVE_JPEG -DBOOST_REGEX_HAS_ICU -ansi -Wall -pthread -ftemplate-depth-200 -DLINUX -DBOOST_SPIRIT_THREADSAFE -DMAPNIK_THREADSAFE -O3 -finline-functions -Wno-inline -DNDEBUG -DHAVE_CAIRO -DLIBTOOL_SUPPORTS_ADVISE -DHAVE_LIBXML2 -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I/usr/include/libpng12 -I/usr/include/cairomm-1.0 -I/usr/lib/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/pixman-1 -Wall -g -o _mapnik_feature.rb.o -c ../../../../ext/ruby_mapnik/_mapnik_feature.rb.cpp
../../../../ext/ruby_mapnik/_mapnik_feature.rb.cpp: In function ‘void add_geometries_from_wkt(mapnik::Feature*, std::string)’:
../../../../ext/ruby_mapnik/_mapnik_feature.rb.cpp:34:45: error: ‘struct mapnik::Feature’ has no member named ‘paths’
make: *** [_mapnik_feature.rb.o] Error 1
rake aborted!
@springmeyer
Copy link

whoops. so the issue here is that the mapnik version pulled from the developmentseed ppa must be a bit too old. the devseed ppa just contains a cloned snapshot from the constantly changing builds at https://launchpad.net/~mapnik/+archive/nightly-trunk. Anyway, so you need to switch out the ppa and then re-run apt-get update && apt-get update to get the proper mapnik version.

@aaronpk
Copy link
Author

aaronpk commented Oct 9, 2011 via email

@springmeyer
Copy link

try:

sudo ppa-purge ppa:developmentseed/mapbox
sudo apt-add-repository ppa:mapnik/nightly-trunk
sudo apt-get update
sudo apt-get upgrade

# then:
cd Ruby-Mapnik
rake clean && rake compile

@springmeyer
Copy link

let me know when you have a chance to see if this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment