Skip to content
Greg E edited this page Nov 8, 2020 · 35 revisions
06 Nov 2020:  Started this Wiki page, documenting a Catalina 10.5.7 install.
08 Nov 2020:  Also installed nedit-ng on a more or less virgin Mac on Mojave 10.14.6 to check a more everyday install.

Part 1 of this page documents the build and install of nedit-ng on a fairly unmodified non-developer's Macbook, running Mojave 10.14.6

Part 2 documents the same on a MacOS Catalina 10.15.7, which already has Xcode installed and multitudes of software and tools. All done in November 2020.


Mojave 10.14.6

Download nedit-ng-master.zip from the green button labelled "Code" at https://github.com/eteran/nedit-ng. Unzip into any convenient location.

You will need the base set of Xcode command-line tools. To get these, in a Terminal shell type xcode-select --install

A basic check that they have installed ok is: type make and make --help. (You will need 'make' later).

Next we install Homebrew. For background, see https://brew.sh/ and https://osxdaily.com/2018/03/07/how-install-homebrew-mac-os/ This is a very reputable repository of all sorts of Mac/Linux tools.

To install Homebrew, use the command

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

You may need your system administrator password. This may take a few minutes to download and build.

Type brew to be sure you have it, and can find it in your search PATH. For good measure type brew update to be sure it's up-to-date.

Next install cmake with brew install cmake. Type cmake , cmake --version , cmake --help to check all is good.

Now install bison with brew install bison. The install may end with a suggested command to ensure that this bison (and not some older one you may already have) is found first in your search PATH. Example:

echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> /Users/myusername/.bash_profile

Issue that command in the Terminal, start a new Terminal tab with Cmd-T, and check all good with bison --version. You can check your PATH environment variable with printenv PATH. These are the locations the bash or zsh shell searches for commands.

Next install the Boost C++ library with brew install boost. Again there may be an addition to your PATH suggested.

Next install the latest Qt5 library with brew install qt5. There may be an addition to PATH suggested.

Now we have all the tools and libaries we need. Build and install nedit-ng with ..

cd nedit-ng
mkdir build
cd build
cmake ..
make
make install

Copy the binaries nedit-ng, nc-ng , nedit-import to where you would like them, perhaps $HOME/mybin, or /usr/local/bin. Make sure that location is in your PATH.

  • Import your old nedit settings and macros with nedit-import nedit.rc
  • Set preferred font and size from the Nedit-ng Preferences menu.
  • Set preferred colour schemes in themes.xml, found in ~/Library/Preferences/nedit-ng

All done !


Catalina 10.15.7

The Catalina Mac had Xcode 12.1 already installed (latest for Catalina), and also the Xcode Command-Line tools.

Download the nedit-ng source as above, and unzip.

Cmake was already installed as a full Gui aplication from https://cmake.org/ We only need the command-line tools here. Add these to your path in $HOME/.bash_profile with a line like: PATH=/Applications/CMake.app/Contents/bin:$PATH: This will put the tools in front of any older version that may already be on your PATH.

Install Homebrew as above. Install Bison, Boost, Qt5 as above with the brew command. Build nedit-ng as above.

To do: Put the whole sequence as one "script" block.


Clone this wiki locally