gpt4 book ai didi

linux - 可以从 Qt 运行程序但不能从 konsole 运行它

转载 作者:太空宇宙 更新时间:2023-11-04 04:17:05 28 4
gpt4 key购买 nike

我有一个听起来很奇怪的问题。我在Qt中编译了一个程序并成功运行。

但是当我导航到 konsole 中的发布文件夹并运行该程序(即使使用 super 用户)时,它报告:

If 'HelloWorld' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf HelloWorld

我检查了权限,所有用户都可以读取。路径是正确的。我已经没路了。

请帮助我!

注意:我在 OpenSuse 12.1 上使用 Qt 4.74。几天前刚从 Windows 切换过来

我认为这与源代码无关,因为即使是一个简单的 HelloWorld 程序也无法运行

最佳答案

如果程序位于当前目录中,请确保使用指示的前缀运行它:

./HelloWorld

关于linux - 可以从 Qt 运行程序但不能从 konsole 运行它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15807391/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com