Ruby-Mapnik
Ruby-Mapnik copied to clipboard
Fedora 17 compiling issues
Hi,
I'm running Fedora 17 (3.6.7-4.fc17.x86_64) and the Ruby-Mapnik gem does not compile, I get the following errors:
gem install ruby_mapnik Fetching: ruby_mapnik-0.1.5.gem (100%) Building native extensions. This could take a while... ERROR: Error installing ruby_mapnik: ERROR: Failed to build gem native extension.
/home/jason/.rbenv/versions/1.9.3-p194/bin/ruby extconf.rb
checking for main() in -lrice... yes creating Makefile
make compiling _mapnik_raster_colorizer.rb.cpp cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default] compiling _mapnik_symbolizer.rb.cpp cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default] compiling _mapnik_datasource_cache.rb.cpp cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default] cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default] _mapnik_datasource_cache.rb.cpp: In function ‘bool {anonymous}::rubysafe_register_sources(std::string)’: _mapnik_datasource_cache.rb.cpp:37:41: error: base operand of ‘->’ has non-pointer type ‘mapnik::datasource_cache’ _mapnik_datasource_cache.rb.cpp: In function ‘Rice::Array {anonymous}::rubysafe_plugin_names()’: _mapnik_datasource_cache.rb.cpp:42:104: error: base operand of ‘->’ has non-pointer type ‘mapnik::datasource_cache’ make: *** [_mapnik_datasource_cache.rb.o] Error 1
So I tried to compile the gem from the git repository using rake but it too has a compile error:
compiling ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘const string {anonymous}::get_filename(const mapnik::markers_symbolizer&)’: ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:34:22: error: ‘mapnik::path_processor_type’ has not been declared ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘void {anonymous}::set_filename(mapnik::markers_symbolizer&, const string&)’: ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:38:22: error: ‘parse_path’ is not a member of ‘mapnik’ ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘const string {anonymous}::get_filename(const mapnik::markers_symbolizer&)’: ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:35:3: warning: control reaches end of non-void function [-Wreturn-type] gmake: *** [_mapnik_markers_symbolizer.rb.o] Error 1 rake aborted! Command failed with status (2): [gmake...]
Thanks,
Jason