Results 1 to 5 of 5

Thread: cannot access gedit or files therein

  1. #1
    Join Date
    Jun 2014
    Beans
    1

    Angry cannot access gedit or files therein

    I'm trying to do some practice code but I can't open gedit from my terminal. (I have a Mac OS so it's built in.) I go to my applications folder and all I see is a file called gedit.app. So when I type in the following code

    gedit practice1.cpp &

    I get the following feedback:

    new-host:applications gregdreifus$ -bash: gedit: command not found

    So, I just opened gedit through the Mac terminal and saved a file on it called practice1.cpp

    However, it only let me save this on my desktop. So, now that I'm trying to compile my code, I go to the desktop file and try to put into the terminal the following code:

    g++ practice1.cpp -o practice1

    but I'm given the following output:

    -bash: g++: command not found

    What do I do?

  2. #2
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: cannot access gedit or files therein

    Quote Originally Posted by newtocoding123 View Post
    ...I have a Mac OS... What do I do?
    Not trying to be uncharitable, but we can't help you here and you really need to post your questions to an Apple forum. Mac OS is not Linux, even though they may have kidnapped some Gnome tools for their own purposes.

  3. #3
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: cannot access gedit or files therein

    Moved to Other OS/Distro Support.

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    open

    I don't have OS X available at the moment but if I recall correctly you'll have to use open to launch the graphical app you want if that file .

    Code:
    open -a gedit practice1.cpp
    If you take a look a the graphical app using the shell, you see that it's really a set of directories with a huge number of files included. If I understand correctly, they are self-contained and statically linked.

    About gcc and g++, you'll have to get that from XCode. I think it still might be free but you do have to download it from the Apple Store.

  5. #5
    Join Date
    Nov 2011
    Beans
    2,336
    Distro
    Ubuntu

    Re: cannot access gedit or files therein

    Quote Originally Posted by DuckHook View Post

    ... even though they may have kidnapped some Gnome tools for their own purposes.
    Believe this a version of gedit the Gnome folks released for OS X, as they have for Windows.

    I used Macs from System 9 days until a few months ago and recall nothing "kidnapped" from Gnome.

Tags for this Thread

Bookmarks

Posting Permissions

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