特殊:Badtitle/NS100:OtherWaysToInstall:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/OtherWaysToInstall}} | {{From|https://help.ubuntu.com/community/OtherWaysToInstall}} | ||
{{Languages|UbuntuHelp:OtherWaysToInstall}} | {{Languages|UbuntuHelp:OtherWaysToInstall}} | ||
== Warning == | |||
Installing is not always straight forward. A program may require additional packages from the repositories or libraries to be compiled as well. | Installing is not always straight forward. This guide should be if the program you are tying to install cannot be found using Add/Remove found under the Applications menu. A program may require additional packages from the repositories or libraries to be compiled as well. Installing a package from the repositories is the easiest and fastest method of installation. | ||
== Installing the standard ways == | |||
In Ubuntu there are several standard ways to install software. The most common is to use Synaptic Package Manager, or the command line tools "apt-get", or "dpkg". These tools download .deb files from repositories and install them. Although not all packages are visible after the install, you may need to enable extra repositories to see all available packages. To learn more about these tools see [[UbuntuHelp:SynapticHowto|SynapticHowto]], [[UbuntuHelp:AptGetHowto|AptGetHowto]], and [[UbuntuHelp:AddingRepositoriesHowto|AddingRepositoriesHowto]]. | |||
Users can also install .deb files manually. Once the package has been downloaded, clicking on the .deb file will open the Package Installer. The Package installer will let you know if there are any packages that must be installed before the current one can be. | |||
In Ubuntu there are several standard ways to install software. | {{https://help.ubuntu.com/community/OtherWaysToInstall?action=AttachFile&do=get&target=PackageInstaller2.png%7D%7D | ||
[[UbuntuHelp:SynapticHowto|SynapticHowto]] [[UbuntuHelp:AptGetHowto|AptGetHowto]] | In the above picture, the pidgin package will not install because the dependency libpurple0 is not installed. Once dependencies are installed, close and reopen Package Installer. You will then be able to install the package. Pidgin is only used as an example, Pidgin can be installed though Synaptic. | ||
== UnTaring, Compiling, and Installing == | |||
=== UnTaring === | |||
Most times, when software that is not packaged as a .deb file will be distributed as a tar file. Common tar file types include .tar, .tar.gz, .tar.bz, and .tar.bz2. Each of these is handled in the same way. Double click the downloaded file, Archive Manager will open as shown below: | |||
{{https://help.ubuntu.com/community/OtherWaysToInstall?action=AttachFile&do=get&target=archivemanager2.png%7D%7D | |||
Once archive manager is open the files can be extracted by clicking the Extract button. A dialog box will appear asking where you would like to extract your file(s) to. The best place to extract file would be a folder (or directory) in the home folder set up for installing programs. | |||
{{https://help.ubuntu.com/community/OtherWaysToInstall?action=AttachFile&do=get&target=extractdialog2.png%7D%7D | |||
Important: after untaring the file check to see if there is a .bin or .sh file. These files are typically installers and will install programs without the user having to follow the next steps. To get these files to run you may need to change the permissions, to do this right click on the file and select Properties. In the Permissions tab, check the run as executable box. Then double click the file again to run it. | |||
{{https://help.ubuntu.com/community/OtherWaysToInstall?action=AttachFile&do=get&target=permissions.png%7D%7D | |||
=== Compiling === | === Compiling === | ||
You can compile software on Ubuntu or any other GNU/Linux distro. Before you proceed you need to install the build-essential package. This contains everything required for compiling on any Ubuntu version to work. It is not part of the default install. To install either use synaptic, or via the command line apt-get. | Once you have untared the files for the program, you need to compile, or translate the raw code into a form that your computer can read. You can compile software on Ubuntu or any other GNU/Linux distro. Before you proceed you need to install the build-essential package. This contains everything required for compiling on any Ubuntu version to work. It is not part of the default install. To install either use synaptic, or via the command line apt-get. | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo apt-get install build-essential | sudo apt-get install build-essential | ||
</nowiki></pre> | </nowiki></pre> | ||
After build-essential has been installed, you will need to change the working directory of the terminal to the directory that contains the untared files. | |||
<pre><nowiki> | |||
This | cd /path/to/files | ||
</nowiki></pre> | |||
For example, if the files are in /home/user/source, you would use the command | |||
<pre><nowiki> | |||
cd /home/user/source | |||
</nowiki></pre> | |||
The | Once the working directory has been changed to the directory where the files have are, you will be able to compile the program. To do this you will need to run two commands: | ||
== | <pre><nowiki> | ||
./configure | |||
[ | </nowiki></pre> | ||
This command will create the make file. This command will also notify you of any dependencies that need to be resolved. To resolve any dependencies, search for the packages in Synaptic Package Manager. When you find the package make sure you install both the package and any -dev packages with the same name. ''Note'': Not all program will have a ./configure script. | |||
Once the Configure script has done its work, you can run the make file. The make file does the actual compiling of the program. | |||
<pre><nowiki> | |||
sudo make | |||
</nowiki></pre> | |||
=== Installing === | |||
Now that you have downloaded, untared, and compiled the program, you can install the program. To install the program: | |||
<pre><nowiki> | |||
sudo make install | |||
</nowiki></pre> | |||
==== Checkinstall ==== | |||
Because installing using '''make install''' can make programs hard to install, you can use checkinstall to make the process a bit easier. First you will need to install the checkinstall and gettext packages: | |||
<pre><nowiki> | |||
sudo apt-get install checkinstall gettext | |||
</nowiki></pre> | |||
After checkinstall has been installed, it can be used by replacing the above '''make install''' command with: | |||
<pre><nowiki> | |||
sudo checkinstall packagename | |||
</nowiki></pre> | |||
More Information: [[UbuntuHelp:CheckInstall|CheckInstall]] | |||
== Uninstalling == | |||
To uninstall a program that has not been installed using apt-get or a similar installer, you must again change the working directory to where the program was installed: | |||
<pre><nowiki> | |||
cd /path/to/program | |||
</nowiki></pre> | |||
Once you have changed the working directory, you can run: | |||
<pre><nowiki> | |||
sudo make uninstall | |||
</nowiki></pre> | |||
This command may not work if the developer has not included them in the program. | |||
== Packaging Issues == | |||
Not all Linux distributions use the same style of packages to install software. Debian based distributions use .deb packages, while Red Hat based distributions use .rpm packages. A tool, Alien, does exists to convert .rpm packages to .deb packages for use in Ubuntu, but it does not always work. Alien is available in the repositories and can be installed using apt-get: | |||
<pre><nowiki> | |||
sudo apt-get install alien | |||
</nowiki></pre> | |||
The package can then be installed using this command: | |||
<pre><nowiki> | |||
sudo alien -i /path/to/package.rpm | |||
</nowiki></pre> | |||
== Other Links & Sources == | |||
*[http://linuxhelp.blogspot.com/2005/12/concise-apt-get-dpkg-primer-for-new.html Concise apt-get / dpkg primer for new users] | |||
*[http://monkeyblog.org/ubuntu/installing How to Install anything in Ubuntu] | |||
[[category:CategoryDocumentation]] | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月19日 (日) 16:45的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/OtherWaysToInstall }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/af | • {{#if: UbuntuHelp:OtherWaysToInstall|Afrikaans| [[::OtherWaysToInstall/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/ar | • {{#if: UbuntuHelp:OtherWaysToInstall|العربية| [[::OtherWaysToInstall/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/az | • {{#if: UbuntuHelp:OtherWaysToInstall|azərbaycanca| [[::OtherWaysToInstall/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/bcc | • {{#if: UbuntuHelp:OtherWaysToInstall|جهلسری بلوچی| [[::OtherWaysToInstall/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/bg | • {{#if: UbuntuHelp:OtherWaysToInstall|български| [[::OtherWaysToInstall/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/br | • {{#if: UbuntuHelp:OtherWaysToInstall|brezhoneg| [[::OtherWaysToInstall/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/ca | • {{#if: UbuntuHelp:OtherWaysToInstall|català| [[::OtherWaysToInstall/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/cs | • {{#if: UbuntuHelp:OtherWaysToInstall|čeština| [[::OtherWaysToInstall/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/de | • {{#if: UbuntuHelp:OtherWaysToInstall|Deutsch| [[::OtherWaysToInstall/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/el | • {{#if: UbuntuHelp:OtherWaysToInstall|Ελληνικά| [[::OtherWaysToInstall/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/es | • {{#if: UbuntuHelp:OtherWaysToInstall|español| [[::OtherWaysToInstall/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/fa | • {{#if: UbuntuHelp:OtherWaysToInstall|فارسی| [[::OtherWaysToInstall/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/fi | • {{#if: UbuntuHelp:OtherWaysToInstall|suomi| [[::OtherWaysToInstall/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/fr | • {{#if: UbuntuHelp:OtherWaysToInstall|français| [[::OtherWaysToInstall/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/gu | • {{#if: UbuntuHelp:OtherWaysToInstall|ગુજરાતી| [[::OtherWaysToInstall/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/he | • {{#if: UbuntuHelp:OtherWaysToInstall|עברית| [[::OtherWaysToInstall/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/hu | • {{#if: UbuntuHelp:OtherWaysToInstall|magyar| [[::OtherWaysToInstall/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/id | • {{#if: UbuntuHelp:OtherWaysToInstall|Bahasa Indonesia| [[::OtherWaysToInstall/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/it | • {{#if: UbuntuHelp:OtherWaysToInstall|italiano| [[::OtherWaysToInstall/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/ja | • {{#if: UbuntuHelp:OtherWaysToInstall|日本語| [[::OtherWaysToInstall/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/ko | • {{#if: UbuntuHelp:OtherWaysToInstall|한국어| [[::OtherWaysToInstall/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/ksh | • {{#if: UbuntuHelp:OtherWaysToInstall|Ripoarisch| [[::OtherWaysToInstall/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/mr | • {{#if: UbuntuHelp:OtherWaysToInstall|मराठी| [[::OtherWaysToInstall/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/ms | • {{#if: UbuntuHelp:OtherWaysToInstall|Bahasa Melayu| [[::OtherWaysToInstall/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/nl | • {{#if: UbuntuHelp:OtherWaysToInstall|Nederlands| [[::OtherWaysToInstall/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/no | • {{#if: UbuntuHelp:OtherWaysToInstall|norsk| [[::OtherWaysToInstall/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/oc | • {{#if: UbuntuHelp:OtherWaysToInstall|occitan| [[::OtherWaysToInstall/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/pl | • {{#if: UbuntuHelp:OtherWaysToInstall|polski| [[::OtherWaysToInstall/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/pt | • {{#if: UbuntuHelp:OtherWaysToInstall|português| [[::OtherWaysToInstall/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/ro | • {{#if: UbuntuHelp:OtherWaysToInstall|română| [[::OtherWaysToInstall/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/ru | • {{#if: UbuntuHelp:OtherWaysToInstall|русский| [[::OtherWaysToInstall/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/si | • {{#if: UbuntuHelp:OtherWaysToInstall|සිංහල| [[::OtherWaysToInstall/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/sq | • {{#if: UbuntuHelp:OtherWaysToInstall|shqip| [[::OtherWaysToInstall/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/sr | • {{#if: UbuntuHelp:OtherWaysToInstall|српски / srpski| [[::OtherWaysToInstall/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/sv | • {{#if: UbuntuHelp:OtherWaysToInstall|svenska| [[::OtherWaysToInstall/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/th | • {{#if: UbuntuHelp:OtherWaysToInstall|ไทย| [[::OtherWaysToInstall/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/tr | • {{#if: UbuntuHelp:OtherWaysToInstall|Türkçe| [[::OtherWaysToInstall/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/vi | • {{#if: UbuntuHelp:OtherWaysToInstall|Tiếng Việt| [[::OtherWaysToInstall/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/yue | • {{#if: UbuntuHelp:OtherWaysToInstall|粵語| [[::OtherWaysToInstall/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/zh | • {{#if: UbuntuHelp:OtherWaysToInstall|中文| [[::OtherWaysToInstall/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/zh-hans | • {{#if: UbuntuHelp:OtherWaysToInstall|中文(简体)| [[::OtherWaysToInstall/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:OtherWaysToInstall | UbuntuHelp:OtherWaysToInstall | {{#if: | :}}OtherWaysToInstall}}/zh-hant | • {{#if: UbuntuHelp:OtherWaysToInstall|中文(繁體)| [[::OtherWaysToInstall/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:OtherWaysToInstall|:OtherWaysToInstall|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :OtherWaysToInstall/zh | | {{#ifexist: OtherWaysToInstall/zh | | {{#ifeq: {{#titleparts:OtherWaysToInstall|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:OtherWaysToInstall|1|-1|}} | zh | | }}
Warning
Installing is not always straight forward. This guide should be if the program you are tying to install cannot be found using Add/Remove found under the Applications menu. A program may require additional packages from the repositories or libraries to be compiled as well. Installing a package from the repositories is the easiest and fastest method of installation.
Installing the standard ways
In Ubuntu there are several standard ways to install software. The most common is to use Synaptic Package Manager, or the command line tools "apt-get", or "dpkg". These tools download .deb files from repositories and install them. Although not all packages are visible after the install, you may need to enable extra repositories to see all available packages. To learn more about these tools see SynapticHowto, AptGetHowto, and AddingRepositoriesHowto. Users can also install .deb files manually. Once the package has been downloaded, clicking on the .deb file will open the Package Installer. The Package installer will let you know if there are any packages that must be installed before the current one can be. {{https://help.ubuntu.com/community/OtherWaysToInstall?action=AttachFile&do=get&target=PackageInstaller2.png%7D%7D In the above picture, the pidgin package will not install because the dependency libpurple0 is not installed. Once dependencies are installed, close and reopen Package Installer. You will then be able to install the package. Pidgin is only used as an example, Pidgin can be installed though Synaptic.
UnTaring, Compiling, and Installing
UnTaring
Most times, when software that is not packaged as a .deb file will be distributed as a tar file. Common tar file types include .tar, .tar.gz, .tar.bz, and .tar.bz2. Each of these is handled in the same way. Double click the downloaded file, Archive Manager will open as shown below: {{https://help.ubuntu.com/community/OtherWaysToInstall?action=AttachFile&do=get&target=archivemanager2.png%7D%7D Once archive manager is open the files can be extracted by clicking the Extract button. A dialog box will appear asking where you would like to extract your file(s) to. The best place to extract file would be a folder (or directory) in the home folder set up for installing programs. {{https://help.ubuntu.com/community/OtherWaysToInstall?action=AttachFile&do=get&target=extractdialog2.png%7D%7D Important: after untaring the file check to see if there is a .bin or .sh file. These files are typically installers and will install programs without the user having to follow the next steps. To get these files to run you may need to change the permissions, to do this right click on the file and select Properties. In the Permissions tab, check the run as executable box. Then double click the file again to run it. {{https://help.ubuntu.com/community/OtherWaysToInstall?action=AttachFile&do=get&target=permissions.png%7D%7D
Compiling
Once you have untared the files for the program, you need to compile, or translate the raw code into a form that your computer can read. You can compile software on Ubuntu or any other GNU/Linux distro. Before you proceed you need to install the build-essential package. This contains everything required for compiling on any Ubuntu version to work. It is not part of the default install. To install either use synaptic, or via the command line apt-get.
sudo apt-get install build-essential
After build-essential has been installed, you will need to change the working directory of the terminal to the directory that contains the untared files.
cd /path/to/files
For example, if the files are in /home/user/source, you would use the command
cd /home/user/source
Once the working directory has been changed to the directory where the files have are, you will be able to compile the program. To do this you will need to run two commands:
./configure
This command will create the make file. This command will also notify you of any dependencies that need to be resolved. To resolve any dependencies, search for the packages in Synaptic Package Manager. When you find the package make sure you install both the package and any -dev packages with the same name. Note: Not all program will have a ./configure script. Once the Configure script has done its work, you can run the make file. The make file does the actual compiling of the program.
sudo make
Installing
Now that you have downloaded, untared, and compiled the program, you can install the program. To install the program:
sudo make install
Checkinstall
Because installing using make install can make programs hard to install, you can use checkinstall to make the process a bit easier. First you will need to install the checkinstall and gettext packages:
sudo apt-get install checkinstall gettext
After checkinstall has been installed, it can be used by replacing the above make install command with:
sudo checkinstall packagename
More Information: CheckInstall
Uninstalling
To uninstall a program that has not been installed using apt-get or a similar installer, you must again change the working directory to where the program was installed:
cd /path/to/program
Once you have changed the working directory, you can run:
sudo make uninstall
This command may not work if the developer has not included them in the program.
Packaging Issues
Not all Linux distributions use the same style of packages to install software. Debian based distributions use .deb packages, while Red Hat based distributions use .rpm packages. A tool, Alien, does exists to convert .rpm packages to .deb packages for use in Ubuntu, but it does not always work. Alien is available in the repositories and can be installed using apt-get:
sudo apt-get install alien
The package can then be installed using this command:
sudo alien -i /path/to/package.rpm