Difference between revisions of "Ubuntu/Debian installation prerequisites"
From ArmadeusWiki
(→Mandatory packages) |
(→Mandatory packages) |
||
Line 1: | Line 1: | ||
==Mandatory packages== | ==Mandatory packages== | ||
− | * you can use the following | + | * you can use the following commands (one at a time) to get them (assuming your userid is allowed to use ''sudo'' (execution of commands as root)): |
<pre class="host"> | <pre class="host"> | ||
sudo apt-get install -y build-essential gcc g++ autoconf automake libtool bison flex gettext | sudo apt-get install -y build-essential gcc g++ autoconf automake libtool bison flex gettext | ||
Line 20: | Line 20: | ||
Indeed dash do not support all the capabilities needed by Buildroot (our build system). | Indeed dash do not support all the capabilities needed by Buildroot (our build system). | ||
}} | }} | ||
+ | |||
+ | * if your distribution is localized in a language different of English, you will need to install "en_US" locale in order to compile the toolchain (by default our toolchain (uClibc) is configured to only support English). If not, you will get compilation errors like this one: | ||
+ | <pre class="host"> | ||
+ | ... | ||
+ | extra/locale/locale_mmap.h:46: error: '__LOCALE_DATA_WCctype_II_LEN' undeclared here (not in a function) | ||
+ | ... | ||
+ | </pre> | ||
+ | To solve this, install en_US.UTF-8 locale with the following: | ||
+ | <pre class="host"> | ||
+ | $ sudo dpkg-reconfigure locales | ||
+ | </pre> | ||
==Optional packages== | ==Optional packages== |
Revision as of 10:04, 19 June 2012
Mandatory packages
- you can use the following commands (one at a time) to get them (assuming your userid is allowed to use sudo (execution of commands as root)):
sudo apt-get install -y build-essential gcc g++ autoconf automake libtool bison flex gettext sudo apt-get install -y patch subversion texinfo wget git-core sudo apt-get install -y libncurses5 libncurses5-dev sudo apt-get install -y zlib1g-dev liblzo2-2 liblzo2-dev sudo apt-get install -y libacl1 libacl1-dev gawk cvs curl lzma sudo apt-get install -y uuid-dev mercurial
- if your distribution is localized in a language different of English, you will need to install "en_US" locale in order to compile the toolchain (by default our toolchain (uClibc) is configured to only support English). If not, you will get compilation errors like this one:
... extra/locale/locale_mmap.h:46: error: '__LOCALE_DATA_WCctype_II_LEN' undeclared here (not in a function) ...
To solve this, install en_US.UTF-8 locale with the following:
$ sudo dpkg-reconfigure locales
Optional packages
Not mandatory but useful to add for compiling some Buildroot packages:
sudo apt-get install libglib2.0-dev sudo apt-get install libnetpbm10-dev (for fbtest) sudo apt-get install python-xcbgen (for Matchbox)
Java devt
Ubuntu
- To compile java jamvm and gnu-classpath:
sudo apt-get install gcj-jdk
Debian
To compile java jamvm and gnu-classpath:
sudo apt-get install java-gcj-compat-dev default-jdk