Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Cygwin Emacs confusion

  • 28-09-2012 11:42PM
    #1
    Registered Users, Registered Users 2 Posts: 34


    Hi, I'm currently using emacs to write programmes in C and using Cygwin to compile them in college. I'm still very new to programming so I want to practice on my laptop at home, but I've had a few problems setting up emacs and cygwin. I've downloaded them successfully, but whenever I try compiling the programme on Cygwin, this message comes up:
    "emacs is not recognized as an internal or external command, operable program or batch file"

    Any feedback on how to solve this problem would be greatly apppreciated. Thanks.
    Tagged:


Comments

  • Registered Users, Registered Users 2 Posts: 16,415 ✭✭✭✭Trojan


    We'd need more information about your setup.

    vi is better than emacs anyway, so you could just use that.


  • Registered Users, Registered Users 2 Posts: 2,062 ✭✭✭Colonel Panic


    Trojan wrote: »
    We'd need more information about your setup.

    vi is better than emacs anyway, so you could just use that.

    iKzUL.jpg


  • Registered Users, Registered Users 2 Posts: 34 Rocky Marciano


    Thanks for replying :)
    Well I was hoping to use emacs and cygwin since they're the ones I'm using in college and I'd like to use the same programmes at home on my laptop for consistency. Any practice on emacs would really help me as I'm still a newbie with programming and I'd like to get better.

    What kind of information do you need to know about my setup?


  • Registered Users, Registered Users 2 Posts: 339 ✭✭duffman85


    If you run the setup.exe that comes with cygwin you can choose to install additional packages - choose emacs and install.

    Also how are you compiling your programs? from inside emacs or from the cygwin terminal with gcc?


  • Registered Users, Registered Users 2 Posts: 34 Rocky Marciano


    When I ran the setup, the only additional packages I selected were "gcc g++ C++ compiler" and "gcc core C compiler".
    Would I be as well off to uninstall cygwin and re-install with the emacs additional package, or can I fix the problem without un-installing?

    I was compiling the programmes from the cygwin cmd prompt window with the gcc compiler, since that's the way I was doing it in college.

    Thanks for your reply btw; I really appreciate the feedback :)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 339 ✭✭duffman85


    Just run the Cygwin setup.exe again and select the emacs package. If there are any other packages that emacs needs the Cygwin installer should prompt you to also install those.


  • Registered Users, Registered Users 2 Posts: 34 Rocky Marciano


    I got it working at last! Thank you so much to everyone who replied; your help was greatly appreciated! :)


  • Registered Users, Registered Users 2 Posts: 16,415 ✭✭✭✭Trojan




Advertisement