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?

MedMik
  • 144
  • 1
  • 12
Jasper Blues
  • 28,258
  • 22
  • 102
  • 185
  • 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. – Jasper Blues Oct 24 '13 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 Oct 29 '13 at 14:50
  • [TextWrangler](https://itunes.apple.com/us/app/textwrangler/id404010395?mt=12) is a good alternative. – theblang May 19 '15 at 15:34
  • 1
    FYI the current beta version (3.13.91) runs fine on Yosemite, did not need additional packages. – austinmarton Jun 04 '15 at 01:38
  • @austinmarton great news, but it's not the latest beta! (it's dated 2014-09-12). – Matteo Jun 05 '15 at 01:10
  • Ah OK, I found it at http://ftp.gnome.org/pub/GNOME/binaries/mac/gedit/beta/ so assumed it was – austinmarton Jun 05 '15 at 03:25

9 Answers9

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/.

Bob Gilmore
  • 12,608
  • 13
  • 46
  • 53
ColinKinloch
  • 386
  • 2
  • 5
  • 1
    to install xcode command line tools use xcode-select --install from terminal. then use ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" to install brew – aliasgar Feb 12 '14 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)"` – RogueBaneling Jan 03 '15 at 01: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.

EkriirkE
  • 2,277
  • 19
  • 13
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

1

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

Hong
  • 11
  • 1
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.

  • 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. – Jasper Blues Dec 06 '13 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 Dec 22 '13 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

Friedrich S
  • 86
  • 1
  • 4
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.
Jasper Blues
  • 28,258
  • 22
  • 102
  • 185
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

Darek
  • 1
-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
Kalyanaraman Santhanam
  • 1,371
  • 1
  • 18
  • 30