如何在Qt Creator中设置终端? [英] How to set terminal in Qt Creator?

查看:997
本文介绍了如何在Qt Creator中设置终端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由Qt Creator向导自动创建的简单C ++项目(只有Hello World!)。当我按F5进行调试时,终端出现错误:

I have a plain C++ project automatically created by the Qt Creator wizard(just the "Hello World!" one). When I press F5 to debug, there's an error in the terminal:


无法连接创建者通讯套接字/tmp/qt_temp.HP2094/stub- socket:没有
这样的文件或目录

Cannot connect creator comm socket /tmp/qt_temp.HP2094/stub-socket: No such file or directory

我在互联网上搜索过解决方案并试过这个:

I have searched for solutions in the Internet and tried this one:


将终端值从x-terminal-emulator -e更改为
/ usr / bin / xterm -e

change the terminal value from x-terminal-emulator -e to /usr/bin/xterm -e

不幸的是,它对我不起作用。弹出一个消息框,提示ptrace:Operation not allowed。

Unfortunately, it doesn't work for me. A message box pops up saying "ptrace: Operation not permitted".

如何使我的Qt Creator控制台应用程序正常运行?

PS:我的Qt创建者版本是Ubuntu 12.04中的默认版本。

How to make my Qt Creator console application function normally?
PS: My Qt creator version is the default one in Ubuntu 12.04.

推荐答案

Ubuntu在一段时间内做了一些内核强化技术,它具有制作 gdb ptrace strace 在没有sudo权限的情况下停止工作,作为恶意软件防护更改。如果您按照此评论它将允许它正常工作。

Ubuntu did some kernel hardening techniques a while back that had the wonderful effect of making gdb, ptrace and strace stop working without sudo permissions, as a malware prevention change. If you follow this comment it'll allow it to work properly.

这篇关于如何在Qt Creator中设置终端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆