18

The Version of Gedit on the gnome.org site does not seem to run on OSX Mavericks. Is there any way to fix this?

6
  • 1
    If you leave a close vote, please explain the purpose of the gedit tag for me. I want to understand the SO standards on this, not only for this question but future questions. Commented Oct 24, 2013 at 13:37
  • 1
    I didn't vote to close, but I feel this question is more suited for SuperUser. I would expect the tags you mentioned to be used if the asker was writing Gedit plugins, or OSX apps.
    – ataulm
    Commented Oct 29, 2013 at 14:50
  • TextWrangler is a good alternative.
    – theblang
    Commented May 19, 2015 at 15:34
  • 1
    FYI the current beta version (3.13.91) runs fine on Yosemite, did not need additional packages. Commented Jun 4, 2015 at 1:38
  • @austinmarton great news, but it's not the latest beta! (it's dated 2014-09-12).
    – Matteo
    Commented Jun 5, 2015 at 1:10

9 Answers 9

27

When I tried it, the problem was the version of libxml2 packaged with gedit.

Use the command "brew install libxml2"

then cp /usr/local/Cellar/libxml2/2.9.1/lib/libxml2.2.dylib /Applications/gedit.app/Contents/Resources/lib/.

In the current version of brew, the directory has changed to 2.9.2 so: then cp /usr/local/Cellar/libxml2/2.9.2/lib/libxml2.2.dylib /Applications/gedit.app/Contents/Resources/lib/.

2
  • 1
    to install xcode command line tools use xcode-select --install from terminal. then use ruby -e "$(curl -fsSL raw.github.com/Homebrew/homebrew/go/install)" to install brew
    – aliasgar
    Commented Feb 12, 2014 at 12:07
  • As an update, the Homebrew link has changed, the new command is ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Commented Jan 3, 2015 at 1:13
12

Having MacPorts installed and comments from above I was able to simply rm /Applications/gedit.app/Contents/Resources/lib/libxml2.2* and it used the system/macports library instead of the bundled one without error.

1
8

Just to Revise:

  • Having macports installed correctly. (If you just updated from e.g. OSX Lion you need to migrate macports to your new Maverics OSX System, https://trac.macports.org/wiki/Migration)

  • Downloading gedit-3.2.6-3

  • sudo port install libxml2

  • and rm /Applications/gedit.app/Contents/Resources/lib/libxml2.2*

  • Open gedit and start Coding!

For my 13-inch, Early 2011 Macbook pro it worked just fine.

--

If you want to use gedit from Terminal:

add

alias gedit="open -a gedit"

to

~/.bash_profile

0
1

Gedit 2.30.2 works. But your own plugin won't work on Gedit 2.30.2.

1

I dont know what your goal is, but i found a easier way with another program. If installing all of this starts to get tiersome (that's what i figured out at least, since xcode needed downloading and tampering), i found sublime text 2 to work very nicely.

2
  • Thanks, I'll give it a try. . For me gedit is quite a nice text editor. . Years ago it was by far my favorite on OSX, however there's now a lot of native options. . I tried Chocolat, and its very nice, although fairly expensive. Commented Dec 6, 2013 at 14:36
  • SublimeText is even more expensive than Chocolat (although it's my editor of choice.) A good free editor for Mac is TextWrangler.
    – Tobia
    Commented Dec 22, 2013 at 15:31
1

I found that the version of "libxml2.2.dylib", distributed with Gedit 3.2.6 is outdated.

Install "Xcode" from the App Store (if you have not already done so), then:

$ cp -p /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib/libxml2.2.dylib /Applications/gedit.app/Contents/Resources/lib/libxml2.2.dylib

0

One solution (I'm still interested in others) is the following:

  • The latest version of Gedit (3.2.6-3)for OSX on the Gnome.org website crashes.
  • The older Gedit 2.30.2 still runs.
0

try version 2.26.3 of Gedit – it’s working for me on MOJAVE ! http://ftp.gnome.org/pub/GNOME/binaries/mac/gedit/2.26/ Darek

-1

If I am guessing correctly, your aim is a GUI Text editor for convenience.

open /path/to/file

performs the same action as of double clicking on the file from Finder

Also if you want to use it with a specific application like sublime text

open -a 'Sublime Text' /path/to/file

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.