How to deploy an executable ?

This is totally a noob question. But i do have a problem. I create an executable of yesod app using cabal configure -fproduction and then cabal build. It runs fine on my dev pc (archlinux) Then i copy it via ssh to remote server (ubuntu) and try to run there. It gives me this error: bash: ./app-production: cannot execute binary file I checked and yes executable permissions are set on that file. Are there any other files i need to copy ? That server has no ghc installed at all. Regards, Vagif Verdi

Please disregard my question. It turns out the server is 32 bit, and my dev pc is 64 bit. On Thursday, March 24, 2011 05:27:32 PM you wrote:
This is totally a noob question. But i do have a problem. I create an executable of yesod app using cabal configure -fproduction and then cabal build. It runs fine on my dev pc (archlinux)
Then i copy it via ssh to remote server (ubuntu) and try to run there. It gives me this error: bash: ./app-production: cannot execute binary file
I checked and yes executable permissions are set on that file.
Are there any other files i need to copy ? That server has no ghc installed at all.
Regards, Vagif Verdi
_______________________________________________ web-devel mailing list web-devel@haskell.org http://www.haskell.org/mailman/listinfo/web-devel
participants (1)
-
vagif.verdi@gmail.com