Status
- Development of NEdit has largely ceased, but a fork called NEdit-NG (NEdit Next Generation) is actively maintained. NEdit-NG modernizes the original while maintaining the core user experience.
Yes, NEdit-NG can be installed on Ubuntu. While it's not available directly through Ubuntu's default package repositories, you can compile it from source by following these steps:
Install Required Dependencies: Open a terminal and execute the following commands to ensure all necessary packages are installed:
sudo apt update sudo apt install -y git cmake qt5-default qttools5-dev libboost-all-dev bisonClone the NEdit-NG Repository: Navigate to your preferred directory and clone the repository:
git clone https://github.com/eteran/nedit-ng.gitBuild NEdit-NG: Navigate into the cloned directory, create a build directory, and compile the source code:
cd nedit-ng mkdir build cd build cmake .. makeInstall NEdit-NG: After a successful build, install the application:
sudo make install
This process will install NEdit-NG on your system, making it accessible via the command line. For more detailed information and documentation, you can visit the official NEdit-NG documentation page.
Please note that while NEdit-NG aims to be a drop-in replacement for the original NEdit, there may be differences in functionality and appearance due to modernization efforts. If you encounter any issues or have specific requirements, consulting the official documentation or seeking assistance from the developer community is recommended.
You said:
The qt5-default package is no longer available in recent versions of Ubuntu (such as 22.04 and later). However, you can install the necessary Qt development tools through alternative packages. Here's how to proceed:
Updated Installation Steps for Qt Dependencies
Install Qt Tools and Development Packages Run the following command to install the necessary Qt libraries and tools:
sudo apt update sudo apt install -y qtbase5-dev qtchooser qt5-qmake qtbase5-dev-toolsVerify
qmakeis Installed Ensure thatqmake, which is part of Qt, is available:qmake --versionThis command should output the version of
qmake. If it's missing, check the installation of theqt5-qmakepackage.Continue with Building NEdit-NG Now you can follow the remaining steps to build NEdit-NG from source:
- Clone the repository:git clone https://github.com/eteran/nedit-ng.git
- Navigate to the directory and build:
cd nedit-ng mkdir build cd build cmake .. make - Install:
sudo make install
- Clone the repository:
This should resolve the issue with qt5-default and allow you to successfully build and install NEdit-NG. Let me know if you encounter any other issues!
You said:
Given your system details (Linux ubuntu-desktop 5.15.0-119-generic running Ubuntu 22.04 LTS or a derivative), the choice of cmake version depends on the requirements of the software you're building and your preferences for stability versus newer features:
Recommended Version:
- Use the Snap version (3.31.3) if you need the latest features or are building software that explicitly requires a newer version of CMake.
- Use the APT version (3.22.1) if you prefer a stable version that is well-tested with your Ubuntu distribution and most projects.
Why Choose Each:
- Snap Version (3.31.3):
- Pros: Newer features, better compatibility with the latest C++ standards and modern projects.
- Cons: Snap-based applications can have a slightly slower startup and might introduce sandboxing behavior that could cause issues in rare cases.
- APT Version (3.22.1):
- Pros: Fully integrated with the Ubuntu package ecosystem, stable, and minimal risk of compatibility issues.
- Cons: Lacks the latest features and improvements in more recent CMake versions.
- Snap Version (3.31.3):
Compatibility with NEdit-NG:
- NEdit-NG typically doesn't demand the very latest CMake features, so the APT version (3.22.1) is likely sufficient.
- However, if the project's documentation or error messages suggest a requirement for a specific newer version, use the Snap version.
Suggested Approach
- Start with the APT version (3.22.1) to keep things simple and aligned with your system's dependencies.
sudo apt install cmake - If you encounter issues or if the project explicitly recommends a newer version, switch to the Snap version (3.31.3):sudo snap install cmake --classic
Let me know if you need further clarification or assistance!
You said:
ChatGPT said:
The error indicates that CMake is unable to find the Boost libraries on your system. Boost is a popular set of C++ libraries, and NEdit-NG requires it to build. Here's how you can resolve this issue:
Steps to Install and Configure Boost
Install Boost Development Libraries Install the Boost libraries and development headers via APT:
sudo apt install -y libboost-all-devVerify Boost Installation Ensure the Boost headers and libraries are installed correctly. For example:
ls /usr/include/boostIf the directory exists and contains files, Boost is installed.
Clean and Retry CMake After installing Boost, clean your build directory and run CMake again:
cd path_to_nedit_ng/build rm -rf * cmake ..Specify Boost Paths Manually (Optional) If CMake still cannot find Boost, explicitly provide the path to the Boost include directory and libraries using CMake variables:
cmake .. -DBOOST_ROOT=/usr/include/boost -DBoost_INCLUDE_DIR=/usr/include
Additional Notes
- Ensure that the version of Boost installed (via APT) meets the minimum version required by NEdit-NG, which is 1.35 or later. The
libboost-all-devpackage in Ubuntu 22.04 provides a much newer version, so this should not be an issue. - If you are using a custom Boost installation or the Boost libraries are installed in a non-standard location, you need to specify the paths manually using
BOOST_ROOT,Boost_INCLUDE_DIR, andBoost_LIBRARY_DIRS.
Let me know if the issue persists after trying these steps!
You said:
The error indicates that the Qt5LinguistTools package is not installed or CMake cannot locate it. This package is part of the Qt tools suite and is required to build NEdit-NG. Here's how to resolve it:
Steps to Fix the Error
Install the
qttools5-devPackage Theqttools5-devpackage includesQt5LinguistToolsand other necessary development tools. Install it using APT:sudo apt update sudo apt install -y qttools5-devVerify Installation After installation, ensure that the
Qt5LinguistToolsConfig.cmakefile exists. You can check its presence with:locate Qt5LinguistToolsConfig.cmakeIt is usually located in
/usr/lib/x86_64-linux-gnu/cmake/Qt5LinguistTools/.Clean and Retry CMake After ensuring
Qt5LinguistToolsis installed, clean your build directory and rerun CMake:cd path_to_nedit_ng/build rm -rf * cmake ..Manually Set the
CMAKE_PREFIX_PATH(If Needed) If CMake still cannot locateQt5LinguistTools, specify its location explicitly:cmake .. -DCMAKE_PREFIX_PATH="/usr/lib/x86_64-linux-gnu/cmake/Qt5LinguistTools/"
Explanation
- The
qttools5-devpackage provides the necessary development files, including the configuration files that CMake uses to locateQt5LinguistTools. - If you use a custom Qt installation, you may need to set the
CMAKE_PREFIX_PATHto the directory containing the relevant Qt5 CMake configuration file
If the build process for NEdit-NG succeeds, you can run the application by following these steps:
Steps to Run NEdit-NG
Locate the Executable After a successful build, the
nedit-ngexecutable is typically located in thebuilddirectory where you compiled the project. You can find it with:find . -name nedit-ngThis should return the path to the executable, such as
build/src/nedit-ng.Run Directly from the Build Directory You can run NEdit-NG directly from the build directory:
./src/nedit-ngInstall NEdit-NG System-Wide (Optional) If you want to run
nedit-ngfrom anywhere on your system without specifying the full path, install it system-wide:sudo make installThis will typically place the
nedit-ngbinary in/usr/local/bin, making it accessible via:nedit-ngVerify Installation Check if the
nedit-ngbinary is in your system's PATH by running:which nedit-ngThis should return the installation path (e.g.,
/usr/local/bin/nedit-ng).Run NEdit-NG If installed system-wide, simply type the following in a terminal:
nedit-ng
No comments:
Post a Comment