Jonathan del Strother
2006-Jul-10 18:58 UTC
[Rails] Receiving mail - "No such file to load -- pathname"
I''m using postfix in OS X to receive mail and forward it to my rails app. When it tries to feed the email into rails, it fails with the following error: "/Users/jon/Developer/OneMod/script/runner ''MailMan.receive (STDIN.read)''". Command output: /Users/jon/Developer/OneMod/script/../config/ boot.rb:7:in `require'': No such file to load -- pathname (LoadError) from /Users/jon/Developer/OneMod/script/../config/boot.rb:7 from /Users/jon/Developer/OneMod/script/runner:2:in `require'' from /Users/jon/Developer/OneMod/script/runner:2 If I manually enter the script/runner command, it works fine. Any ideas? Thanks Jon -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2114 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060710/04b15865/smime.bin
Al Evans
2006-Jul-10 19:48 UTC
[Rails] Re: Receiving mail - "No such file to load -- pathname"
Jonathan del Strother wrote:> I''m using postfix in OS X to receive mail and forward it to my rails > app. When it tries to feed the email into rails, it fails with the > following error: > > "/Users/jon/Developer/OneMod/script/runner ''MailMan.receive > (STDIN.read)''". > Command output: /Users/jon/Developer/OneMod/script/../config/ > boot.rb:7:in `require'': No such file to load -- pathname (LoadError) > from > /Users/jon/Developer/OneMod/script/../config/boot.rb:7 from > /Users/jon/Developer/OneMod/script/runner:2:in `require'' from > /Users/jon/Developer/OneMod/script/runner:2 > > > > If I manually enter the script/runner command, it works fine. > > Any ideas?Maybe you''re using /opt/local/bin/ruby and postfix is trying to use /usr/bin/ruby, and /usr/lib/ruby/<blah> doesn''t have pathname.rb? --Al Evans -- Posted via http://www.ruby-forum.com/.
Jonathan del Strother
2006-Jul-10 21:38 UTC
[Rails] Re: Receiving mail - "No such file to load -- pathname"
On 10 Jul 2006, at 20:48, Al Evans wrote:> Jonathan del Strother wrote: >> I''m using postfix in OS X to receive mail and forward it to my rails >> app. When it tries to feed the email into rails, it fails with the >> following error: >> >> "/Users/jon/Developer/OneMod/script/runner ''MailMan.receive >> (STDIN.read)''". >> Command output: /Users/jon/Developer/OneMod/script/../config/ >> boot.rb:7:in `require'': No such file to load -- pathname (LoadError) >> from >> /Users/jon/Developer/OneMod/script/../config/boot.rb:7 from >> /Users/jon/Developer/OneMod/script/runner:2:in `require'' from >> /Users/jon/Developer/OneMod/script/runner:2 >> >> >> >> If I manually enter the script/runner command, it works fine. >> >> Any ideas? > > Maybe you''re using /opt/local/bin/ruby and postfix is trying to use > /usr/bin/ruby, and /usr/lib/ruby/<blah> doesn''t have pathname.rb?Ah. Good point - it''s getting the ruby in /usr/bin rather than /usr/ local/bin. So how can I add /usr/local/bin to the path used by the postfix process? -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2104 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060710/b836889d/smime.bin
Al Evans
2006-Jul-10 22:07 UTC
[Rails] Re: Re: Receiving mail - "No such file to load -- pathname"
Jonathan del Strother wrote:> On 10 Jul 2006, at 20:48, Al Evans wrote: > >>> /Users/jon/Developer/OneMod/script/../config/boot.rb:7 from >> /usr/bin/ruby, and /usr/lib/ruby/<blah> doesn''t have pathname.rb? > Ah. Good point - it''s getting the ruby in /usr/bin rather than /usr/ > local/bin. So how can I add /usr/local/bin to the path used by the > postfix process?Postfix doesn''t seem to be very flexible there (according to a quick search, anyway). Your best bet might be cd /usr/bin sudo mv ruby oruby sudo ln /usr/local/bin/ruby ruby cd /usr/lib sudo mv ruby oruby sudo ln -s /usr/local/lib/ruby ruby (I think I typed that right; anyway, you get the idea.) --Al Evans -- Posted via http://www.ruby-forum.com/.
Maybe Matching Threads
- LoadError - no such file to load -- pathname (Dreamhost)
- "no such file to load -- rails/commands/runner (LoadError)"
- Does RSpec interfere with Pathname#dirname or Pathname#realpath ?
- Too long pathname in bitmap() crashes R on WinXP
- no such file to load - spec/test/unit