Hi, I try run a rails controller which uses RMagick for graphic generation. However, each time I load the "myController.rhtml" I always get the same error: "uninitialized constant Enum", if I run on the same code on commandline by using "ruby -I /usr/../../RMagick/lib myController.rb", the RMagick works correctly, the image is generated, but when I try to run it in Rails, it doesnt'' work, Is there any specific configuration I have to put in the config.rb ...or else for rails? Thanks you very much Sayoyo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
sayoyo wrote:> Hi, > > I try run a rails controller which uses RMagick for graphic generation. > However, each time I load the "myController.rhtml" I always get the same > error: > "uninitialized constant Enum", if I run on the same code on commandline > by using "ruby -I /usr/../../RMagick/lib myController.rb", the RMagick > works correctly, the image is generated, but when I try to run it in > Rails, it doesnt'' work, Is there any specific configuration I have to > put in the config.rb ...or else for rails? > > Thanks you very much > > SayoyoUsually this is caused by not having the web server configured to make the LD_LIBRARY_PATH environment variable available. See http://rubyforge.org/forum/forum.php?thread_id=7526&forum_id=33. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
HI, I have already read the information, (Thanks you!!!) however, our server is not lighttpd..it is still webrick, and I didn''t find any information about its configuration that I can "set" the path, my $LD_LIBRARY_PATH is already set, but I wonder a $RUBYLIBS will it be the same??? Thanks you very much Sayoyo -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---