Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
I've recently installed ubuntu linux on my pc (not dual booting), but have discovered a few hiccups. First of all, I need a decent text editor including all necessary libraries ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14

    C programming and text editor, Ubuntu

    I've recently installed ubuntu linux on my pc (not dual booting),
    but have discovered a few hiccups.
    First of all, I need a decent text editor including all necessary libraries
    to code in c... any suggestions. I'm using the latest version of ubuntu

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by mila2008 View Post
    First of all, I need a decent text editor including all necessary libraries
    to code in c... any suggestions. I'm using the latest version of ubuntu
    Install the "build-essential" package first to get GCC:

    Code:
    sudo apt-get install build-essential
    As far as text editors go, are you just looking to edit text or do you want a whole integrated development environment (IDE) that will let you compile and run from inside the program?

    If you just want text literally any program will work. Nano, Gedit, emacs, vi, and any number of other text editors. If you want an IDE, you can try one of these:

    Code::Blocks
    Eclipse
    Anjuta
    KDevelop
    Registered Linux user #270181
    TechieMoe's Tech Rants

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14
    I'm looking at an IDE. tried to install Kate, but got a nasty error: "System has dependency problems try "sudo apt-get install -f" to fix this."
    tried it, and then it started to remove some useful aps, and then i stopped it

  4. #4
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14
    and now all i get is "dpkg was interupted. you must manually run dpkg --configure -a to fix." which tells me in turn that i have to be a superuser to do this...
    Homer says: dope!!

  5. #5
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by mila2008 View Post
    I'm looking at an IDE. tried to install Kate, but got a nasty error: "System has dependency problems try "sudo apt-get install -f" to fix this."
    tried it, and then it started to remove some useful aps, and then i stopped it
    If you installed regular Ubuntu, the reason you couldn't install Kate is that Ubuntu uses the GNOME desktop by default, and Kate is a KDE application. In order to install Kate you also have to install all the KDE libraries, graphics, etc. It's overkill for a text editor. If you just want a plain text editor (with the option of syntax highlighting) the "Text Editor" app in your Accessories menu is more than adequate.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  6. #6
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14
    okay, i tried that after i installed build essential, but i don't think i have all the libraries installed... any suggestions on that aspect?

  7. #7
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Quote Originally Posted by mila2008 View Post
    okay, i tried that after i installed build essential, but i don't think i have all the libraries installed... any suggestions on that aspect?
    What do you mean you don't think you have all the libraries installed? Build-essential should give you all you need for C programming.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  8. #8
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14
    gcc hello.c
    :stdio.h No such file or directory

  9. #9
    Just Joined!
    Join Date
    Apr 2008
    Posts
    14
    well, after compiling a c file,
    i get a error message saying
    :stdio.h " No such folder or directory"

  10. #10
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Can you post your C code?
    Registered Linux user #270181
    TechieMoe's Tech Rants

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...