Advice For New Users On Not Breaking Their Debian System
sudo aptitude build-dep git
make configure
./configure --prefix=/usr/local
make all doc
sudo make install install-doc install-html
sudo aptitude build-dep emacs
https://savannah.gnu.org/projects/emacs/
http://www.gnu.org/software/emacs/
./configure --prefix=/usr/local
make
sudo make install
https://www.reddit.com/r/emacs/comments/3pni17/ctags_etags_or_gtags/
https://scripter.co/ctags-systemverilog-and-emacs/
https://github.com/universal-ctags/ctags (universal-ctags)
git clone https://github.com/universal-ctags/ctags.git
cd ctags
./autogen.sh
./configure --prefix=/usr/local
make
sudo make install
# Copy
sudo cp /usr/local/bin/ctags /usr/local/bin/ctags-universal-<version>
# Add alternatives
sudo update-alternatives --install /usr/local/bin/ctags ctags /usr/local/bin/ctags-universal-<verson> 9
Universal Ctags - copy binary to PATH directory (download and unpack to c:\emacs\bin, overwrite default ctags.exe)
sudo aptitude build-dep global
http://www.gnu.org/software/global/download.html
./configure --prefix=/usr/local
# for exuberant-ctags
# ./configure --prefix=/usr/local --with-exuberant-ctags=/usr/local/bin/ctags
make
sudo make install
GLOBAL - copy binary to PATH directory (download and unpack to c:\emacs\bin)
man: http://www.gnu.org/software/global/manual/global.pdf
Copy config file from global-pygments-plugin-master (sample.globalrc) https://github.com/yoshizow/global-pygments-plugin
Install Pygments (for example by pip, https://github.com/yoshizow/global-pygments-plugin)
If other alternatives are required
If Emacs ctags is required as an alternatives
# Save(check with command: ctags --version)
sudo cp /usr/local/bin/ctags /usr/local/bin/ctags-emacs-<verson>
# Add alternatives
sudo update-alternatives --install /usr/local/bin/ctags ctags /usr/local/bin/ctags-emacs-<verson> 10
If exuberant-ctags ctags is requred as an alternatives
# Install
sudo aptitude install exuberant-ctags
# Check current ctagas version
ctags --version
Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
Addresses: <[email protected]>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
# Add alternatives
sudo update-alternatives --install /usr/local/bin/ctags ctags /usr/bin/ctags-exuberant 11
An Easy Way To Remove Programs Installed From Source In Linux
How to Easily Remove Packages Installed From Source in Linux
GNU Stow to manage programs installed from source and dotfiles
# 1. install stow
sudo aptitude isntall stow
# 2. build and intall <package_name> to 'stow' directory(use prefix options):
./configure --prefix=/usr/local/stow/<package_name>
sudo make install
# 3. generate symlinks
cd /usr/local/stow
sudo stow --verbose=2 <package_name>
# 4.1. check links
stow -vv <package_name>
# 4.2. check that links replace executables files
tree /usr/local/bin/<package_name>
# 5. remove <package_name>
cd /usr/local/stow
sudo stow --delete <package_name>