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?
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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.