Run gedit on OSX Mavericks?
Asked Answered
G

9

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?

Gupta answered 24/10, 2013 at 6:41 Comment(6)
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.Gupta
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.Autonomic
TextWrangler is a good alternative.Rois
FYI the current beta version (3.13.91) runs fine on Yosemite, did not need additional packages.Ensample
@Ensample great news, but it's not the latest beta! (it's dated 2014-09-12).R
Ah OK, I found it at ftp.gnome.org/pub/GNOME/binaries/mac/gedit/beta so assumed it wasEnsample
T
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/.

Toastmaster answered 26/11, 2013 at 15:45 Comment(2)
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 brewChastitychasuble
As an update, the Homebrew link has changed, the new command is ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Entranceway
A
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.

Allege answered 16/1, 2014 at 22:50 Comment(1)
Fantastic. Works great.Doge
D
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

Depressant answered 19/1, 2014 at 19:13 Comment(0)
G
1

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

Gadfly answered 25/10, 2013 at 19:39 Comment(0)
D
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.

Dejong answered 6/12, 2013 at 14:7 Comment(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.Gupta
SublimeText is even more expensive than Chocolat (although it's my editor of choice.) A good free editor for Mac is TextWrangler.Creek
N
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

Nailbiting answered 19/8, 2014 at 21:4 Comment(0)
G
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.
Gupta answered 24/10, 2013 at 7:17 Comment(0)
A
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

Amaranthine answered 2/11, 2018 at 9:10 Comment(0)
T
-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
Ta answered 8/7, 2014 at 15:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.