The Version of Gedit on the gnome.org site does not seem to run on OSX Mavericks. Is there any way to fix this?
-
1If 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 BluesCommented Oct 24, 2013 at 13:37
-
1I 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.– ataulmCommented Oct 29, 2013 at 14:50
-
TextWrangler is a good alternative.– theblangCommented May 19, 2015 at 15:34
-
1FYI the current beta version (3.13.91) runs fine on Yosemite, did not need additional packages.– austinmartonCommented Jun 4, 2015 at 1:38
-
@austinmarton great news, but it's not the latest beta! (it's dated 2014-09-12).– MatteoCommented Jun 5, 2015 at 1:10
9 Answers
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/
.
-
1to 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– aliasgarCommented 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
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.
-
3
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
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. 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.– TobiaCommented Dec 22, 2013 at 15:31
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
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.
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
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