Coder Social home page Coder Social logo

install-from-source-notes's Introduction

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: <[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

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.