FSI.exe does not work under Ubuntu 10.10

后端 未结 2 704
死守一世寂寞
死守一世寂寞 2021-01-05 23:27

Update: Tried November CTP release. Same error message. Forgot to mention that this server has the Ubuntu server edition installed. I don\'t have this issue on my Ubuntu

2条回答
  •  一整个雨季
    2021-01-06 00:08

    Feel really awkward to answer my own question. Anyway, I'll answer it so other people can benefit from.

    First of all, install libreadline-dev and libreadline5 so you can get rid of the following error message

    Failed to install ctrl-c handler - Ctrl-C handling will not be available. Error was: Exception has been thrown by the target of an invocation

    If you encounter fsi.exe stuck issue, try

     fsi --gui-
    

    It works perfectly in my case.

    Here is my understanding of why such an issue happened. If you look into the code, you will find out fsi.exe actually references System.Windows.Forms, which further links to the Window system. In my case, I ran fsi in a server without X system installed. Consequently, fsi stuck there trying to talk to the nonexistent X. That explains why I don't have the issue in my desktop.

提交回复
热议问题