Hardware Reference
In-Depth Information
This
configure
script, like virtually every
configure
script ever created, will check your
Linux system to ensure that all of
crosstool-ng
's dependencies are present and ac-
counted for. If it fails, simply use your Linux distribution tools (
yum
or
apt-get
, as ap-
propriate) to install the missing packages. Once this completes successfully, it will
create a Makefile. To build the
crosstool-ng
code, run:
$ make
This should result in success, because
crosstool-ng
isn't difficult to build. Once it
finishes, you just need to make install it into its new home (
/opt/crosstool-
ng-1.18.0
). Don't forget to run this as root:
$ su -c 'make install'
Add crosstool-ng to Your PATH
Now that you have the
crosstool-ng
software installed and configured, add it to your
PATH
. This will allow you to run commands specifically for
crosstool-ng
without need-
ing to type a long command string.
The easiest way to accomplish this varies by Linux distribution and shell choice. On
Fedora, using the default bash shell, you need to make a change to the
~/.bash_pro
file
. On Ubuntu, edit
~/.profile
. What you're looking for is a configuration (or
dot
)
file that lives in your home directory and sets the
PATH
. Usually, this file will contain a
line that explicitly exports the
PATH
variable, like this:
export PATH
Just above that line, add this line:
PATH=$PATH:/opt/crosstool-ng-1.18.0/bin
This will append
/opt/crosstool-ng-1.18.0/bin
to the end of the existing value of
PATH
(
$PATH
). Save the file, and then you can either open a new shell instance or source the
modified file. Since we're brave hackers, we'll just source the new file like this:
$ source ~/.bash_profile
These directions will vary if you're using a shell other than bash, but if you have made
that choice, most of the previous section is common sense to you, and you should be
able to add a directory to your
PATH
in the shell of your choice.