[Mono-list] Mono on macosx

zhengjinyuan zjinys@yahoo.com.cn
Tue, 11 Jan 2005 13:52:29 +0800


I use the version 1.1.3 on macosx ,when I try to compile and the the 
code from monohandbook , It tell me

pps-Computer:/usr/local/src/dotnet/monohandbook pp$ ./SysCall.exe
-bash: ./SysCall.exe: cannot execute binary file
pps-Computer:/usr/local/src/dotnet/monohandbook pp$ mono SysCall.exe 
SysCall.cs

Unhandled Exception: System.DllNotFoundException: MonoPosixHelper
in <0x000d8> (wrapper managed-to-native) 
Mono.Posix.Syscall:map_Mono_Posix_FileMode (Mono.Posix.FileMode)
in <0x00024> Mono.Posix.Syscall:chmod (string,Mono.Posix.FileMode)
in <0x0004c> ChmodTest:Main (string[])



coding I running
using Mono.Posix;
public class ChmodTest{
   public static void Main(string[] args){
     string file = args[0];
     Syscall.chmod(file,(FileMode)0x777);

     int uid=Syscall.getuid();
     int gid=Syscall.getgid();
     Syscall.chown(file,uid,gid);
   }
}

any tips ?

thanks