Installing Bear from a binary package

Installing Bear
Note: These instructions cover installing bear from a binary package in DEB or RPM format obtained from the Sourceforge project page. For help with building and installing Bear from its source code, see Building and Installing Bear.

Supported dpkg-based GNU/Linux distributions

Debian GNU/Linux unstable ("sid") i386

First, download the most current DEB package from Sourceforge project page. As an example, we will use the package for version 0.9.6, which is called bear_0.9.6-1_i386.deb. You can then install the package using dpkg, which must be run as root:
dpkg -i bear_0.9.6-1_i386.deb
If all goes well, then Bear is installed and you can try it out immediately:
bear
bear 0.9.6
Copyright (C) 2005 David Dumas (daviddumas@gmail.com)
Using Lua 5.0.2, Copyright (C) 1994-2004 Tecgraf, PUC-Rio
Build stamp: i486-pc-linux-gnu-2005-08-13
Distributed under the terms of the GNU General Public License
For more information, see the file named COPYING.

bear>
However, if you do not have all of the packages that bear requires, dpkg will report missing dependencies. You can fetch and install these packages using apt-get. For example, a typical clean install of Debian unstable will need to install the following additional packages:
apt-get install libg2c0 libgsl0 h5utils liblua50 liblualib50
The full list of required packages as of version 0.9.6 (excluding those which Debian labels as "required") is as follows:
libg2c0
libgsl0
libhdf5-1.6.4-0 or libhdf5-serial-1.6.4-0
liblua50
liblualib50
libreadline5

Debian GNU/Linux unstable ("sid") AMD64

Follow the same instructions for installing under Debian i386, but for the AMD64 DEB package. For version 0.9.6, the AMD64 package is called bear_0.9.6-1_amd64.deb.

Ubuntu GNU/Linux 4.1 ("Warty") i386

Follow the same instructions for installing under Debian i386, but using the i386 DEB package specially prepared for Ubuntu. For version 0.9.6, this package is called bear_0.9.6-1ubuntu_i386.deb.

Supported RPM-based GNU/Linux distributions

Fedora Core 4

First you should make sure that you have the necessary libraries by asking yum to download and install them (as root):
yum install gsl hdf5
Now you should download the RPM package of Bear for Fedora Core 4. For example, the version 0.9.6 package is called bear-0.9.6-1.fc4.i386.rpm. Then use rpm to install the package (again, do this as root):
rpm -i bear-0.9.6-1.fc4.i386.rpm
Finally, you can test that Bear is installed and working:
bear
bear 0.9.6
Copyright (C) 2005 David Dumas (daviddumas@gmail.com)
Using Lua 5.0.2, Copyright (C) 1994-2004 Tecgraf, PUC-Rio
Build stamp: i686-redhat-linux-gnu-2005-08-13
Distributed under the terms of the GNU General Public License
For more information, see the file named COPYING.

bear>

Fedora Core 3

One of the libraries that Bear requires, HDF5, is part of the 'extras' package collection for Fedora Core 3. Unlike Fedora Core 4, the extras repository is not enabled by default in Fedora Core 3. To enable it, log in as the root user and use a text editor to create a file called fedora-extras.repo in the directory /etc/yum.repos.d with the following contents:
[extras]
name=Fedora Extras - $releasever - $basearch
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/
gpgcheck=1
gpgkey=http://download.fedora.redhat.com/pub/fedora/linux/extras/RPM-GPG-KEY-Fedora-Extras
An alternate approach is to follow the instructions from the Unofficial Fedora FAQ and replace your /etc/yum.conf configuration file with one that lists many more repositories and faster mirrors of the default ones.

After the extras repository has been added, you can install the libraries that Bear requires using yum (as root):

yum install gsl hdf5
Note that the package gsl is in the main Fedora Core 3 repository, so it could have been installed before the 'extras' repository was added.

Once all the required libraries are installed, you should download the RPM package of Bear for Fedora Core 3. For version 0.9.6, the package is called bear-0.9.6-1.fc3.i386.rpm. You can install the package using rpm (as root):

rpm -i bear-0.9.6-1.fc3.i386.rpm
Finally, you can test that Bear is installed and working:
bear
bear 0.9.6
Copyright (C) 2005 David Dumas (daviddumas@gmail.com)
Using Lua 5.0.2, Copyright (C) 1994-2004 Tecgraf, PUC-Rio
Build stamp: i686-redhat-linux-gnu-2005-08-13
Distributed under the terms of the GNU General Public License
For more information, see the file named COPYING.

bear>

Fedora Core 2

One of the libraries that Bear requires, HDF5, is not part of the regular Fedora Core 2 package set, nor the old 'Fedora Extras' repository that was created to expand Fedora Core 2. However, an RPM version of HDF5 for Fedora Core 2 is available from MonkeyRPMs. You should download hdf5-1.6.2-2.mr.i386.rpm and install it using rpm (as root):
rpm -i hdf5-1.6.2-2.mr.i386.rpm
Bear also requires the GNU Scientific Library (GSL), which is part of Fedora Core 2. You can download and install it in one step using yum:
yum install gsl
Once all the required libraries are installed, you should download the RPM package of Bear for Fedora Core 2. For version 0.9.6, the package is called bear-0.9.6-1.fc2.i386.rpm. You can install the package using rpm (as root):
rpm -i bear-0.9.6-1.fc2.i386.rpm
Finally, you can test that Bear is installed and working:
bear
bear 0.9.6
Copyright (C) 2005 David Dumas (daviddumas@gmail.com)
Using Lua 5.0.2, Copyright (C) 1994-2004 Tecgraf, PUC-Rio
Build stamp: i686-redhat-linux-gnu-2005-08-13
Distributed under the terms of the GNU General Public License
For more information, see the file named COPYING.

bear>