2013-05-15 89 views
0

当我尝试编译F#标准方式:编译Fsharp使用Mono亚马逊EC2

./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

我从git的主单3.11安装在我的EC2实例上。

谢谢!

+0

根据这个问题的https://组.google.com/forum /?fromgroups =#!topic/fsharp-opensource/xrBxyP0utEA我必须将内存从600 MB增加到2GB(微型实例的默认值) –

+1

'Killed'是进程被杀死内存不足 –

回答

0

我已经成功编译F#用的m1.small实例和切换回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 
+1

你应该在你的答案中发布_how解决你的问题_,否则它将不会帮助任何人。 – mydogisbox

+1

对于编译步骤,最好以普通用户身份运行'autogen'和'make',并且只能为'make install' –