install_ncmpcpp
"/home/yossef/notes/notes-random//install_ncmpcpp.md"
path: notes-random//install_ncmpcpp.md
- **fileName**: install_ncmpcpp
- **Created on**: 2025-03-26 13:42:31
there is some dependences must be install
UBUNTU based distro:
:<< 'END'
# some importent dependences
sudo apt install build-essential \
libncursesw5-dev \
libreadline-dev \
libtag1-dev \
libfftw3-dev \
libboost-dev \
libmpdclient-dev
sudo apt install autoconf automake
END
for arch based distro
:<< 'END'
sudo pacman -S --needed \
base-devel \
ncurses \
readline \
taglib \
fftw \
boost \
libmpdclient \
autoconf \
automake
END
now starting install ncmpcpp mannel
#!/usr/bin/env bash
_install() {
## this the name for tag file gone download for more information
## about tags check this
## https://github.com/ncmpcpp/ncmpcpp/tags
local FILENAME="0.10.1.tar.gz"
## check if the commend found or not
if _commend_exists ncmpcpp; then
cecho "the ncmpcpp is already install" yellow
exit 1
fi
# print a message and chenge to the dir for downlaod
cecho "change dir to Download" blue
cd /home/$USER/Download
cecho "starting install" blue
## starting download the file tag
wget https://github.com/ncmpcpp/ncmpcpp/archive/refs/tags/$FILENAME
## check if there is an error in install
if [[ $? != 0 ]];then
cecho " error happend in install ncmpcpp using wget" red
exit 1
fi
cecho "finsih get the package using wget" blue
cecho "starting to build" blue
# extract the folder
tar xvf $FILENAME
# get the folder name based on the tag file
FOLDER_NAME=$(tar tzf "$FILENAME" | head -1 | cut -f1 -d"/")
cd $FOLDER_NAME || exit
## setup the configuratoin file
autoreconf -i
## handle errors
if [[ $? != 0 ]];then
cecho "error happend in initlization install check dependences " red
exit 1
fi
## starting clean and install
make clean
#./configure
./configure --enable-visualizer. ## for just enable visualizer
make
sudo make install
## if error happend
if [[ $? != 0 ]];then
cecho "error happend in bulld the package check dependences" red
exit 1
fi
cecho "install complete and successfly" green
}
_install
Important
for more information about the installation check this
ncmpcpp git install
continue:[[]]
before:./fuck_apt_howtoinstallnode.md