Skip to content

yuravg/install-from-source-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Notes on installing packages from source

Preface

Advice For New Users On Not Breaking Their Debian System

Install packages

Git

Prepare

sudo aptitude build-dep git

Download and install

https://github.com/git/git

make configure
./configure --prefix=/usr/local
make all doc
sudo make install install-doc install-html

Emacs

Prepare

sudo aptitude build-dep emacs

Download and install

https://savannah.gnu.org/projects/emacs/

http://www.gnu.org/software/emacs/

./configure --prefix=/usr/local
make
sudo make install

Tagging

https://www.reddit.com/r/emacs/comments/3pni17/ctags_etags_or_gtags/

https://scripter.co/ctags-systemverilog-and-emacs/

Ctags

Download and install

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

Add alternatives

# 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

Installation for Windows OS

Universal Ctags - copy binary to PATH directory (download and unpack to c:\emacs\bin, overwrite default ctags.exe)

Global

Prepare

sudo aptitude build-dep global

Download and install

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

Installation for Windows OS

GLOBAL - copy binary to PATH directory (download and unpack to c:\emacs\bin)

Tips

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)

Ctags alternatives

If other alternatives are required

Emacs

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

Exuberant-ctags

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: <dhiebert@users.sourceforge.net>, 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

Remove packages installed from source

An Easy Way To Remove Programs Installed From Source In Linux

How to Easily Remove Packages Installed From Source in Linux

Stow - software package installation manager

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>

About

Notes on installing packages from source

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published