Installing software in Linux is not the nightmare that Linux virgins tend to believe. There are package managers, repositories and precompiled binaries that make this task much easier. So much easier and cleaner that in fact, you must always refer to these methods FIRST before even thinking about installing from the source code.
There are only two "last stands" situations in which I would install from source:
- There are no repositories or pre-compiled packages (.deb/.rpm/.pet) available for my distribution. This is usually the case for lesser-known, recent software projects.
- I am not satisfied with the way a program works, and wish to alter its behavior in the source code to fulfill my needs. This is even more rare, as Linux programs are usually highly customizable.
If your installation needs do not meet any of these two criteria, then DON'T install from source. Use your package manager. That said, let's begin. I'll use the Beaver text editor in my example:
Part 1: Obtaining and extracting the code
Source code comes bundled with many other files, such as configuration and readme files, in what we call a "tarball." A tarball is a compressed file (like zip or rar) and has an extension that is either .tar, .tar.bz2 or .tar.gz. When you choose to download the source code, this is what you get. For example, the Beaver text editor comes as the following file:
click to enlarge |
Your archive manager should be able to extract the tarballs by default. After we have the source folder extracted, we need to set a proper working environment to process it. This means, a temporary source code directory. So, copy your source folder to this folder:
user@computer:/usr/local/src $ (may need to be root for that)
Or open your download folder in terminal and type:
$ sudo cp beaver-0.4.1.tar.bz2 /usr/local/src
click to enlarge |
Part 2: Resolving the dependencies
Programs may depend on other programs to work, but when installing from a package manager, such dependencies are automatically resolved. Source Code won't do that. You will have to find out all dependencies and install those before compiling and installing from source. This is indeed the trickiest bit of the installation. For most of the part you need to use your intuition to find out the dependencies.
-Read all the README files bundled with the source code;
-Read the online documentation of the program;
-Search for installation tips online (forums, etc).
This is how the Source Directory should look like. |
$ ./configure
Lines of code will rain down. What 'configure' does is check if everything needed for installation is correctly installed according to the desired configuration. Here's where you may feel free to configure the program to your needs. In case 'configure' returns something like this:
The dependency for 'intltool' has not been satisfied. |
Beaver has met all the dependencies. |
If you made this far, you're 90% done. The hardest part of the installation is done. You have clearance to compile the program.
Part 3: Compiling and Installing
Compiling is done through the command 'make' (may need to be root for that). Since everything according to the 'configure' script is good, you can go ahead and just type:
$ sudo make
Again, shit will scroll down your screen... Don't worry about it. When it's done, however, it means that the program has been compiled. Now all you need to do is proceed to the installation, through the following command:
$ sudo make install
Watch again lines scrolling down for a bit and surprise! Look what I found on my applications menu:
Have fun with your program - you earned it after all these steps...
Note: since you did not install through a package manager (you didn't enter apt-get, yum, rpm in the command line) you WILL NOT be able to receive any updates without recompiling a new source code release. Also, the package manager won't be able to uninstall it. You will have to open the source code directory in terminal and and enter the following command:
$ sudo make uninstall
Therefore MAKE SURE YOU DON'T DELETE THE SOURCE FOLDER after the installation!
Any doubt you may have, feel free to e-mail me.
Nov 2011 by Klaus Zimmermann
Contact me.
شركة الراقى لتنظيف البيوت
ReplyDeletehttp://bit.ly/2lV9hcV
http://bit.ly/2lqosO1
http://bit.ly/2lqlZCW
http://bit.ly/2kR05oS
http://bit.ly/2lqjrVq
http://bit.ly/2leqyxG
http://bit.ly/2leki96
http://bit.ly/2lesC8O
شركة الراقى لتنظيف البيوت
ReplyDeletehttp://bit.ly/2lexrPx
http://bit.ly/2lerbrb
http://bit.ly/2kR2Y9n
http://bit.ly/2l0MwG0
http://bit.ly/2kR6Ln9
http://bit.ly/2lSM66j
http://bit.ly/2lqcvb6
http://bit.ly/2l0RClx
شركة الراقى لتنظيف البيوت
ReplyDeletehttp://bit.ly/2l0YrU7
http://bit.ly/2kQYpvJ
http://bit.ly/2m2rHaZ
http://bit.ly/2kwS10m
http://bit.ly/2lqnOjg
http://bit.ly/2kFKEPC
http://bit.ly/2jB8dcr
http://bit.ly/2kFQalp
شركة الاوائل لتنظيف السجاد والموكيت
ReplyDeletehttp://bit.ly/2lqIAiB
http://bit.ly/2kFCnuM
Mahmahnds On Faiya: How To Install A Program From Source In Linux >>>>> Download Now
ReplyDelete>>>>> Download Full
Mahmahnds On Faiya: How To Install A Program From Source In Linux >>>>> Download LINK
>>>>> Download Now
Mahmahnds On Faiya: How To Install A Program From Source In Linux >>>>> Download Full
>>>>> Download LINK
Mahmahnds On Faiya: How To Install A Program From Source In Linux >>>>> Download Now
ReplyDelete>>>>> Download Full
Mahmahnds On Faiya: How To Install A Program From Source In Linux >>>>> Download LINK
>>>>> Download Now
Mahmahnds On Faiya: How To Install A Program From Source In Linux >>>>> Download Full
>>>>> Download LINK tj
supreme
ReplyDeletecurry 7 sour patch
air jordan
golden goose outlet
golden goose
kobe sneakers
off white outlet
kyrie irving shoes
supreme t shirt
jordan shoes
Denizli
ReplyDeleteKonya
Denizli
ısparta
Bayburt
ON73Q
Denizli
ReplyDeleteErzurum
Samsun
Malatya
Niğde
O57
izmir
ReplyDeleteErzurum
Diyarbakır
Tekirdağ
Ankara
4İE8QJ
DC154
ReplyDeleteAdıyaman Evden Eve Nakliyat
Binance Güvenilir mi
Denizli Evden Eve Nakliyat
Antalya Evden Eve Nakliyat
Mersin Evden Eve Nakliyat
D4D69
ReplyDeleteYalova Şehir İçi Nakliyat
Edirne Şehir İçi Nakliyat
Binance Referans Kodu
Kastamonu Şehirler Arası Nakliyat
Bitcoin Nasıl Alınır
Silivri Parke Ustası
Amasya Lojistik
Çerkezköy Kurtarıcı
Manisa Evden Eve Nakliyat
889EE
ReplyDeleteSivas Şehirler Arası Nakliyat
Adıyaman Parça Eşya Taşıma
Maraş Şehirler Arası Nakliyat
Keçiören Fayans Ustası
Adıyaman Evden Eve Nakliyat
Erzincan Lojistik
Çorlu Lojistik
Adana Evden Eve Nakliyat
Kırşehir Evden Eve Nakliyat
00558
ReplyDeleteOrdu Şehir İçi Nakliyat
Muş Şehirler Arası Nakliyat
Konya Evden Eve Nakliyat
Balıkesir Şehir İçi Nakliyat
Zonguldak Parça Eşya Taşıma
Sakarya Parça Eşya Taşıma
Kırşehir Lojistik
Giresun Parça Eşya Taşıma
Niğde Şehir İçi Nakliyat
9DD7B
ReplyDeleteBitlis Evden Eve Nakliyat
Tokat Lojistik
İzmir Şehirler Arası Nakliyat
Kilis Lojistik
Sivas Lojistik
Artvin Şehir İçi Nakliyat
Niğde Lojistik
Artvin Şehirler Arası Nakliyat
Zonguldak Parça Eşya Taşıma
B59AE
ReplyDeleteçanakkale sohbet
Adana Görüntülü Sohbet
mersin mobil sohbet
Edirne Canlı Sohbet Ücretsiz
muş görüntülü sohbet siteleri
Gümüşhane Sohbet Uygulamaları
mobil sohbet et
Kars Ücretsiz Sohbet Uygulamaları
gümüşhane parasız sohbet siteleri
2DE64
ReplyDeletesesli sohbet uygulamaları
şırnak rastgele sohbet uygulaması
gümüşhane telefonda kadınlarla sohbet
malatya bedava sohbet
yalova ucretsiz sohbet
bilecik parasız sohbet
Karaman Rastgele Sohbet Odaları
adıyaman nanytoo sohbet
Erzurum Bedava Sohbet Uygulamaları
EB993
ReplyDeleteyearn
layerzero
safepal
avax
defillama
arculus
poocoin
zkswap
ledger wallet
E20FF
ReplyDeleteKarayazı
Gülyalı
Yenimahalle
Eğil
Çeltikçi
Polatlı
Hemşin
Çivril
Honaz
EC932A22C7
ReplyDeletesanal şov
6890CA8CBA
ReplyDeletemedi finance
tokenfi
dogwifhat
puffer finance
aethir
bitget
mitosis
dymension
rocketpool stake