Hardware Reference
In-Depth Information
If you have Fortran, you are good to go without excluding anything. The packages
here are for armel , but you need armhf , so in this hack you'll build MPI yourself.
Make a directory to put the MPI sources in:
$ mkdir /home/pi/mpich2
$ cd ~/mpich2
Next, get the MPI sources from Argonne National Laboratory. The MPI source con-
tinues to be updated, so you might need to visit http://www.mpich.org/downloads/
to find the latest stable release version for MPICH2:
$ wget http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/
1.4.1p1/mpich2-1.4.1p1.tar.gz
Once you have it, unpack the file:
$ tar xfz mpich2-1.4.1p1.tar.gz
You will need to update this as the version of MPICH2 increments. Next, make a place
to put the compiled stuff, which will also make it easier to figure out what you have
put in new on your system:
$ sudo mkdir /home/rpimpi/
$ sudo mkdir /home/rpimpi/mpich2-install
You might end up building this a few times. Make a build directory (so you keep the
source directory clean of build things) and then change into it:
$ sudo mkdir /home/pi/mpich_build
$ cd /home/pi/mpich_build
Now you're ready to configure the build:
$ sudo /home/pi/mpich2/mpich2-1.4.1p1/configure -prefix=/home/rpimpi/mpich2-
install
Again, you will need to update this as the version of MPICH2 increments. Now is a
good time to go make a cup of tea. (We recommend Earl Grey, hot, but that part is up
to you.) It will be waiting when you come back.
Make the files, have another cup of tea, install them, and have a third cup of tea:
$ sudo make
$ sudo make install
Add the place that you put the install to your PATH:
$ export PATH=$PATH:/home/rpimpi/mpich2-install/bin
 
Search WWH ::




Custom Search