GBrowse Ubuntu HOWTO
NOTE: As of the 11.10 release of Ubuntu, there is a .deb package for GBrowse (it's usable on Debian machines as well, but I don't know the details of what repository needs to be activated to get GBrowse via apt-get on Debian).
To install GBrowse on a recent Ubuntu install, just do this:
sudo apt-get install gbrowse gbrowse-calign gbrowse-data libbio-samtools-perl apache2
And then point your browser at http://localhost/gbrowse2.
The content below will be left in place for older distributions.
Note: You may need to start the apache server once you have run the above installation
sudo /etc/init.d/apache2 start
- If you plan to use a MySQL database, you may need to install mysql
sudo apt-get install mysql-server
GBrowse does not have a .deb package, but many of its prerequisites are distributed in this way. This document describes how to install GBrowse on Ubuntu and other Linux distributions that use the Debian packaging system.
Prerequisites
- Install Apache and Apache-modperl
sudo apt-get install apache2 sudo apt-get install libapache2-mod-perl2 sudo apt-get install libapache2-mod-perl2-dev sudo apt-get install libapache2-mod-perl2-doc sudo apt-get install apache2-doc
- Make the missing cgi-bin directory
sudo mkdir /usr/lib/cgi-bin
This is not necessary for Ubuntu 7.10, as the Apache install creates it. For previous versions of Ubuntu, this did not happen.
- Install libgd
sudo apt-get install libgd2-dev
or
sudo apt-get install libgd2-xpm-dev
for Ubuntu 7.10.
- Install MySQL database (optional, but recommended)
sudo apt-get install mysql-server
- Install installer prereqs
sudo apt-get install libarchive-zip-perl sudo apt-get install libarchive-tar-perl sudo apt-get install ncftp
Installing GBrowse with the Net Installer
Get the netinstaller script from SourceForge and save it to disk as "gbrowse_netinstall.pl". Then run:
sudo perl gbrowse_netinstall.pl
Be sure to double-check the paths that GBrowse guesses for the Apache configuration, htdocs, and cgibin directories, as these may have changed.
The script will download and install all the Perl modules on which GBrowse depends. During the installation process, some of these modules will ask you questions. You can almost always accept the defaults. If you change your mind later, you can simply run the script again.
When the installer is finished, you can browse the documentation and example database at http://localhost/gbrowse.
Author
Lincoln Stein 12:36, 17 April 2007 (EDT)