Tags » Compile

Kernel Compilation in Jiffies

I do compile Kernel couple of times a day. Most of times it’s just few minutes on my Power8 box, which is pretty fast. Given that make command is smart enough to figure out the changes made to the kernel sources and just re-compile the units/targets based on the timestamp, the re-compilation time reduced to quite a bit from the initial fresh compile of the kernel, based on how many files and their dependent target/object are dependent on the changesets/patch. 545 more words

Architecture

How to compile and install wget and RStudio Server from source code (via Github) in Ubuntu 14.04 LTS 64-bit

# bash shell script for Ubuntu 14.04 LTS 64-bit:
# Free disk space required: around 5 GB
# Minimum internal memory/RAM requirements: 4 GB RAM minimum
# Time required to execute 'sudo make' compilation of RStudio source code: around 45 minutes, maybe even more 
# sudo checkinstall process should take around 20 minutes to finish
# REQUIRES: newest version of wget compiled from Github sources
# Copy-paste the following commands into the Terminal one by one:
# install newest version of wget from Github sources in order to solve following wget issue in Ubuntu 14.04 LTS : 
# https://github.com/chapmanb/bcbio-nextgen/issues/1133
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install libqtwebkit-dev checkinstall qtbase5-dev pandoc r-base
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install libboost-all-dev cmake libqt4-dev build-essential default-jdk
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes build-dep wget
cd
sudo rm -rf wget
sudo rm /usr/bin/rstudio*
git clone https://github.com/mirror/wget.git
cd wget
./bootstrap
./configure
sudo make
sudo checkinstall
# Press 3 and ENTER and then set version to 1.17.1.13
apt-cache show wget
# Terminal output should look like this:
# apt-cache show wget
# Package: wget
# Status: install ok installed
# Priority: extra
# Section: checkinstall
# Installed-Size: 3864
# Maintainer: root
# Architecture: amd64
# Version: 1.17.1.13-1
# Provides: wget
# Conffiles:
# /etc/wgetrc 618c05b4106ad20141dcf6deada2e87f obsolete
# Description: Package created with checkinstall 1.6.2
# Description-md5: 556b8d22567101c7733f37ce6557412e
# compile and install RStudio Server from source code:
cd
git clone https://github.com/rstudio/rstudio.git
cd rstudio/
mkdir build
cd build/
cd ~/rstudio/dependencies/common
bash install-common
bash install-common
cd
bash ~/rstudio/dependencies/linux/install-dependencies-debian
bash ~/rstudio/dependencies/linux/install-dependencies-debian
cd /tmp
wget http://dl.google.com/closure-compiler/compiler-latest.zip
unzip compiler-latest.zip
rm COPYING README.md compiler-latest.zip
sudo mv compiler.jar ~/rstudio/src/gwt/tools/compiler/compiler.jar
cd ~/rstudio
sudo rm -rf build
sudo cmake -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release
time sudo make
# sudo make install process should take around 45 minutes to finish
time sudo checkinstall
# sudo checkinstall process should take around 20 minutes to finish
apt-cache show rstudio
# Terminal output should look like this:
# Package: rstudio
# Status: install ok installed
# Priority: extra
# Section: checkinstall
# Installed-Size: 293492
# Maintainer: root
# Architecture: amd64
# Version: 20160206-1
# Provides: rstudio
# Description: Package created with checkinstall 1.6.2
# Description-md5: 556b8d22567101c7733f37ce6557412e
sudo ln -s /usr/local/lib/rstudio-server/bin/rserver /usr/bin
nohup rserver &
# then use a web browser to navigate to http://127.0.0.1:8787/ to access the RStudio Server interface
Ubuntu

How to compile and install newest version of librecad via Github in Ubuntu 14.04 LTS 64-bit

cd
sudo rm -rf LibreCAD
sudo apt-get update
sudo apt-get purge librecad
sudo apt-get install g++ gcc make git-core libqt4-dev qt4-qmake libqt4-help
sudo apt-get install  qt4-dev-tools libboost-all-dev libmuparser-dev libfreetype6-dev pkg-config
sudo apt-get build-dep librecad
git clone https://github.com/LibreCAD/LibreCAD.git
cd LibreCAD/
qmake-qt4 -r
sudo make
sudo make install
~/LibreCAD/unix/librecad
Ubuntu

How to Install and compile SASS on Linux

SASS කියන්නේ CSS preprossesor එකක්. SASS කියන එකේ තේරුම වෙන්නේ Syntactically Awesome Style Sheets ඒ වගේම නමේම තියන විදියට CSS වලට වඩා ලේසියෙන් CSS styling code කරන්න පුළුවන් SASS වලින්. 97 more words

Web

El Capitan, Xcode 7.2, MacPorts

In case you are wondering why some ports fail to build after upgrading to El Capitan or upgrading Xcode to version 7.2 here is the detailed answer:  57 more words

Tech

compile and install notepadqq [debian-64bit]

based on:
https://github.com/notepadqq/notepadqq

sudo apt-get install qt5-qmake
sudo apt-get install -y libqt5webkit5 libqt5svg5 coreutils
sudo apt-get install -y libqt5webkit5-dev libqt5svg5-dev qttools5-dev-tools
git clone https://github.com/notepadqq/notepadqq.git
cd notepadqq…
15 more words

Install

How to compile and install newest version of p7zip package via Github.com in Ubuntu 14.04LTS 64-bit

# install prerequisites for p7zip compilation process:
cd
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install build-essential checkinstall
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes install unp git g++-4.8
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes purge p7zip
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes build-dep p7zip
# compile and install newest version of p7zip via Github:
cd
sudo rm -rf p7zip
git clone https://github.com/Zap-Labs/p7zip.git
cd p7zip/
sudo ./install.sh
sudo make
sudo checkinstall
apt-cache show p7zip
# Terminal output should look similar to this output:
#$ apt-cache show p7zip
#Package: p7zip
#Status: install ok installed
#Priority: extra
#Section: checkinstall
#Installed-Size: 1804
#Maintainer: root
#Architecture: i386
#Version: 20160110-1
#Provides: p7zip
#Description: Package created with checkinstall 1.6.2
#Description-md5: 556b8d22567101c7733f37ce6557412e
#Package: p7zip
#Priority: optional
#Section: universe/utils
#Installed-Size: 951
#Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
#Original-Maintainer: Mohammed Adnène Trojette <adn+deb@diwi.org>
#Architecture: i386
#Version: 9.20.1~dfsg.1-4+deb7u1build0.14.04.1
#Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1)
#Suggests: p7zip-full
#Filename: pool/universe/p/p7zip/p7zip_9.20.1~dfsg.1-4+deb7u1build0.14.04.1_i386.deb
#Size: 301336
#MD5sum: 541431830c54c4b6019f3f2285cd8bfb
#SHA1: 5f10e1eaf5efdf0b7e93f0f132923467d4662ab1
##SHA256: 2cbdd55618015b8cef617e4c47140e657e2a3124787b02393899506d05a3017b
#Description-en: 7z file archiver with high compression ratio
# p7zip is the Unix command-line port of 7-Zip, a file archiver that
# archives with high compression ratios. 42 more words
Ubuntu