UBUNTU Xterm console: GDB: Failed to set controlling terminal: Operation not permitted

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.

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:

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

1 Like

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

1 Like

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!

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

1 Like

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 @@

1 Like

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

Yes, can change to terminal. It works
Thannk you

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?