helloarmaan
September 20th, 2023, 07:43 PM
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
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
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
wget https://www.nano-editor.org/dist/v7/nano-7.2.tar.gz
Next, you need to extract the downloaded file with the command
tar -xf nano-7.2.tar.gz
After that, you need to change your directory to the extracted folder with the command
cd nano-7. 2
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:
sudo apt-get install libncurses5-dev
Without this you cannot configure the file. you might face a configuration error.
e.g.
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
./configure
Or, You can also add some options to customize your installation. For example, if you want to enable UTF-8 support, you can run
./configure --enable-utf8
Next, you need to compile the source code with the command
make
Finally, you need to install the compiled program with the command
sudo make install
If you want to check after successful installation the latest version of "The GNU nano" by running
nano --version
Hope it installed successfully on your machine.
Feel free to let me know if you face any problem.
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
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
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
wget https://www.nano-editor.org/dist/v7/nano-7.2.tar.gz
Next, you need to extract the downloaded file with the command
tar -xf nano-7.2.tar.gz
After that, you need to change your directory to the extracted folder with the command
cd nano-7. 2
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:
sudo apt-get install libncurses5-dev
Without this you cannot configure the file. you might face a configuration error.
e.g.
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
./configure
Or, You can also add some options to customize your installation. For example, if you want to enable UTF-8 support, you can run
./configure --enable-utf8
Next, you need to compile the source code with the command
make
Finally, you need to install the compiled program with the command
sudo make install
If you want to check after successful installation the latest version of "The GNU nano" by running
nano --version
Hope it installed successfully on your machine.
Feel free to let me know if you face any problem.