vpablo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Mar-09 03:01 UTC
RoR server can''t find a custom ruby module
Hello all! Apologies if the question is answered in some basic doc but I couldn''t find it. I have a ror app that runs in a mongrel server, everything integrated within radrails in windows. I have some custom ruby modules written in C++ which work fine when using ruby command line. However when starting the server I get an error: C:/program files/Aptana/Aptana Studio 1.2/plugins/ org.jruby_1.1.6.8388p3/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:31 in `require'': no such file to load -- MyModule (MissingSourceFile) In normal windows ruby command line to make this error go away I need to 1) Tell ruby the correct load path with -I 2) Have the dll that are dependencies in the win PATH variable I have tried to do this same thing in RoR (setting ENV[''PATH'']) but failed. Any advice? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 9, 3:01 am, "vpa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <vpa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all! > > Apologies if the question is answered in some basic doc but I couldn''t > find it. > > I have a ror app that runs in a mongrel server, everything integrated > within radrails in windows. I have some custom ruby modules written in > C++ which work fine when using ruby command line. However when > starting the server I get an error: >Can I assume from that path that you are (at least partially) using jruby? jruby can''t load c++ ruby modules. Fred> C:/program files/Aptana/Aptana Studio 1.2/plugins/ > org.jruby_1.1.6.8388p3/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:31 in `require'': no such file to load -- MyModule > (MissingSourceFile) > > In normal windows ruby command line to make this error go away I need > to > > 1) Tell ruby the correct load path with -I > 2) Have the dll that are dependencies in the win PATH variable > > I have tried to do this same thing in RoR (setting ENV[''PATH'']) but > failed. Any advice? > > Thanks--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
vpablo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2009-Mar-09 10:11 UTC
Re: RoR server can''t find a custom ruby module
Thanks a lot Fred, seems that''s the issue. I changed to a standard VM now. Still doesn''t work but for a different reason: my module and Ruby haven''t been compiled with the same compiler so they are not compatible. My module is compiled with VS2005. Is there a way to avoid having to recompile ruby/dependencies like some gems and possibly rails? Thanks everyone On Mar 9, 6:35 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mar 9, 3:01 am, "vpa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <vpa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all! > > > Apologies if the question is answered in some basic doc but I couldn''t > > find it. > > > I have a ror app that runs in a mongrel server, everything integrated > > within radrails in windows. I have some custom ruby modules written in > > C++ which work fine when using ruby command line. However when > > starting the server I get an error: > > Can I assume from that path that you are (at least partially) using > jruby? jruby can''t load c++ ruby modules. > > Fred > > > > > C:/program files/Aptana/Aptana Studio 1.2/plugins/ > > org.jruby_1.1.6.8388p3/lib/ruby/site_ruby/1.8/rubygems/ > > custom_require.rb:31 in `require'': no such file to load -- MyModule > > (MissingSourceFile) > > > In normal windows ruby command line to make this error go away I need > > to > > > 1) Tell ruby the correct load path with -I > > 2) Have the dll that are dependencies in the win PATH variable > > > I have tried to do this same thing in RoR (setting ENV[''PATH'']) but > > failed. Any advice? > > > Thanks- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 9 Mar 2009, at 10:11, vpablo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > Thanks a lot Fred, seems that''s the issue. I changed to a standard VM > now. Still doesn''t work but for a different reason: my module and Ruby > haven''t been compiled with the same compiler so they are not > compatible. > > My module is compiled with VS2005. Is there a way to avoid having to > recompile ruby/dependencies like some gems and possibly rails? >Not a windows guy so I don''t completely get those issues. Fred> Thanks everyone > > On Mar 9, 6:35 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> On Mar 9, 3:01 am, "vpa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <vpa...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> >> Hello all! >> >>> Apologies if the question is answered in some basic doc but I >>> couldn''t >>> find it. >> >>> I have a ror app that runs in a mongrel server, everything >>> integrated >>> within radrails in windows. I have some custom ruby modules >>> written in >>> C++ which work fine when using ruby command line. However when >>> starting the server I get an error: >> >> Can I assume from that path that you are (at least partially) using >> jruby? jruby can''t load c++ ruby modules. >> >> Fred >> >> >> >>> C:/program files/Aptana/Aptana Studio 1.2/plugins/ >>> org.jruby_1.1.6.8388p3/lib/ruby/site_ruby/1.8/rubygems/ >>> custom_require.rb:31 in `require'': no such file to load -- MyModule >>> (MissingSourceFile) >> >>> In normal windows ruby command line to make this error go away I >>> need >>> to >> >>> 1) Tell ruby the correct load path with -I >>> 2) Have the dll that are dependencies in the win PATH variable >> >>> I have tried to do this same thing in RoR (setting ENV[''PATH'']) but >>> failed. Any advice? >> >>> Thanks- Hide quoted text - >> >> - Show quoted text - > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---