Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 27134
BY: Tim Hunter (rmagick)
DATE: 2007-08-23 22:14
SUBJECT: RE: RMagick-win32 - NoMethodErrors (gems faul

 

I wonder if RubyGems is searching the directory that contains the .so files before it searches the directory that contains .rb files. In "plain" Ruby the .rb files are installed in a different directory than the .so files. The .rb directory precedes the .so directory in Ruby's search path.

Typically scripts require just plain "RMagick". The RMagick.rb file explicitly requires "RMagick.so". The expectation is that Ruby will search for "RMagick", find "RMagick.rb", and then RMagick.rb will require RMagick.so. This works if Ruby searches the directories that contain .rb files before searching the directories that contain .so files.

If RubyGems finds RMagick.so first, then it would never find RMagick.rb.

Ruby, at least since 1.6.7, always finds the .rb file first. It does so currently. If RubyGems changes the search order, then it seems like any extension that has both an .rb and a .so file with the same name must fail.


Thread View

Thread Author Date
RMagick-win32 - NoMethodErrors (gems fault ;)Jan Habermann2007-06-17 09:04
      RE: RMagick-win32 - NoMethodErrors (gems fault ;)Tim Hunter2007-06-17 12:52
            RE: RMagick-win32 - NoMethodErrors (gems faulJan Habermann2007-06-17 15:39
                  RE: RMagick-win32 - NoMethodErrors (gems faulMikael Rudberg2007-07-12 21:09
                        RE: RMagick-win32 - NoMethodErrors (gems faulTim Hunter2007-07-12 21:37
                        RE: RMagick-win32 - NoMethodErrors (gems faulMikael Rudberg2007-07-12 21:28
                              RE: RMagick-win32 - NoMethodErrors (gems faulTim Hunter2007-07-13 19:42
                                    RE: RMagick-win32 - NoMethodErrors (gems faulMikael Rudberg2007-07-21 10:44
                                          RE: RMagick-win32 - NoMethodErrors (gems faulMatthias Reitinger2007-08-23 12:44
                                                RE: RMagick-win32 - NoMethodErrors (gems faulTim Hunter2007-08-23 22:14
                                                      RE: RMagick-win32 - NoMethodErrors (gems faulMatthias Reitinger2007-08-24 14:56
                                                            RE: RMagick-win32 - NoMethodErrors (gems faulTim Hunter2007-08-25 15:52
                                                                  RE: RMagick-win32 - NoMethodErrors (gems faulTim Hunter2007-09-03 14:22
                                                                        RE: RMagick-win32 - NoMethodErrors (gems faulMatthias Reitinger2007-09-03 15:29
                                                                        RE: RMagick-win32 - NoMethodErrors (gems faulSergey Gleizer2007-09-17 01:53
                                                                              RE: RMagick-win32 - NoMethodErrors (gems faulTim Hunter2007-09-17 10:57
                                                                        RE: RMagick-win32 - NoMethodErrors (gems faulMike Woodhouse2007-09-18 13:05
                                                                              RE: RMagick-win32 - NoMethodErrors (gems faulTim Hunter2007-09-18 13:52

Post a followup to this message