使用Mono Amazon EC2编译Fsharp

时间:2013-05-15 08:05:23

标签: f# mono amazon-ec2

当我尝试以标准方式编译F#时:

./autogen.sh --prefix=/opt/mono && make && make install

它失败了:

ilwrite: TIME 35.286 (total) 0.000 (delta) - Build String/Blob Address Tables make[3]: *** [.libs/proto//4.0/FSharp.Compiler-proto.dll] Killed make[3]: *** Deleting file .libs/proto//4.0/FSharp.Compiler-proto.dll make[3]: Leaving directory /src/fsharp/src/fsharp/FSharp.Compiler-proto make[2]: *** [do-proto] Error 2 make[2]: Leaving directory /src/fsharp/src/fsharp make[1]: *** [all] Error 2 make[1]: Leaving directory /src/fsharp/src/fsharp make: *** [all] Error 2

我在我的EC2实例上安装了git master的mono 3.11。

谢谢!

1 个答案:

答案 0 :(得分:0)

我已成功使用m1.small实例编译F#并切换回t1.micro以便执行此操作:

1 upgrade your currently running instance with larger RAM

    1.1 login to aws console

      1.1.0 navigate to EC2 service
      1.1.1 choose instances 
      1.1.1 check instance you want fsharp to be compiled on
      1.1.2 click actions
      1.1.3 stop instance

    1.2 change instance type ( m1.small instance with 1.7 GB is enough )
    1.3 boot your pumped instance (do not forget to reassign elastic IP when instance booted)

2 compile and install F#  with $ ./autogen.sh --prefix=<YOUR_PREFIX> && make && as sudo make install