Linux protocol.rb and smtp.rb problem[FIXED]

ruby

    Next

  • 1. Directory structure best practice?
    Hi all! What are the best practices concerning directory structures for Ruby programs? I want to run tests using Cucumber and RSpec, so referring to the RSpec book I created a features/ and spec/ folders for the tests, a lib/ folder for my code, and a bin/ folder for all that shall be executed. What do I need to roll out my own Gem, if needed? What is the expected distribution format of a gem? Also, is there a way to pack the app for distribution for Linux, Windows, and Mac? -- Thank you for your brain. -MrZombie

Re: Linux protocol.rb and smtp.rb problem[FIXED]

Postby Zach Dennis » Sat, 06 Dec 2003 05:09:16 GMT

The problem had to due to line endings. On a Windows machine it appears that
the protocol.rb file allows you to pass in parameters with a CRLF on the
end. It works! On a Linux machine it didn't.

Solution: I 'chomp'ed the line endings off.

Zach



Similar Threads:

1.Linux protocol.rb and smtp.rb problem

I am moving my ruby program file from my winbox to my linux( redhat 9 ) box.
I've got ruby 1.8.1 installed on my linux box. However when I run my script
the following lines error out:

smtp = Net::SMTP::new( server )
smtp.start( domain , username , password , "cram_md5" )

It complains about:

/usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'initialize': getaddrinfo:
Name or service not known( SocketError )
	from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'new'
	from /usr/local/lib/ruby/1.8/net/protocol.rb:83:in 'connect'
	from /usr/local/lib/ruby/1.8/net/protocol.rb:82:in 'timeout'
	etc...etc...etc...

It works beautifully on my Windows box. Any ideas?

Zach


2.Linux protocol.rb and smtp.rb problem: IPv6? no

3.RB+VW7.1 refresh problem under Linux

4.RB apps on Handhelds iPaq + Linux?

Has anyone been successful running a compiled Linux RB app on a handheld?

5.RB and Linux ...

6. trouble on linux with rb 2005 and html viewer

7. Linux support in RB 5.5

8. RB 5.5a and Linux?



Return to ruby

 

Who is online

Users browsing this forum: No registered users and 97 guest