[Haskell-beginners] Re: timer_create: Invalid argument
Maurício
briqueabraque at yahoo.com
Mon Jun 8 11:26:48 EDT 2009
> Now, when I invoke the program on my computer, it does what it should do:
> (...)
> However, when I run the program on a different computer, I get the
> following: (...)
> [thomas at ... ~] $ ./count count.hs
> count: timer_create: Invalid argument
I don't know where time_create is exactly used here, however,
it seems like a linking problem. Have you tried rebuilding your
program in the remote machine? Actually, the fact that other
programs did succeed seems strange to me. You could show some
program that did work on both machines if you want to know why
it actually worked.
If you don't want to rebuild, why not to use it as a script? You
can do it by just adding this first line to your file:
#!/usr/bin/runhaskell
and allowing it to be used as a script:
chmod a+x count.hs
I usually add such scripts to ~/bin so I can run then anywhere
(but check if your distribution do add ~/bin to path).
Maurício
More information about the Beginners
mailing list