MapServer setup with rails in ubuntu 12.04

113 views
Skip to first unread message

Arv

unread,
May 20, 2013, 3:22:34 AM5/20/13
to rubyonra...@googlegroups.com
Hi i have one rails application in which i need to setup the mapserver i have added the gem https://github.com/sourcepole/ruby_mapscript

but while running the command
require "rubygems"
require "ruby_mapscript"
include Mapscript

it use to tell me
LoadError (cannot load such file -- mapscript):

can anybudy help me on this


Thanks in Advance

Arvind

김성식

unread,
May 20, 2013, 3:32:13 AM5/20/13
to rubyonra...@googlegroups.com
just add this to the Gemfile 

gem "ruby_mapscript"

and execute "bundle install".


Then, You don't need to require it manually  

When the rails application start, it will require it automatically. 



2013년 5월 20일 월요일 오후 4시 22분 34초 UTC+9, Arvind Vyas 님의 말:

Arvind Vyas

unread,
May 20, 2013, 3:40:43 AM5/20/13
to rubyonra...@googlegroups.com
yes i have added it in my gem list inside the rvm  ,  i am working with rails 2.3.5 so i dont have any bundle that what i can not do bundle install.

김성식

unread,
May 20, 2013, 3:49:21 AM5/20/13
to rubyonra...@googlegroups.com
Even if you add the gem to your system gem path, a rails application doesn't use it. 
We have to add it to a Gemfile. You can find the Gemfile at the root directory of your rails application.

make sure install bundler, before you hit the bundle install. 
execute this to install bundler

gem install bundler



2013/5/20 Arvind Vyas <arvind...@gmail.com>
yes i have added it in my gem list inside the rvm  ,  i am working with rails 2.3.5 so i dont have any bundle that what i can not do bundle install.

--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/yikR79tv7Fg/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Arvind Vyas

unread,
May 20, 2013, 3:56:43 AM5/20/13
to rubyonra...@googlegroups.com
sorry , but it is rails2 application and as i am working since 1 year i did not see any Gemfile on this , my all other gem are working fine but getting problem with this gem only , i do not know weather it has any relation with mapserver or not , because i do not have a mapserver

Thanks


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.

To post to this group, send email to rubyonra...@googlegroups.com.

김성식

unread,
May 20, 2013, 4:31:13 AM5/20/13
to rubyonra...@googlegroups.com
Sorry, Rails2 must be somthing different from 3 or 4. 

I looked into the ruby_mapscript gem. 

I ran the test.. then failed. The gem might be broken. 


2013/5/20 Arvind Vyas <arvind...@gmail.com>

Arvind Vyas

unread,
May 20, 2013, 4:31:58 AM5/20/13
to rubyonra...@googlegroups.com
Thanks
Reply all
Reply to author
Forward
0 new messages