[mapserver-users] ruby mapscript problem in Debian Wheezy

ahlah ahti.lahtela at pp.inet.fi
Sat Jun 29 01:16:10 PDT 2013


Hi,

I have some ruby mapscript applications in Debian Lenny environment and
everything is working fine.

I tested ruby mapscripts in Debian Wheezy environment and had problems.

A simple script that only tries to create new MapObj instance  with map =
MapObj.new throws error:

mapscript.so: warning: rb_define_const: invalid name `__FUNCTION__' for
constant
./example.rb:7:in `new': allocator undefined for Mapscript::MapObj
(TypeError)
	from ./example.rb:7:in `<main>'

Functions like msGetVersion() works and ruby code recognizes mapscript
constants but I can't create any instances of objects. Same code works
without problems in Lenny environment.

Debian and libmapscript are installed from Debian Wheezy binary packages,
ruby is installed via rvm. Versions are:
Debian Wheezy 7.1 64-bit
Ruby 1.9.3p448
libmapscript-ruby1.9.1 (6.0.1-3.2)

AL



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/ruby-mapscript-problem-in-Debian-Wheezy-tp5062994.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list