Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Any tips on migrating code from Windows to UNIX

0 views
Skip to first unread message

Kurt Euler

unread,
Feb 28, 2005, 12:49:03 AM2/28/05
to
All- Can anyone give me some general tips and gotchas for how to migrate
Ruby code from Windows to UNIX (apart from taking care to convert drive
mappings)? A recent program I ran on Windows in a about 20 seconds runs
in about 1 second on a UNIX box. Only problem is, no work gets done.
Expected output files aren't created. No errors are thrown, but screen
"puts" for monitoring progress are sporatic.

Thanks in advance!

-Kurt

James Britt

unread,
Feb 28, 2005, 1:11:08 AM2/28/05
to

General tip: Watch out for alternate EOL characters.

Mostly an issue when the shebang line has a trailing ^M

The tip-off is usually a "bad interpreter" error message or something
along those lines.

More specific to your case: Try running with tracing:

% ruby -rtracer code.rb

Also verify file and directory permissions, though these things should
raise errors.

And turn on warnings.

James


Kurt Euler

unread,
Feb 28, 2005, 1:47:05 AM2/28/05
to
Thanks! I'll check/try these things!

-Kurt

Csaba Henk

unread,
Feb 28, 2005, 2:57:34 AM2/28/05
to
On 2005-02-28, James Britt <jamesUN...@neurogami.com> wrote:
> % ruby -rtracer code.rb

Woohoo! I didn't know of this! That's cool!

Csaba

0 new messages