kriscross07 / atom-gpp-compiler

An atom package that allows you to compile and run C++ and C within the editor.
https://atom.io/packages/gpp-compiler
80 stars 228 forks source link

Atom-xterm-compiler #122

Open Alok191196 opened 7 years ago

Alok191196 commented 7 years ago

'xterm' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

mehedi432 commented 6 years ago

'xterm' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

andrehl commented 6 years ago

Try to install it from your terminal (linux) by typing:

sudo apt-get install xterm

It worked for me!

ps1729 commented 6 years ago

Its not working for me, any other solutions?

RubenPOR commented 6 years ago

It's also not working for me. I am using Linux Mint. I've installed xterm, it's located at /usr/bin, that folder is on PATH, and I can lauch xterm using "xterm" command at gnome terminal. I still get the messagem 'xterm' could not be spawned when I try to compile and run.

Also changed in gpp setting from xterm to gnome-terminal, still the same result. Any help?

scaforchio commented 6 years ago

I have the same problem. Linux Mint. xterm is installed and e I can launch it.

scaforchio commented 6 years ago

I have resolved installing Atom from official repository. https://flight-manual.atom.io/getting-started/sections/installing-atom/

lrdsouza commented 5 years ago

I followed these steps to solve the problem in Linux Mint 19.1:

The problem has been solved for me.

ghost commented 5 years ago

I followed these steps to solve the problem in Linux Mint 19.1:

  • Uninstall Atom;
  • Uninstall xterm by terminal;
  • Install xterm by terminal sudo apt-get install xterm;
  • Install the atom through the official repository, quoted by @scaforchio

The problem has been solved for me.

Hey I have the same issue in KDE,It used to work perfectly with console but now asks for xterm,I don't want xterm,I wan't to use konsole.What should I do?

ghost commented 5 years ago

I followed these steps to solve the problem in Linux Mint 19.1:

  • Uninstall Atom;
  • Uninstall xterm by terminal;
  • Install xterm by terminal sudo apt-get install xterm;
  • Install the atom through the official repository, quoted by @scaforchio

The problem has been solved for me.

Hey I have the same issue in KDE,It used to work perfectly with console but now asks for xterm,I don't want xterm,I wan't to use konsole.What should I do?

nvm fixed it,If anyone's facing the same problem,

Hey,The simple fix is to Get to settings>Packages Search "gpp-compiler" >click "settings" and select default console as konsole or whatever you're using,Have a good day родной брат

shjung-kr commented 4 years ago

I followed these steps to solve this problem in ubuntu Linux.

  1. install atom
  2. install gcc
  3. install xterm (sudo apt-get install xterm)
airleeky commented 4 years ago

"sudo apt-get install xterm" worked for me. Thanks guys

genialkartik commented 4 years ago

Edit index.js file on your local computer. Just in xterm using following command: sudo apt-get install xterm Or follow these steps for perfect solution:

  1. Open Atom > goto Installed Packages > select gpp-compiler >> click on View Code.
  2. A new Atom editor will open with files of gpp-compiler on your local computer.
  3. open index.js file and search for "xterm" and replace it with the name of yourdefault terminal (depends on Linux version you're using).
  4. List of supported terminals:
    "XTerm",
        "GNOME Terminal",
        "Konsole",
        "xfce4-terminal",
        "pantheon-terminal",
        "URxvt",
        "MATE Terminal"

    Note: I replaced "xterm" with"xfce4-terminal" which is default terminal of my Linux (MX Linux) and it worked fine. Happy coding :smile:

himanshuagarwl commented 4 years ago

sudo apt-get install xterm is work for me