30/09/2018, 23:43

Please Help with UBUNTU Xterm console

My Ubuntu 16.04 is showing this message on XTerm every time I start debbuging with codeblocks:
warning: GDB: Failed to set controlling terminal: Operation not permitted

I am completely new to Ubuntu.
How do I fix?
Can I direct Codeblocks to Terminal instead of Xterm?
Pls help!

Xin loi cac ban, minh cai font tieng Viet (Unikey) cung chua duoc.

Khoa Nguyen viết 01:43 ngày 01/10/2018

warning: GDB: Failed to set controlling terminal: Operation not permitted

Hi there,

I didn’t install codeblocks on Ubuntu so I have no idea how to fix this. But according to the error message, I can guess that it’s something related to permission issues. Set executable chmod for the file you’re executing. Or try to run with sudo user.

I did a quick search on Google with your error message and I can see some solutions:

  • http://forums.codeblocks.org/index.php?topic=19148.0
  • http://askubuntu.com/questions/271887/warning-gdb-failed-to-set-controlling-terminal-operation-not-permitted
  • http://stackoverflow.com/questions/29219666/codeblocks-warning-gdb-failed-to-set-controlling-terminal-operation-not-per

If you don’t know how to google, you can follow this tutorial by LMGTFY: http://bfy.tw/7cVo

kuthoong viết 01:45 ngày 01/10/2018

Bạn vào Settings/Environment Settings/General Settings mục Terminal to lauch console programs chỉnh thử xem được không. Bữa mình cũng chỉnh trong này

anon45952904 viết 01:54 ngày 01/10/2018

Thank you.
Many answers with google search but one “works” for me. Or I do not have enough basis of Ubuntu to follow indicative instructions.
Change the kind of terminal from codeblocks ->Setting-> Environment Setting.
This way produces another problem that it creates a new terminal once I click Step Into button in codeblocks.

This time, with ubuntu I just want to use, not to learn much.
Anyone have completely fixed this? please share!

anon45952904 viết 01:43 ngày 01/10/2018

Cam on ban. Minh da lam nhu tren tam thoi no lam viec roi ban a.

kuthoong viết 01:53 ngày 01/10/2018

Oke, z là được rồi, còn vụ debug mà nó mở ra terminal khác thì mình cũng không biết nữa @@

Chế Tiệp Chân Khoa viết 01:47 ngày 01/10/2018

May be off-topic but … xterm is no longer maintained, why not use other terminals

anon45952904 viết 01:48 ngày 01/10/2018

Yes, can change to terminal. It works
Thannk you

Bài liên quan
0