Usually we don't have many people from Bangladesh moving here, the situation has become like a desert here. Anyway, I'll try and post one if it helps.
Today, suddenly I wish it would be better if it was possible to keep the works that I have updated in the form of posts. I'm not that super expert at operating Ubuntu although I'm a Student of Computer Technology. So without further ado let's finish today's post.
The first thing we need to do update "The GNU nano" is to open our terminal any type
Code:
sudo apt-get update
You will then need to enter your password so that you can update your package list
you need to remove the old version of nano with the command
Code:
sudo apt remove nano
It will ask you for a permission to proceed, You just need to press "The ENTER Button" for the default "Y" option.
Then, you need to download the source code of the latest version of nano from its official website. You can use the command wget to download it. For example, if you want to install nano version 7.0, you can run
Code:
wget https://www.nano-editor.org/dist/v7/nano-7.2.tar.gz
Next, you need to extract the downloaded file with the command
Code:
tar -xf nano-7.2.tar.gz
After that, you need to change your directory to the extracted folder with the command
Then, you need to install the curses header files on your system. The curses library is a text-based user interface library that allows you to create interactive programs that run in a terminal. The header files are the files that contain the declarations and definitions of the functions and variables that are part of the library. You need these files to compile and link your programs that use the curses library.
Fortunately you are using Ubuntu which is a Debian-based OS, you can use the following command to install the libncurses5-dev package, which contains the header files and other development files for the ncurses library, a modern version of the curses library:
Code:
sudo apt-get install libncurses5-dev
Without this you cannot configure the file. you might face a configuration error.
e.g.
Code:
configure: error:
*** No curses lib was found. Please install the curses header files
*** from libncurses-dev (Debian), ncurses-devel (Fedora), or similar.
*** (Or install ncurses from https://ftp.gnu.org/gnu/ncurses/.)
Then, you need to run the configuration script with the command
Or, You can also add some options to customize your installation. For example, if you want to enable UTF-8 support, you can run
Code:
./configure --enable-utf8
Next, you need to compile the source code with the command
Finally, you need to install the compiled program with the command
If you want to check after successful installation the latest version of "The GNU nano" by running
Hope it installed successfully on your machine.
Feel free to let me know if you face any problem.
Bookmarks