Delphi XE - F1027 未找到单元:“System.pas”或激活试用版后的二进制等效文件 (.dcu)

发布于 2024-11-01 17:26:27 字数 336 浏览 10 评论 0原文

我在使用试用版 30 天后刚刚购买了完整版的 Delphi XE Architect。我无法构建任何东西,每次构建项目时都会出现错误。

[DCC Fatal Error] MegaMainPrj.dpr(1): F1027 Unit not found: 'System.pas' or binary equivalents (.dcu)

快速谷歌了一下,说库路径是一个问题,我将给出的内容(在之前的 stackoverflow 问题中)与注册表中的内容进行了比较,结果是相同的。

可能是什么原因造成的?

编辑:在我收到此错误消息后,整个 IDE 立即崩溃。

I just purchased the full version of Delphi XE Architect after using the trial version for 30 days. I can't build anything, every time I go to build a project I get the error.

[DCC Fatal Error] MegaMainPrj.dpr(1): F1027 Unit not found: 'System.pas' or binary equivalents (.dcu)

A quick google said that the library paths were a problem and I compared what was given (in a previous stackoverflow question) with what I had in the registry, and it was identical.

What could be causing this?

EDIT: Immediatly after I get this error message the entire IDE crashes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

添加这个:
$(BDSLIB)\win32\release;

到你的图书馆路径。

add this :
$(BDSLIB)\win32\release;

to your library path .

落叶缤纷 2024-11-08 17:26:27

确保环境变量设置正确(IDE 主菜单中的工具->选项->环境变量):

BDS=D:\Embarcadero\RAD Studio\8.0
BDSCOMMONDIR=C:\Users\Public\Documents\RAD Studio\8.0
PLATFORM=Win32

这些都应在系统变量中设置部分,并且应该由安装程序添加。 (显然,它们应该指向您的 XE 安装的安装位置 - 我的安装在 D:\Embarcadero\RAD Studio\8.0 中,如您所见。)

编辑:我在您的评论中看到您安装在 C:\Program Files 中 - 如果您运行的是 Windows Vista 或 Win7 或更高版本,则不是个好主意。您应该尝试安装在不同的位置。您还可以尝试以管理员身份运行 IDE(在“开始”->“所有程序”->Embarcadero->RAD Studio XE->Delphi XE 中右键单击快捷方式,从上下文菜单中选择“以管理员身份运行”)。这会改变什么吗?

此外,您还可以在 Embarcadero 上打开免费支持案例来解决与安装相关的问题。我首先尝试在另一个位置重新安装(以管理员身份运行安装,将其放在另一个文件夹中,然后为所有用户安装);如果这不起作用,请打开支持案例。您还可以在 Embarcadero Delphi 安装论坛 发帖 - 您需要已经创建了一个用户帐户首先要登录那里。

Make sure you have the environmental variables set properly (Tools->Options->Environmental Variables from the IDE's main menu):

BDS=D:\Embarcadero\RAD Studio\8.0
BDSCOMMONDIR=C:\Users\Public\Documents\RAD Studio\8.0
PLATFORM=Win32

These should all be set in the System Variables section, and should have been added by the installer. (Obviously, they should point to the installation location of your XE installation - mine is installed in D:\Embarcadero\RAD Studio\8.0, as you can see.)

EDIT: I see in your comment you installed in C:\Program Files - bad idea if you're running Windows Vista or Win7 or higher. You should try installing in a different location. You can also try running the IDE as Administrator (right-click shortcut in Start->All Programs->Embarcadero->RAD Studio XE->Delphi XE, choose "Run as Administrator" from context menu). Does this change anything?

Also, you can open a free support case at Embarcadero for installation-related issues. I'd first try reinstalling in another location (running the install as Administrator, putting it in another folder, and installing for all users); if that doesn't work, open a support case. You can also post to the Embarcadero Delphi Installation forums - you'll need to have already created a user account there first to log in.

染火枫林 2024-11-08 17:26:27
C:\Embarcadero\RAD Studio\9.0\lib\win32\release

C:\Embarcadero\RAD Studio\9.0\lib\win32\debug

两者都是从IDE添加到Delphi XE2中<<工具->选项->库->库路径< /strong>>>

没关系?

C:\Embarcadero\RAD Studio\9.0\lib\win32\release

and

C:\Embarcadero\RAD Studio\9.0\lib\win32\debug

Both of these path have been to add in Delphi XE2 from IDE <<Tools->Options->Library->Library path>>

It's OK?

青春如此纠结 2024-11-08 17:26:27

转到工具->选项->库->库路径

并添加 $(BDSLIB)\win32\release

这在 Delphi 10.2 中有效

Goto Tools->Options->Library->Library path

and add $(BDSLIB)\win32\release

This worked in Delphi 10.2

不必了 2024-11-08 17:26:27

当使用命令行编译器进行编译时,而不是从 IDE 内进行编译时,当构建配置的名称不是“debug”且不是“release”时,您也会收到此错误。

看来,当使用命令行编译器时,它会尝试在使用配置名称构建的 BDSLIB 下的路径中找到其 dcus。
我在使用名为 ReleaseHA 的配置时发生了这种情况。注意:它不是“release”下的子配置,而是“debug”和“release”之外的额外配置。

When compiling using the command line compiler, so not from within the IDE, you can also get this error when the name of the build configuration is not "debug" and not "release".

It seems that, when using the command line compiler, it tries to find its dcus in a path under BDSLIB that it constructs using the configuration name.
I had this happening when using a configuration named ReleaseHA. Note: it was not a sub configuration under "release", but an extra configuration besides "debug" and "release".

楠木可依 2024-11-08 17:26:27

有时,当我们包含重复的库时,会出现此错误消息。

确保:

工具->选项->环境选项->库

项目->选项->目录/条件

不要包含相同的内容路径...

Sometimes this error message occurs when we have duplicate libraries included.

Make sure that:

Tools->Options->Environmental Options->Library

and

Project->Options->Directories/Conditionals

Don't include the same paths...

遗弃M 2024-11-08 17:26:27

以管理员身份运行对我有用。

Running as Administrator worked for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文