本文介绍了升级到GHC7后,所有程序突然失败,说“大多数RTS选项被禁用。与-rtsopts链接以启用它们。“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

在升级环境中编译的Haskell工具无论命令行参数如何都会失败,并显示此消息。

Haskell tools compiled in the upgraded environment fail with this message, regardless of command line parameters.

推荐答案

事实证明, ,RTS选项可能会导致,因此可以在GHC7中禁用它们。然后,当RTS选项传递给这样的程序时,它将失败。

As it turns out, RTS options can pose a security issue, so they can be disabled in GHC7. Then, when a RTS option is passed to such a program, it fails.

问题是我有GHCRTS环境变量集,它被添加到所有RTS选项Haskell程序。清除这个环境变量解决了这个问题。

The problem was that I had GHCRTS environment variable set, which is added to RTS options of all Haskell programs. Clearing this environment variable solved the issue.

这篇关于升级到GHC7后,所有程序突然失败,说“大多数RTS选项被禁用。与-rtsopts链接以启用它们。“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-09 01:57